@font-face{font-family:Sahel;src:url('/static/fonts/Sahel.woff2') format('woff2');font-weight:400;font-display:swap}@font-face{font-family:Sahel;src:url('/static/fonts/Sahel-Bold.woff2') format('woff2');font-weight:700;font-display:swap}
:root{--bg:#061329;--panel:#10233e;--panel2:#142b49;--line:rgba(145,180,220,.17);--text:#eef5ff;--muted:#91a8c5;--gold:#e8b84e;--green:#20c997;--teal:#17c6c2;--blue:#38a9f5;--purple:#a879f7;--red:#ef5264}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 50% -25%,#173c63 0,transparent 55%),var(--bg);color:var(--text);font:13px/1.8 Sahel,Tahoma,sans-serif;min-height:100vh}.shell{max-width:1600px;margin:auto;padding:0 22px}.hero{min-height:86px;display:grid;grid-template-columns:1fr 1.5fr 1fr;align-items:center;gap:20px;border-bottom:1px solid var(--line);background:linear-gradient(90deg,rgba(4,15,33,.8),rgba(13,37,67,.35))}.brand{display:flex;align-items:center;gap:12px}.globe{width:54px;height:54px;border-radius:50%;display:grid;place-items:center;font-size:35px;color:#f5cb72;background:radial-gradient(circle at 35% 35%,#3f759b,#071a34 65%);border:1px solid #b58c47}.brand-name{font:700 30px Arial;color:#f5c969;letter-spacing:2px;line-height:1.2}.brand small{font:10px Arial;color:#a8bad0}.hero-title{text-align:center}.hero-title h1{font-size:20px;margin:0;font-weight:700}.hero-title p{margin:0;color:#adc0d8;font-size:12px}.hero-meta{display:flex;justify-content:flex-end;align-items:center;gap:12px}.clock{display:flex;gap:8px;align-items:center;border:1px solid var(--line);border-radius:9px;padding:5px 12px}.clock>span{font-size:24px;color:#b8cde5}.clock b,.clock small{display:block;line-height:1.5}.clock small{font-size:9px;color:var(--muted)}.live-pill{border:1px solid rgba(32,201,151,.3);border-radius:9px;padding:7px 12px;color:#62e0b7;white-space:nowrap}.live-pill i,.dot{display:inline-block;width:8px;height:8px;background:var(--green);border-radius:50%;margin-left:5px;box-shadow:0 0 10px #20c997}.nav{display:flex;gap:5px;padding:8px 0 10px;border-bottom:1px solid var(--line);overflow:auto}.nav a{flex:1;min-width:max-content;border:1px solid transparent;background:transparent;color:#b5c7dc;padding:10px 14px;border-radius:8px;font:inherit;cursor:default}.nav a.active{background:linear-gradient(120deg,#e4ad3f,#f3d17c);color:#14243a;font-weight:700;box-shadow:0 5px 18px #d69c3530}main{padding:18px 0 12px}.section-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.eyebrow,.tag{font:9px Arial;letter-spacing:1px;color:var(--gold)}.section-head h2{font-size:21px;margin:0}.section-head p{margin:0;color:var(--muted);font-size:11px}.connection{display:flex;align-items:center;gap:9px}.connection small,.connection b{display:block}.connection small{font-size:9px;color:var(--muted)}.connection b{font-size:11px;color:#5ee0b2}.connection button{border:1px solid var(--line);border-radius:8px;background:#142b49;color:var(--gold);font-size:22px;width:38px;height:38px;cursor:pointer}.kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin-bottom:13px}.kpi{display:flex;align-items:center;gap:12px;min-height:91px;padding:12px;border:1px solid var(--line);border-radius:12px;background:linear-gradient(140deg,#172e4b,#0d2039);position:relative;overflow:hidden}.kpi:after{content:'';position:absolute;inset:0 auto 0 0;width:3px;background:var(--accent)}.kpi-icon{width:43px;height:43px;display:grid;place-items:center;border-radius:10px;color:var(--accent);font-size:26px;background:color-mix(in srgb,var(--accent) 12%,transparent);border:1px solid color-mix(in srgb,var(--accent) 38%,transparent)}.kpi small,.kpi strong,.kpi em{display:block}.kpi small{font-size:10px;color:#c3d2e4}.kpi strong{font-size:27px;line-height:1.35;color:#fff;font-variant-numeric:tabular-nums}.kpi em{font-style:normal;font-size:9px;color:var(--accent)}.gold{--accent:var(--gold)}.green{--accent:var(--green)}.teal{--accent:var(--teal)}.blue{--accent:var(--blue)}.purple{--accent:var(--purple)}.red{--accent:var(--red)}.grid-top{display:grid;grid-template-columns:1.15fr 1fr .9fr;gap:12px;margin-bottom:12px}.grid-bottom{display:grid;grid-template-columns:1.15fr 1fr .9fr;gap:12px}.panel{min-width:0;padding:13px;border:1px solid var(--line);border-radius:13px;background:linear-gradient(145deg,#142b49,#0d2038);box-shadow:0 8px 24px #0002}.panel-title{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;min-height:47px}.panel-title h3{font-size:13px;margin:0}.panel-title p{font-size:9px;color:var(--muted);margin:0}.tag{padding:3px 6px;border:1px solid #d5a84d55;border-radius:5px;white-space:nowrap;font-size:8px}.map-area{height:245px;position:relative;overflow:hidden;border:1px solid #7597bb22;border-radius:9px;background:radial-gradient(ellipse at center,#1a4260 0,#0b1b31 65%);display:grid;place-items:center}.map-lines{position:absolute;inset:0;background:repeating-linear-gradient(0deg,transparent 0 31px,#8bb3d00c 32px),repeating-linear-gradient(90deg,transparent 0 31px,#8bb3d00c 32px);opacity:.7}.map-orbit{position:absolute;border:1px solid #4a9cb944;border-radius:50%;transform:rotate(-22deg)}.orbit1{width:75%;height:65%}.orbit2{width:55%;height:90%;transform:rotate(35deg)}.map-center{z-index:1;font:700 27px Arial;letter-spacing:5px;color:#ffffff16;text-align:center}.map-center span{display:block;font:10px Sahel;color:#adc1d5;letter-spacing:0}.map-points{position:absolute;inset:10px;z-index:2}.map-point{position:absolute;padding:4px 8px;border:1px solid #e8b84e77;background:#142b49e8;border-radius:7px;color:#f5d17e;font-size:9px;box-shadow:0 0 12px #e8b84e22}.map-point:before{content:'';display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--green);margin-left:5px}.map-note{position:absolute;bottom:5px;right:8px;left:8px;text-align:center;color:#7893b1;font-size:8px}.chart{height:206px;display:flex;align-items:center;justify-content:center;overflow:hidden}.chart svg{width:100%;height:100%;overflow:visible}.chart-foot{display:flex;justify-content:space-between;color:var(--muted);font-size:9px}.legend{display:inline-block;width:8px;height:8px;border-radius:50%;margin-left:5px}.gold-dot{background:var(--gold)}.donut-wrap{height:225px;display:flex;align-items:center;justify-content:space-around;gap:8px}.donut{width:145px;height:145px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(#334a66 0deg 360deg);position:relative;flex:none}.donut:before{content:'';position:absolute;inset:23px;background:#10233e;border-radius:50%}.donut>div{position:relative;text-align:center}.donut strong,.donut small{display:block}.donut strong{font-size:24px}.donut small{font-size:9px;color:var(--muted)}.legend-list{display:grid;gap:8px;min-width:110px}.legend-row{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:9px;color:#c5d4e5}.legend-row span:first-child{display:flex;align-items:center;gap:5px}.legend-row i{width:8px;height:8px;border-radius:50%}.event-list{display:grid;gap:0}.event-row{display:grid;grid-template-columns:1fr auto;gap:6px;padding:9px 2px;border-bottom:1px solid #ffffff0d}.event-row:last-child{border:0}.event-main b{display:block;font-size:10px;font-weight:400;color:#e6eef8;line-height:1.7}.event-main small{font-size:8px;color:var(--muted)}.event-meta{text-align:left;white-space:nowrap}.event-meta time{font:10px Arial;color:#a9bfd8}.demo-badge{display:block;color:#eab951;font-size:8px}.gauge{height:148px;position:relative;display:flex;align-items:flex-end;justify-content:center;overflow:hidden}.gauge-track{position:absolute;width:220px;height:110px;border:15px solid #263d58;border-bottom:0;border-radius:150px 150px 0 0;top:25px}.gauge-value{position:absolute;width:220px;height:110px;border:15px solid transparent;border-top-color:#20c997;border-left-color:#e8b84e;border-right-color:#ef5264;border-bottom:0;border-radius:150px 150px 0 0;top:25px;clip-path:inset(0 0 0 0)}.gauge-number{position:relative;text-align:center;margin-bottom:5px}.gauge-number strong{display:block;font-size:34px;color:#f3ca67;line-height:1.3}.gauge-number small{font-size:9px;color:var(--muted)}.risk-caption{text-align:center;font-size:10px;color:#f0c76b;margin:4px}.risk-list{display:grid;gap:5px;margin-top:8px}.risk-row{display:flex;justify-content:space-between;gap:8px;padding:5px 7px;background:#08182b66;border-radius:6px;font-size:9px}.risk-row span{color:#b9cadd;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.risk-row b{color:#f0c76b;white-space:nowrap}.method-note{display:block;color:#7189a5;font-size:8px;margin-top:8px}.signal-list{display:grid;gap:8px}.signal-row{display:flex;align-items:center;justify-content:space-between;padding:8px 9px;border:1px solid #ffffff0d;border-radius:7px;background:#091a2e66}.signal-row span{font-size:10px}.signal-row b{font-size:9px;color:#5cddb3}.data-quality{margin-top:12px;padding:8px;border-radius:7px;background:#0a1b2e;color:#9db3ca;font-size:9px}footer{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:13px 2px;color:#728ba8;font-size:8px;border-top:1px solid var(--line);margin-top:13px}.empty{color:var(--muted);font-size:10px;text-align:center;padding:25px 8px}.error{color:#ff8792}
@media(max-width:1150px){.kpis{grid-template-columns:repeat(3,1fr)}.grid-top,.grid-bottom{grid-template-columns:1fr 1fr}.map-panel,.events-panel{grid-column:1/-1}.hero{grid-template-columns:1fr 1.5fr}.hero-meta{display:none}}
@media(max-width:720px){.shell{padding:0 10px}.hero{grid-template-columns:1fr;justify-items:center;padding:12px 0;gap:8px}.hero-title{order:2}.hero-title h1{font-size:15px}.brand{justify-self:center}.nav a{padding:8px 11px;font-size:10px}.section-head h2{font-size:17px}.kpis{grid-template-columns:repeat(2,1fr);gap:7px}.kpi{padding:9px;gap:8px;min-height:80px}.kpi-icon{width:34px;height:34px;font-size:20px}.kpi strong{font-size:22px}.grid-top,.grid-bottom{grid-template-columns:1fr}.map-panel,.events-panel{grid-column:auto}.donut-wrap{justify-content:center}.connection small{display:none}.panel{padding:10px}}

/* ===== DEWS Typography Fix ===== */

@font-face {
    font-family: "Sahel";
    src: url("/static/fonts/Sahel.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Sahel";
    src: url("/static/fonts/Sahel-Bold.woff2") format("woff2");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

html,
body,
button,
input,
select,
textarea {
    font-family: "Sahel", Tahoma, sans-serif !important;
}

body {
    font-size: 15px !important;
    line-height: 2 !important;
}

.hero-title h1 {
    font-size: 23px !important;
}

.hero-title p,
.section-head p {
    font-size: 14px !important;
}

.section-head h2 {
    font-size: 24px !important;
}

.kpi small {
    font-size: 13px !important;
}

.kpi strong {
    font-size: 30px !important;
}

.kpi em {
    font-size: 12px !important;
}

.panel-title h3 {
    font-size: 17px !important;
}

.panel-title p {
    font-size: 12px !important;
}

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

.event-main b {
    font-size: 13px !important;
}

.event-main small,
.event-meta time {
    font-size: 11px !important;
}

.legend-row,
.signal-row span,
.signal-row b,
.risk-row {
    font-size: 12px !important;
}

.map-point {
    font-size: 12px !important;
}

.map-note,
.method-note,
.data-quality,
.empty {
    font-size: 11px !important;
}

footer {
    font-size: 11px !important;
}

.nav a {
    font-size: 14px !important;
}



/* ===== DEWS reference-layout refinement: navigation + KPI cards ===== */

/* Six separate navigation tiles, matching the supplied reference layout. */
.nav {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 7px !important;
    padding: 9px 0 11px !important;
    border-bottom: 1px solid var(--line);
    overflow: visible;
}

.nav a {
    min-width: 0 !important;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 9px 10px !important;
    border: 1px solid rgba(111, 151, 194, .25) !important;
    border-radius: 9px !important;
    background: linear-gradient(180deg, #142a46 0%, #0d1e35 100%) !important;
    color: #d5e2f1 !important;
    font-family: "Sahel", Tahoma, sans-serif !important;
    font-size: 14px !important;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.nav a:hover {
    border-color: rgba(232, 184, 78, .65) !important;
    background: linear-gradient(180deg, #1a3556 0%, #102540 100%) !important;
    transform: translateY(-1px);
}

.nav a.active {
    color: #15243a !important;
    border-color: #f0c86c !important;
    background: linear-gradient(115deg, #e5ad3f 0%, #f5d783 100%) !important;
    box-shadow: 0 5px 16px rgba(214, 156, 53, .22);
}

.nav-icon {
    display: inline-grid;
    place-items: center;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    font-family: Arial, sans-serif;
    font-size: 18px;
    line-height: 1;
    color: #9db7d4;
}

.nav a.active .nav-icon {
    color: #172b43;
}

/* KPI tiles: wider visual rhythm, clear hierarchy, icon badge and colored accent. */
.kpis {
    gap: 11px !important;
    margin-bottom: 15px !important;
}

.kpi {
    min-height: 104px !important;
    padding: 13px 14px !important;
    gap: 11px !important;
    border-radius: 11px !important;
    border-color: color-mix(in srgb, var(--accent) 32%, rgba(145,180,220,.17)) !important;
    background:
        linear-gradient(145deg, color-mix(in srgb, var(--accent) 9%, #172e4b), #0d2039 78%) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.035), 0 5px 15px rgba(0,0,0,.12);
}

.kpi:after {
    width: 3px !important;
    opacity: .95;
}

.kpi-icon {
    flex: 0 0 44px;
    width: 44px !important;
    height: 44px !important;
    border-radius: 11px !important;
    font-size: 25px !important;
    background: color-mix(in srgb, var(--accent) 13%, #10233e) !important;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 14%, transparent);
}

.kpi > div:last-child {
    min-width: 0;
    flex: 1 1 auto;
}

.kpi small {
    color: #d2deec !important;
    font-size: 13px !important;
    line-height: 1.8 !important;
    white-space: normal;
}

.kpi strong {
    display: block;
    margin-top: 1px;
    font-family: "Sahel", Tahoma, sans-serif !important;
    font-size: 30px !important;
    font-weight: 700;
    line-height: 1.35 !important;
    color: #fff !important;
    letter-spacing: .2px;
}

.kpi em {
    display: block;
    margin-top: 2px;
    font-size: 11px !important;
    line-height: 1.7 !important;
    color: var(--accent) !important;
    font-style: normal;
}

/* Improve dashboard spacing so the new tiles do not crowd the content. */
main {
    padding-top: 20px;
}

.section-head {
    margin-bottom: 17px;
}

@media (max-width: 1150px) {
    .nav {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .nav {
        display: flex !important;
        gap: 6px !important;
        overflow-x: auto;
        padding-bottom: 9px !important;
    }

    .nav a {
        flex: 0 0 auto !important;
        min-height: 42px;
        padding: 7px 11px !important;
        font-size: 12px !important;
    }

    .nav-icon {
        flex-basis: 18px;
        width: 18px;
        height: 18px;
        font-size: 16px;
    }

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

    .kpi {
        min-height: 88px !important;
        padding: 9px !important;
        gap: 8px !important;
    }

    .kpi-icon {
        flex-basis: 34px;
        width: 34px !important;
        height: 34px !important;
        font-size: 20px !important;
    }

    .kpi small {
        font-size: 11px !important;
    }

    .kpi strong {
        font-size: 24px !important;
    }

    .kpi em {
        font-size: 9px !important;
    }
}


/* ===== DEWS custom logo mark ===== */
.brand {
    gap: 12px;
}
.brand .globe {
    width: 58px !important;
    height: 58px !important;
    flex: 0 0 58px;
    overflow: hidden;
    border-radius: 50%;
    border: 1px solid rgba(232, 185, 83, .78);
    background: #07172b;
    box-shadow: 0 0 18px rgba(44, 151, 220, .24), 0 0 12px rgba(225, 174, 65, .18);
}
.brand .globe img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
}
@media (max-width: 720px) {
    .brand .globe {
        width: 46px !important;
        height: 46px !important;
        flex-basis: 46px;
    }
}


/* ===== DEWS logo display correction v2 ===== */
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}
.brand .globe {
    width: 82px !important;
    height: 58px !important;
    flex: 0 0 82px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 10px !important;
    border: 1px solid rgba(232, 185, 83, .62) !important;
    background: #07172b !important;
    box-shadow: 0 0 14px rgba(44, 151, 220, .18);
}
.brand .globe img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    border-radius: 0 !important;
}
@media (max-width: 720px) {
    .brand .globe {
        width: 64px !important;
        height: 46px !important;
        flex-basis: 64px !important;
    }
}


/* ===== DEWS header logo crop correction v3 ===== */
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}
.brand .globe {
    width: 112px !important;
    height: 58px !important;
    flex: 0 0 112px !important;
    display: block !important;
    overflow: hidden;
    border-radius: 9px !important;
    border: 1px solid rgba(232, 185, 83, .65) !important;
    background: #07172b !important;
    box-shadow: 0 0 15px rgba(44, 151, 220, .18);
}
.brand .globe img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center 52% !important;
    border-radius: 0 !important;
}
@media (max-width: 720px) {
    .brand .globe {
        width: 78px !important;
        height: 44px !important;
        flex-basis: 78px !important;
    }
}


/* ===== DEWS final emblem: clean square icon ===== */
.brand {
    display: flex;
    align-items: center;
    gap: 11px;
}
.brand .globe {
    width: 62px !important;
    height: 62px !important;
    flex: 0 0 62px !important;
    display: block !important;
    overflow: hidden;
    border-radius: 50% !important;
    border: 1px solid rgba(232, 185, 83, .82) !important;
    background: #07172b !important;
    box-shadow: 0 0 17px rgba(44, 151, 220, .22), 0 0 10px rgba(225, 174, 65, .16);
}
.brand .globe img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 50% !important;
}
@media (max-width: 720px) {
    .brand .globe {
        width: 48px !important;
        height: 48px !important;
        flex-basis: 48px !important;
    }
}


/* Distinguish information sources from fresh signals */
.kpi.source {
    --accent: #f59e0b;
}


/* ===== KPI title readability fix ===== */
.kpi small,
.kpi > div > small {
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.9 !important;
    color: #eef5ff !important;
}

/* The events card label gets a little extra emphasis. */
.kpi.gold small {
    font-size: 17px !important;
    font-weight: 800 !important;
}

@media (max-width: 720px) {
    .kpi small,
    .kpi > div > small {
        font-size: 13px !important;
    }
    .kpi.gold small {
        font-size: 14px !important;
    }
}


/* ===== Refined navigation icons ===== */
.nav a {
    gap: 10px !important;
}
.nav-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 25px !important;
    height: 25px !important;
    flex: 0 0 25px !important;
    color: #9fc8ee !important;
}
.nav-icon svg {
    display: block;
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 3px rgba(65, 169, 245, .25));
}
.nav a.active .nav-icon {
    color: #172b43 !important;
}
.nav a.active .nav-icon svg {
    filter: none;
}
.nav a:hover .nav-icon {
    color: #f2c86c !important;
}
@media (max-width: 720px) {
    .nav-icon {
        width: 21px !important;
        height: 21px !important;
        flex-basis: 21px !important;
    }
    .nav-icon svg {
        width: 18px;
        height: 18px;
    }
}



/* ===== Events workspace page ===== */
.page-view[hidden] { display:none !important; }
.page-view { animation: pageFade .22s ease-out; }
@keyframes pageFade { from {opacity:.65; transform:translateY(4px)} to {opacity:1; transform:none} }
.events-heading {display:flex;align-items:center;justify-content:space-between;gap:18px;margin:18px 0 16px}
.events-heading h2 {margin:4px 0;font-size:23px;color:#f1f6ff}
.events-heading p {margin:0;color:#8eafd2;font-size:13px}
.events-heading-actions {display:flex;align-items:center;gap:9px}
.events-live {display:flex;align-items:center;gap:7px;color:#22d6a1;font-size:12px}
.events-live i {width:8px;height:8px;border-radius:50%;background:#22d6a1;box-shadow:0 0 9px #22d6a1}
.event-action {border:1px solid #28608e;border-radius:8px;padding:9px 13px;color:#e8f3ff;background:linear-gradient(180deg,#14385b,#0c2340);font:600 12px Sahel,Tahoma,sans-serif;cursor:pointer}
.event-action.primary {background:linear-gradient(110deg,#e4a936,#f4d17a);border-color:#efc45e;color:#17243a}
.event-action:disabled {opacity:.45;cursor:not-allowed}
.event-kpis {display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px;margin-bottom:13px}
.event-kpi {--ev:#4ab8ff;display:flex;align-items:center;gap:10px;min-height:83px;padding:11px;border:1px solid color-mix(in srgb,var(--ev) 48%,#17324f);border-radius:10px;background:linear-gradient(145deg,color-mix(in srgb,var(--ev) 15%,#142a46),#0b1c32)}
.event-kpi-icon {width:38px;height:38px;flex:0 0 38px;display:grid;place-items:center;border-radius:10px;color:var(--ev);background:color-mix(in srgb,var(--ev) 15%,#10233c);font-size:24px}
.event-kpi strong,.event-kpi small,.event-kpi em {display:block}
.event-kpi strong {font-size:25px;line-height:1.35;color:#fff}
.event-kpi small {font-size:12px;font-weight:700;color:#e4eefb}
.event-kpi em {font-size:10px;color:var(--ev);font-style:normal}
.event-kpi.purple{--ev:#bd78ff}.event-kpi.green{--ev:#20d6a0}.event-kpi.blue{--ev:#35b8ff}.event-kpi.yellow{--ev:#f1ce36}.event-kpi.orange{--ev:#ff9e35}.event-kpi.red{--ev:#ff5369}
.events-workspace {display:grid;grid-template-columns:218px minmax(0,1fr);gap:12px;align-items:start}
.panel.event-filters {padding:13px;display:flex;flex-direction:column;gap:11px}
.event-panel-title {display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:9px}
.event-panel-title h3 {font-size:15px;margin:0;color:#edf5ff}
.event-panel-title small {display:block;font-size:10px;color:#8faed0;margin-top:3px}
.event-panel-title>span:not(.tag) {color:#69bfff;font-size:20px}
.event-filters label {display:flex;flex-direction:column;gap:5px;color:#c6d8ec;font-size:11px}
.event-filters select,.event-filters input {width:100%;height:36px;padding:6px 9px;border:1px solid #315c83;border-radius:7px;background:#0a1c32;color:#e8f3ff;font:12px Sahel,Tahoma,sans-serif;outline:none}
.event-filters select:focus,.event-filters input:focus {border-color:#e9b84e;box-shadow:0 0 0 2px #e9b84e22}
.filter-footnote {font-size:10px;line-height:1.8;color:#7898ba;border-top:1px solid #294360;padding-top:9px}
.events-main {min-width:0;display:flex;flex-direction:column;gap:12px}
.events-analytics {display:grid;grid-template-columns:1.25fr 1fr .9fr;gap:10px}
.events-analytics .panel {padding:12px;min-width:0}
.event-map-placeholder {height:180px;position:relative;overflow:hidden;border:1px solid #21496e;border-radius:8px;background:radial-gradient(ellipse at 35% 55%,#164c60 0%,#102d49 38%,#091a30 80%);display:flex;align-items:center;justify-content:center}
.event-map-placeholder:before,.event-map-placeholder:after {content:"";position:absolute;width:80%;height:65%;border:1px solid #2e7590;border-radius:50%;transform:rotate(-18deg);opacity:.38}
.event-map-placeholder:after {width:65%;height:90%;transform:rotate(38deg)}
.event-map-orbit {position:absolute;inset:0;background-image:linear-gradient(#3b719022 1px,transparent 1px),linear-gradient(90deg,#3b719022 1px,transparent 1px);background-size:28px 28px;opacity:.4}
.event-map-label {z-index:1;color:#2e6687;font-size:24px;font-weight:800;letter-spacing:4px;text-align:center}
.event-map-label small {display:block;font-size:10px;letter-spacing:0;color:#9cc9e5}
.event-map-pin {position:absolute;z-index:2;padding:3px 7px;border:1px solid #4aa5d3;border-radius:12px;background:#0b2842;color:#e7f5ff;font-size:10px;box-shadow:0 0 9px #25aaff55}
.pin-a{top:34%;right:18%}.pin-b{bottom:25%;right:30%}.pin-c{top:48%;left:18%}.pin-d{bottom:22%;left:34%}
.map-disclaimer {position:absolute;bottom:5px;right:8px;color:#7398b9;font-size:8px;z-index:2}
.event-chart-empty,.event-category-empty {height:180px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:#7d9dbd}
.event-chart-empty small,.event-category-empty small {font-size:10px;text-align:center}
.chart-bars {font-size:31px;letter-spacing:5px;color:#eab84b;text-shadow:0 0 12px #eab84b66}
.empty-donut {width:116px;height:116px;border:18px solid #2b4663;border-radius:50%;display:grid;place-items:center;color:#dcecff;font-size:25px;box-shadow:0 0 0 1px #426284}
.event-table-panel {padding:12px 0 0;overflow:hidden}
.table-heading {padding:0 14px}
.event-table-wrap {overflow-x:auto}
.event-table {width:100%;border-collapse:collapse;min-width:900px;font-size:11px}
.event-table th {background:#0b2038;color:#c9dff4;font-weight:700;padding:10px 8px;border-top:1px solid #2a4c6d;border-bottom:1px solid #2a4c6d;white-space:nowrap}
.event-table td {padding:10px 8px;color:#dce8f6;border-bottom:1px solid #1b3854;text-align:center;line-height:1.8}
.event-table tbody tr:hover {background:#17355377}
.event-table td:nth-child(2) {text-align:right;min-width:210px}
.event-empty-row {height:95px;color:#83a4c7 !important;text-align:center !important}
.event-table-footer {display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 13px;color:#85a5c6;font-size:10px}
.event-table-footer>div {display:flex;gap:7px}
@media(max-width:1150px){.event-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.events-analytics{grid-template-columns:1fr 1fr}.event-category-panel{grid-column:1/-1}}
@media(max-width:800px){.events-workspace{grid-template-columns:1fr}.event-filters{display:grid !important;grid-template-columns:repeat(2,minmax(0,1fr))}.event-panel-title{grid-column:1/-1}.events-analytics{grid-template-columns:1fr}.event-category-panel{grid-column:auto}}
@media(max-width:560px){.events-heading{align-items:flex-start;flex-direction:column}.event-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.event-filters{grid-template-columns:1fr}.event-table-footer{align-items:flex-start;flex-direction:column}}



/* ===== Media monitoring workspace ===== */
.media-kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px;margin:17px 0 12px}
.media-kpi{--m:#35baff;display:flex;align-items:center;gap:10px;min-height:82px;padding:10px 12px;border:1px solid color-mix(in srgb,var(--m) 55%,#17324f);border-radius:10px;background:linear-gradient(145deg,color-mix(in srgb,var(--m) 17%,#142b47),#0b1d34);box-shadow:inset 0 1px 0 #ffffff0a}
.media-kpi .media-icon{width:40px;height:40px;flex:0 0 40px;display:grid;place-items:center;border-radius:10px;color:var(--m);background:color-mix(in srgb,var(--m) 15%,#10233c);font-size:25px;font-weight:800}
.media-kpi strong,.media-kpi small,.media-kpi em{display:block}
.media-kpi strong{font-size:25px;line-height:1.3;color:#fff}
.media-kpi small{font-size:12px;font-weight:800;color:#e9f2fc}
.media-kpi em{font-size:10px;color:var(--m);font-style:normal}
.media-kpi.red{--m:#ff5268}.media-kpi.purple{--m:#bd6cff}.media-kpi.blue{--m:#25baff}.media-kpi.green{--m:#16d5a1}.media-kpi.gold{--m:#f5c33f}.media-kpi.cyan{--m:#36d7e9}
.media-layout{display:grid;grid-template-columns:265px minmax(0,1fr);gap:12px;align-items:start}
.media-filters{padding:13px;display:flex;flex-direction:column;gap:10px}
.media-panel-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:9px}
.media-panel-head h3{font-size:15px;color:#f0f6ff;margin:0}
.media-panel-head small{display:block;color:#8eafd0;font-size:10px;margin-top:3px}
.media-head-icon{font-size:23px;color:#eabd51}
.media-filters>label{display:flex;flex-direction:column;gap:5px}
.media-label{display:flex;align-items:center;gap:7px;color:#e1edf9;font-size:13px;font-weight:800}
.media-label i{font-style:normal;color:#f0c451;font-size:17px}
.media-filters select,.media-filters input[type=search]{width:100%;height:39px;border:1px solid #315b82;border-radius:7px;background:#0a1c32;color:#e9f3ff;padding:7px 10px;font:12px Sahel,Tahoma,sans-serif}
.media-filter-group{display:flex;flex-direction:column;gap:7px}
.media-check{display:flex;align-items:center;gap:7px;color:#c8d9eb;font-size:11px}
.media-check input{accent-color:#16baff;width:15px;height:15px}
.media-check b{margin-right:auto;color:#7eb9e5;font-size:10px}
.media-apply,.media-reset{height:38px;border-radius:8px;font:700 12px Sahel,Tahoma,sans-serif;cursor:pointer}
.media-apply{border:1px solid #f2c451;background:linear-gradient(110deg,#e6ac37,#f4d274);color:#17263c}
.media-reset{border:1px solid #23699c;background:linear-gradient(180deg,#12436a,#0c2744);color:#e6f4ff}
.media-filter-note{font-size:9px;line-height:1.9;color:#7899ba;border-top:1px solid #284562;padding-top:8px}
.media-main{min-width:0;display:flex;flex-direction:column;gap:11px}
.media-top-grid{display:grid;grid-template-columns:1.25fr 1fr .95fr;gap:10px}
.media-top-grid>.panel,.media-bottom-grid>.panel,.media-side-panels>.panel{padding:12px;min-width:0}
.media-tag{font-size:9px;letter-spacing:.5px;color:#eab84b;border:1px solid #765b2d;border-radius:4px;padding:2px 5px;white-space:nowrap}
.media-line-chart{height:185px;position:relative;padding:8px 5px 20px 36px;background:repeating-linear-gradient(to bottom,transparent 0,transparent 35px,#2a496322 36px)}
.media-line-chart svg{width:100%;height:100%;overflow:visible}
.media-ylabels{position:absolute;top:5px;bottom:23px;left:0;display:flex;flex-direction:column;justify-content:space-between;color:#7f9dbd;font-size:9px}
.media-xlabels{position:absolute;bottom:0;left:34px;right:0;display:flex;justify-content:space-between;color:#7f9dbd;font-size:9px}
.media-chart-note{display:block;color:#708eae;font-size:9px;line-height:1.7;margin-top:5px}
.sentiment-content{height:185px;display:flex;align-items:center;justify-content:space-evenly;gap:12px}
.sentiment-donut{width:148px;height:148px;flex:0 0 148px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(#16d78e 0 38.7%,#aebed2 38.7% 70.6%,#ff5268 70.6% 100%);position:relative}
.sentiment-donut:before{content:"";position:absolute;inset:24px;border-radius:50%;background:#102640;border:1px solid #35506c}
.sentiment-donut>div{z-index:1;text-align:center}
.sentiment-donut strong{display:block;color:#fff;font-size:22px}
.sentiment-donut small{display:block;color:#9eb8d4;font-size:9px}
.sentiment-legend{display:flex;flex-direction:column;gap:13px;min-width:95px}
.sentiment-legend div{display:grid;grid-template-columns:10px 1fr auto;align-items:center;gap:6px;color:#d7e5f4;font-size:11px}
.sentiment-legend i{width:9px;height:9px;border-radius:50%}
.sentiment-legend i.positive{background:#16d78e}.sentiment-legend i.neutral{background:#aebed2}.sentiment-legend i.negative{background:#ff5268}
.sentiment-legend b{font-size:11px;color:#fff}
.topic-bars{display:flex;flex-direction:column;gap:12px;padding-top:8px}
.topic-bars>div{display:grid;grid-template-columns:1.15fr 1fr 42px;gap:7px;align-items:center;font-size:10px;color:#dbe8f6}
.topic-bars i{height:10px;border-radius:9px;background:#102a45;overflow:hidden}
.topic-bars i b{display:block;height:100%;border-radius:9px;background:linear-gradient(90deg,#0bc7dd,#168bff)}
.topic-bars>div:nth-child(2) i b{background:linear-gradient(90deg,#16c8dc,#25a6ff)}
.topic-bars>div:nth-child(3) i b{background:linear-gradient(90deg,#8c50e9,#5d9bff)}
.topic-bars>div:nth-child(4) i b{background:linear-gradient(90deg,#bf48d9,#ed69bd)}
.topic-bars>div:nth-child(5) i b{background:linear-gradient(90deg,#ff9b16,#f6c238)}
.topic-bars>div:nth-child(6) i b{background:linear-gradient(90deg,#8098b8,#c3d2e5)}
.topic-bars strong{color:#dbe8f6;font-size:10px;text-align:left}
.media-bottom-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(250px,.8fr);gap:10px}
.media-content-table-wrap{overflow-x:auto}
.media-content-table{width:100%;min-width:650px;border-collapse:collapse;font-size:10px}
.media-content-table th{padding:9px 7px;background:#0b2038;color:#cce0f3;border-block:1px solid #2a4d6d;white-space:nowrap}
.media-content-table td{padding:10px 7px;text-align:center;color:#dce8f5;border-bottom:1px solid #1d3955;line-height:1.8}
.media-content-table td:nth-child(2){text-align:right;min-width:230px}
.source-chip,.sentiment-chip{display:inline-block;border-radius:6px;padding:2px 7px;font-size:9px;white-space:nowrap}
.source-chip.telegram{color:#62c7ff;background:#0d3b5c}.source-chip.xsource{color:#e2eaf3;background:#27384b}.source-chip.eitaa{color:#34e1b0;background:#10483e}
.sentiment-chip.positive{color:#38e5a8;background:#104637}.sentiment-chip.neutral{color:#d6e0eb;background:#34465a}.sentiment-chip.negative{color:#ff7888;background:#542333}
.media-side-panels{display:flex;flex-direction:column;gap:10px}
.media-wordcloud{min-height:145px;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px 12px;padding:10px;background:radial-gradient(ellipse,#123c5c,#0b1c32 75%);border-radius:8px}
.media-wordcloud b{font-size:22px;color:#14d8c9}.media-wordcloud strong{font-size:24px;color:#eac438}.media-wordcloud em{font-size:17px;color:#d46ad9;font-style:normal}.media-wordcloud span{font-size:15px;color:#ffb52e}.media-wordcloud i{font-size:13px;color:#35baff}.media-wordcloud small{font-size:12px;color:#8aaef1}
.source-ranking{display:flex;flex-direction:column;gap:7px}
.source-ranking div{display:grid;grid-template-columns:22px 1fr auto;align-items:center;gap:7px;padding:5px 0;border-bottom:1px solid #213d59;color:#d7e6f6;font-size:10px}
.source-ranking b{width:19px;height:19px;display:grid;place-items:center;border-radius:50%;background:#eab83f;color:#17243a}
.source-ranking strong{color:#47c8ef}
.media-alert-strip{display:flex;align-items:center;gap:15px;padding:11px 15px;border:1px solid #a43d4b;border-radius:9px;background:linear-gradient(90deg,#351b2b,#14233a 65%);color:#e8eff9;font-size:11px}
.media-alert-strip strong{color:#ff6577;white-space:nowrap;font-size:13px}
.media-alert-strip span{flex:1;line-height:1.8}
.media-alert-strip b{font-size:17px;color:#f0c451}
@media(max-width:1250px){.media-top-grid{grid-template-columns:1fr 1fr}.media-top-grid>.media-topics-panel{grid-column:1/-1}.media-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){.media-layout{grid-template-columns:1fr}.media-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.media-panel-head{grid-column:1/-1}.media-bottom-grid{grid-template-columns:1fr}}
@media(max-width:620px){.media-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.media-top-grid{grid-template-columns:1fr}.media-top-grid>.media-topics-panel{grid-column:auto}.media-filters{grid-template-columns:1fr}.media-alert-strip{align-items:flex-start;flex-direction:column}}



/* Tighten the space between the navigation bar and page content */
main {
    padding-top: 0 !important;
}
#media-view .media-kpis {
    margin-top: 0 !important;
}
#events-view .event-kpis {
    margin-top: 0 !important;
}



/* Matching filter action buttons and crisp inline icons */
.filter-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    direction: rtl;
    font-family: Sahel, Tahoma, sans-serif;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
}
.filter-button .filter-button-icon {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.event-filters .filter-button,
.media-filters .filter-button {
    min-height: 40px;
    padding: 8px 13px;
}
.event-filters .event-action.primary .filter-button-icon,
.media-filters .media-apply .filter-button-icon {
    color: #18263b;
}
.event-filters .event-action.secondary .filter-button-icon,
.media-filters .media-reset .filter-button-icon {
    color: #e8f5ff;
}



/* Redesigned media intelligence alert footer */
.media-alert-strip {
    display: grid;
    grid-template-columns: minmax(205px, 265px) minmax(0, 1fr) 42px minmax(175px, 220px);
    align-items: center;
    gap: 16px;
    min-height: 66px;
    padding: 8px 12px;
    border: 1px solid #a83d50;
    border-radius: 12px;
    background:
      linear-gradient(90deg, rgba(95,24,43,.46), rgba(13,29,49,.96) 38%, rgba(12,29,48,.98)),
      #0c1d31;
    box-shadow: inset 0 0 18px rgba(255,65,91,.08), 0 0 12px rgba(255,65,91,.08);
    color: #eaf2fc;
    font-size: 12px;
}
.media-alert-strip .media-alert-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 7px 12px;
    border: 1px solid #ff5368;
    border-radius: 9px;
    background: linear-gradient(110deg,#4b1c2a,#251b2a);
    box-shadow: inset 0 0 12px rgba(255,76,98,.14), 0 0 8px rgba(255,76,98,.15);
}
.media-alert-strip .media-alert-title strong {
    color: #fff1f3;
    font-size: 14px;
    font-weight: 900;
    white-space: nowrap;
}
.media-alert-strip .media-alert-title svg {
    width: 29px;
    height: 29px;
    flex: 0 0 29px;
    fill: none;
    stroke: #ff5268;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.media-alert-strip p {
    margin: 0;
    color: #edf3fb;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.9;
    text-align: center;
}
.media-alert-strip .media-alert-trend {
    display: grid;
    place-items: center;
    color: #ff5368;
}
.media-alert-strip .media-alert-trend svg {
    width: 31px;
    height: 31px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.media-alert-strip .media-alert-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 43px;
    padding: 7px 12px;
    border: 1px solid #e8bd35;
    border-radius: 9px;
    background: linear-gradient(110deg,#dca51d,#f4d34e);
    color: #18243a;
    box-shadow: 0 0 10px rgba(236,188,44,.18), inset 0 1px 0 rgba(255,255,255,.28);
    font: 900 12px Sahel,Tahoma,sans-serif;
    white-space: nowrap;
    cursor: pointer;
}
.media-alert-strip .media-alert-link svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
@media(max-width:900px) {
    .media-alert-strip {
        grid-template-columns: minmax(170px,220px) minmax(0,1fr) 34px;
    }
    .media-alert-strip .media-alert-link {
        grid-column: 1/-1;
        justify-self: end;
        min-width: 190px;
    }
}
@media(max-width:620px) {
    .media-alert-strip {
        grid-template-columns: 1fr;
        gap: 9px;
        padding: 10px;
    }
    .media-alert-strip .media-alert-title,
    .media-alert-strip .media-alert-link {
        width: 100%;
    }
    .media-alert-strip p {
        text-align: right;
    }
    .media-alert-strip .media-alert-trend {
        display: none;
    }
}


/* Header brand: use the supplied DEWS emblem artwork as one unified logo */
.hero .brand.brand-image-only {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 210px;
    min-width: 170px;
    height: 72px;
    gap: 0;
    overflow: visible;
}
.hero .brand.brand-image-only > img {
    display: block;
    width: 100%;
    height: 72px;
    object-fit: contain;
    object-position: right center;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
@media (max-width: 720px) {
    .hero .brand.brand-image-only {
        width: 145px;
        min-width: 125px;
        height: 58px;
    }
    .hero .brand.brand-image-only > img {
        height: 58px;
    }
}



/* Readability pass: increase typography inside dashboard panels */
.page-view .panel,
.page-view .panel p,
.page-view .panel label,
.page-view .panel li,
.page-view .panel td,
.page-view .panel th,
.page-view .panel select,
.page-view .panel input,
.page-view .panel button {
    font-size: 13px;
}
.page-view .panel h2,
.page-view .panel h3,
.page-view .panel .panel-title,
.page-view .panel .media-panel-head h3 {
    font-size: 16px !important;
    line-height: 1.65;
}
#media-view .media-panel-head h3,
#events-view .panel h3 {
    font-size: 16px !important;
}
#media-view .media-content-table {
    font-size: 12px !important;
}
#media-view .media-content-table th,
#media-view .media-content-table td {
    font-size: 12px !important;
    line-height: 1.9;
    padding: 11px 8px;
}
#media-view .source-chip,
#media-view .sentiment-chip {
    font-size: 11px !important;
    padding: 3px 8px;
}
#media-view .topic-bars strong,
#media-view .source-ranking div,
#media-view .media-filters label,
#media-view .media-filters .filter-label,
#media-view .media-panel-subtitle {
    font-size: 12px !important;
    line-height: 1.8;
}
#media-view .media-tag {
    font-size: 10px !important;
    padding: 3px 6px;
}
#media-view .media-filters input,
#media-view .media-filters select,
#media-view .media-filters button {
    font-size: 13px !important;
    min-height: 40px;
}
#events-view table th,
#events-view table td {
    font-size: 12px !important;
    line-height: 1.9;
    padding-top: 10px;
    padding-bottom: 10px;
}
#events-view .event-filters label,
#events-view .event-filters input,
#events-view .event-filters select,
#events-view .event-filters button {
    font-size: 13px !important;
}
#events-view .event-action {
    min-height: 40px;
}
@media (max-width: 900px) {
    .page-view .panel,
    .page-view .panel p,
    .page-view .panel label,
    .page-view .panel li,
    .page-view .panel td,
    .page-view .panel th {
        font-size: 12px;
    }
}



/* Geoeconomic analysis page */
.geo-kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin:10px 0 12px}
.geo-kpi{min-height:78px;display:flex;align-items:center;gap:11px;padding:10px 12px;border:1px solid var(--line,#294967);border-right:3px solid var(--accent,#eab84b);border-radius:10px;background:linear-gradient(135deg,rgba(27,54,82,.98),rgba(12,31,53,.98));box-shadow:inset 0 1px 0 rgba(255,255,255,.035)}
.geo-kpi-icon{width:39px;height:39px;display:grid;place-items:center;border-radius:9px;background:color-mix(in srgb,var(--accent) 15%,transparent);color:var(--accent);font-size:27px;font-weight:900}
.geo-kpi div{display:flex;flex-direction:column;gap:2px;min-width:0}
.geo-kpi small{font-size:11px;color:#c8d9eb}
.geo-kpi strong{font-size:23px;line-height:1.25;color:#fff;font-weight:900}
.geo-kpi em{font-size:9px;color:var(--accent);font-style:normal}
.geo-kpi.violet{--accent:#bd72ff}.geo-kpi.green{--accent:#22d89a}.geo-kpi.gold{--accent:#f2c532}.geo-kpi.cyan{--accent:#22c8f2}.geo-kpi.red{--accent:#ff596b}.geo-kpi.teal{--accent:#25d8c0}
.geo-main-grid{display:grid;grid-template-columns:230px minmax(0,1.7fr) minmax(300px,1fr);gap:10px;align-items:stretch}
.geo-main-grid>.panel,.geo-right-stack>.panel,.geo-bottom-grid>.panel{padding:11px;min-width:0}
.geo-panel-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:9px;padding-bottom:8px;border-bottom:1px solid #294967}
.geo-panel-head h3{margin:0;color:#f2f7ff;font-size:15px;font-weight:900;line-height:1.6}
.geo-tag{font-size:9px;color:#eebd4a;border:1px solid #765c31;border-radius:4px;padding:2px 5px;letter-spacing:.4px;white-space:nowrap}
.geo-layer-list{display:flex;flex-direction:column;gap:7px}
.geo-layer-list label{display:grid;grid-template-columns:27px 1fr 17px;align-items:center;gap:7px;padding:8px 6px;border:1px solid #284766;border-radius:7px;background:#102943;color:#e4eef9;font-size:12px;cursor:pointer}
.geo-layer-list input{width:15px;height:15px;accent-color:#16b9ed}
.geo-layer-symbol{font-size:19px;text-align:center;font-weight:900}.geo-layer-symbol.gold{color:#f1c638}.geo-layer-symbol.cyan{color:#28c8f4}.geo-layer-symbol.red{color:#ff5d68}.geo-layer-symbol.green{color:#23d99b}.geo-layer-symbol.violet{color:#c17aff}.geo-layer-symbol.orange{color:#ff9e35}
.geo-layer-note{margin-top:12px;padding:9px;border:1px dashed #49647e;border-radius:7px;color:#9fb8d1;font-size:10px;line-height:1.9}
.geo-map{height:335px;position:relative;overflow:hidden;border:1px solid #2b5c7b;border-radius:9px;background:radial-gradient(ellipse at 48% 45%,#16435a 0%,#0d2943 58%,#081b30 100%)}
.geo-map-grid{position:absolute;inset:0;background-image:linear-gradient(rgba(94,157,190,.09) 1px,transparent 1px),linear-gradient(90deg,rgba(94,157,190,.09) 1px,transparent 1px);background-size:30px 30px}
.geo-map-land{position:absolute;filter:drop-shadow(0 4px 9px rgba(0,0,0,.4));opacity:.9}
.geo-iran{left:5%;top:23%;width:45%;height:65%;background:linear-gradient(135deg,#126c3d,#32a947 58%,#125a42);clip-path:polygon(8% 3%,55% 0,74% 18%,90% 30%,82% 48%,100% 70%,78% 95%,47% 85%,26% 100%,10% 70%,0 40%)}
.geo-afghan{left:42%;top:16%;width:48%;height:68%;background:linear-gradient(135deg,#8a4a16,#d18a25 58%,#714017);clip-path:polygon(18% 0,74% 6%,100% 25%,86% 58%,96% 80%,60% 100%,28% 80%,0 60%,12% 30%)}
.geo-routes{position:absolute;inset:0;width:100%;height:100%;z-index:2}
.geo-routes .route{fill:none;stroke-width:4;stroke-linecap:round;stroke-dasharray:8 6;filter:drop-shadow(0 0 4px rgba(0,0,0,.6))}
.route-cyan{stroke:#39dcff}.route-gold{stroke:#ffe04b}.route-pink{stroke:#ff69bd}
.geo-country{position:absolute;z-index:3;color:#fff;text-shadow:0 2px 5px #00101e;font-size:18px;font-weight:900}
.iran-label{left:24%;top:56%}.afghan-label{left:59%;top:48%}.pakistan-label{right:4%;bottom:9%;font-size:13px}
.geo-map-point{position:absolute;z-index:4;display:flex;align-items:center;gap:5px;color:#fff;font-size:11px;font-weight:900;text-shadow:0 2px 5px #00101e}
.geo-map-point i{width:12px;height:12px;border:2px solid #fff;border-radius:50%;background:#21d99b;box-shadow:0 0 9px #20e5a0}
.p-dogharoun{left:46%;top:38%}.p-mahirud{left:58%;top:63%}.p-milak{left:43%;top:76%}.p-islamqala{left:63%;top:45%}
.geo-map-legend{position:absolute;z-index:5;right:8px;bottom:8px;display:flex;flex-direction:column;gap:5px;padding:9px 11px;border:1px solid #41617d;border-radius:8px;background:rgba(5,20,36,.88);color:#dce9f7;font-size:10px}
.geo-map-legend strong{color:#fff;font-size:11px;margin-bottom:2px}
.legend-line{display:inline-block;width:22px;border-top:3px solid;margin-left:6px;vertical-align:middle}.legend-line.cyan{border-color:#39dcff}.legend-line.gold{border-color:#ffe04b}
.legend-dot{display:inline-block;width:9px;height:9px;border-radius:50%;margin-left:10px}.legend-dot.green{background:#21d99b}.legend-dot.red{background:#ff5365}
.geo-map-watermark{position:absolute;left:12px;bottom:10px;color:rgba(185,216,238,.18);font-size:13px;font-weight:900;letter-spacing:2px}
.geo-map-caption{margin:7px 2px 0;color:#9db7d0;font-size:10px;line-height:1.7}
.geo-right-stack{display:flex;flex-direction:column;gap:10px;min-width:0}
.geo-tabs{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-bottom:8px}
.geo-tabs span{padding:7px 5px;border-radius:7px;text-align:center;font-size:11px;font-weight:800}
.geo-tabs .positive{color:#38e4a5;background:#0d3d36;border:1px solid #168d69}.geo-tabs .negative{color:#ff7886;background:#4b202e;border:1px solid #a13b50}
.geo-insight-list{list-style:none;padding:0;margin:0}
.geo-insight-list li{display:grid;grid-template-columns:22px 1fr auto;align-items:center;gap:5px;padding:7px 1px;border-bottom:1px solid #213d59;color:#e3edf8;font-size:11px}
.geo-insight-list i{font-style:normal;font-size:17px;font-weight:900}.geo-insight-list i.up{color:#29dfa0}.geo-insight-list i.down{color:#ff6576}.geo-insight-list small{color:#9bb2c9;font-size:9px}
.geo-border-table{display:flex;flex-direction:column}
.geo-border-row{display:grid;grid-template-columns:1fr 1fr 40px;gap:5px;align-items:center;padding:7px 4px;border-bottom:1px solid #213d59;color:#dce8f5;font-size:11px;text-align:center}
.geo-border-row.header{color:#9fb8d1;font-size:10px;font-weight:800}
.geo-border-row b{font-weight:800}
.state-watch,.state-normal{display:inline-block;border-radius:5px;padding:3px 5px;font-size:10px}.state-watch{color:#ffd85b;background:#4a3b16}.state-normal{color:#3de2a4;background:#104638}
.geo-bottom-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:10px}
.geo-empty-chart{height:145px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center;color:#9eb8d0}
.geo-empty-icon{font-size:30px;color:#2fc7ef}.geo-empty-chart strong{font-size:12px;color:#e3edf8}.geo-empty-chart small{font-size:10px;line-height:1.8;max-width:95%}
.geo-scenario-row{display:grid;grid-template-columns:58px 1fr 20px;gap:7px;align-items:center;padding:10px 0;border-bottom:1px solid #213d59;color:#e1ebf6;font-size:10px}
.geo-scenario-row b{padding:5px 3px;border-radius:5px;text-align:center;font-size:10px}.scenario-green{color:#2de0a0;background:#104638}.scenario-gold{color:#f4d05a;background:#4b3c17}.scenario-red{color:#ff7180;background:#4a202c}
.geo-data-note{display:flex;align-items:flex-start;gap:8px;margin-top:10px;padding:9px 11px;border:1px solid #294967;border-radius:8px;background:#0d2339;color:#9fb8d1;font-size:10px;line-height:1.9}
.geo-data-note span{color:#f0c34c;font-size:15px}
@media(max-width:1200px){.geo-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.geo-main-grid{grid-template-columns:210px minmax(0,1.5fr)}.geo-right-stack{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr}.geo-bottom-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.geo-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.geo-main-grid{grid-template-columns:1fr}.geo-right-stack{grid-column:auto;grid-template-columns:1fr}.geo-bottom-grid{grid-template-columns:1fr}.geo-map{height:290px}.geo-map-legend{font-size:9px}.geo-kpi strong{font-size:20px}}


/* ===== DEWS Geoeconomic page: rebuild from the user's corrected reference ===== */
.geo-page { direction: rtl; gap: 10px; padding-bottom: 8px; }
.geo-page .geo-kpis { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:10px; margin:0 0 2px; }
.geo-page .geo-kpi { min-height:82px; border-radius:13px; border:1px solid var(--geo-accent,#168fe0); background:linear-gradient(125deg,rgba(17,45,75,.98),rgba(8,23,43,.98)); box-shadow:inset 0 0 16px rgba(31,139,221,.10),0 0 10px rgba(0,120,220,.12); display:flex; align-items:center; gap:12px; padding:10px 14px; }
.geo-page .geo-kpi-icon { flex:0 0 42px; width:42px;height:42px;display:grid;place-items:center;border-radius:10px;color:var(--geo-accent);font-size:30px;font-weight:900;text-shadow:0 0 12px var(--geo-accent); }
.geo-page .geo-kpi strong { display:block;font-size:clamp(23px,2vw,32px);line-height:1.05;color:#f5f8ff;font-weight:900; }
.geo-page .geo-kpi small { display:block;color:#fff;font-size:14px;font-weight:800;margin-top:3px; }
.geo-page .geo-kpi em { display:block;color:var(--geo-accent);font-size:10px;font-style:normal;margin-top:3px; }
.geo-kpi-teal{--geo-accent:#00e5b4}.geo-kpi-red{--geo-accent:#ff5264}.geo-kpi-blue{--geo-accent:#14bfff}.geo-kpi-gold{--geo-accent:#ffcf24}.geo-kpi-green{--geo-accent:#00e89a}.geo-kpi-violet{--geo-accent:#bd63ff}
.geo-page .geo-layout { display:grid;grid-template-columns:minmax(190px,16%) minmax(420px,1fr) minmax(330px,30%);gap:10px;align-items:stretch; }
.geo-page .panel { min-width:0; background:linear-gradient(145deg,rgba(17,43,72,.98),rgba(8,24,44,.98));border:1px solid #1677b7;border-radius:13px;box-shadow:inset 0 0 14px rgba(15,132,217,.10),0 0 9px rgba(0,117,220,.10); }
.geo-page .geo-layers { padding:10px 12px; }
.geo-page .geo-heading { min-height:31px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 2px 7px;border-bottom:1px solid rgba(76,160,220,.24); }
.geo-page .geo-heading h3 { margin:0;color:#f4f8ff;font-size:clamp(14px,1.05vw,18px);font-weight:900; }
.geo-page .geo-heading-icon { color:#e8f4ff;font-size:20px; }
.geo-page .geo-layer-controls { display:grid;gap:8px;margin-top:12px; }
.geo-page .geo-layer-controls label { min-height:39px;display:flex;align-items:center;gap:8px;padding:5px 7px;border:1px solid #286a9a;border-radius:8px;background:linear-gradient(90deg,#0b2039,#142f4e);color:#edf5ff;font-size:13px;font-weight:750; }
.geo-page .geo-layer-controls label span:nth-child(2){flex:1}
.geo-page .layer-icon { width:24px;text-align:center;font-size:19px;font-weight:900; }
.geo-page .layer-icon.gold{color:#ffcc24}.geo-page .layer-icon.cyan{color:#13d5ff}.geo-page .layer-icon.yellow{color:#ffe12d}.geo-page .layer-icon.green{color:#14ed91}.geo-page .layer-icon.orange{color:#ffb72e}.geo-page .layer-icon.red{color:#ff594e}
.geo-page .geo-layer-controls input { appearance:none;width:19px;height:19px;border:1px solid #7192b4;border-radius:4px;background:#091a2e;position:relative;cursor:pointer; }
.geo-page .geo-layer-controls input:checked { background:#078ee8;border-color:#58caff;box-shadow:0 0 8px #098fe8; }
.geo-page .geo-layer-controls input:checked:after { content:"✓";position:absolute;inset:-2px 0 0;text-align:center;color:white;font-size:16px;font-weight:900; }
.geo-page .geo-map-panel { padding:9px 10px 7px; }
.geo-page .geo-map-canvas { height:clamp(300px,27vw,390px);position:relative;overflow:hidden;border-radius:8px;margin-top:8px;background:radial-gradient(ellipse at 48% 48%,#173c46,#07192a 72%); }
.geo-page .geo-map-grid { position:absolute;inset:0;opacity:.20;background-image:linear-gradient(rgba(77,166,203,.2) 1px,transparent 1px),linear-gradient(90deg,rgba(77,166,203,.2) 1px,transparent 1px);background-size:34px 34px; }
.geo-page .geo-map-art { position:absolute;inset:0;width:100%;height:100%;filter:drop-shadow(0 4px 8px #000); }
.geo-page .map-country { stroke:#e6b54a;stroke-width:3;stroke-linejoin:round; }
.geo-page .map-neighbor { fill:#173a49;stroke:#7395a4;stroke-width:2; }
.geo-page .map-border { fill:none;stroke:rgba(255,220,140,.75);stroke-width:2;stroke-dasharray:4 5; }
.geo-page .route { fill:none;stroke-width:7;stroke-linecap:round;filter:url(#mapGlow); }
.geo-page .route-blue{stroke:#19d9ff}.geo-page .route-yellow{stroke:#ffdc22}.geo-page .route-pink{stroke:#ff3ca5;stroke-dasharray:12 8}
.geo-page .map-labels text { fill:#fff;font-size:27px;font-weight:900;paint-order:stroke;stroke:#061321;stroke-width:5px; }
.geo-page .map-labels .neighbor-label{font-size:17px;fill:#d5e5ef}
.geo-page .map-pin circle:first-child{fill:#092033;stroke-width:5}.geo-page .map-pin circle:last-child{fill:#fff}
.geo-page .pin-green circle:first-child{stroke:#15f08b}.geo-page .pin-red circle:first-child{stroke:#ff354e}.geo-page .pin-yellow circle:first-child{stroke:#ffe22e}
.geo-page .map-point-labels text{fill:#fff;font-size:16px;font-weight:900;paint-order:stroke;stroke:#071522;stroke-width:5px}
.geo-page .geo-map-legend { position:absolute;right:10px;top:48%;transform:translateY(-50%);display:grid;gap:6px;padding:10px 12px;background:rgba(4,18,34,.92);border:1px solid #2678a8;border-radius:9px;color:#eef7ff;font-size:11px;min-width:150px; }
.geo-page .geo-map-legend b{font-size:13px;margin-bottom:2px}.geo-page .geo-map-legend span{display:flex;align-items:center;gap:7px}
.geo-page .legend-line{display:inline-block;width:23px;height:4px;border-radius:5px}.geo-page .legend-line.blue{background:#19d9ff}.geo-page .legend-line.yellow{background:#ffdc22}.geo-page .legend-line.pink{background:#ff3ca5}.geo-page .legend-dot{width:11px;height:11px;border-radius:50%;display:inline-block}.geo-page .legend-dot.green{background:#16e98a}.geo-page .legend-dot.red{background:#ff354e}.geo-page .legend-project{color:#ffc52a}.geo-page .legend-energy{color:#ff624c}
.geo-page .geo-map-scale {position:absolute;left:12px;bottom:10px;color:#fff;display:grid;gap:3px;font-size:11px;text-shadow:0 1px 3px #000}.geo-page .geo-map-scale b{font-size:16px}
.geo-page .geo-map-caption {margin:5px 2px 0;color:#8eb4d7;font-size:10px}
.geo-page .geo-side-stack {display:grid;grid-template-rows:1fr auto;gap:10px;min-height:0}
.geo-page .geo-opportunities,.geo-page .geo-border-status,.geo-page .geo-projects,.geo-page .geo-trade-trend,.geo-page .geo-trade-mix,.geo-page .geo-scenarios {padding:9px 11px;min-width:0}
.geo-page .geo-tabs {display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:9px 0 5px}
.geo-page .geo-tabs span {text-align:center;border-radius:8px;padding:6px 4px;font-size:12px;font-weight:850}
.geo-page .tab-positive{border:1px solid #00df91;color:#20f2a0;background:rgba(0,180,100,.13)}.geo-page .tab-negative{border:1px solid #ff465b;color:#ff7180;background:rgba(220,30,55,.13)}
.geo-page .geo-insights {list-style:none;padding:0;margin:0}
.geo-page .geo-insights li {display:flex;align-items:center;gap:8px;min-height:27px;border-bottom:1px solid rgba(93,154,197,.18);font-size:12px;color:#f2f6fc;font-weight:700}
.geo-page .geo-insights li:last-child{border:0}.geo-page .geo-insights i{font-style:normal;color:#13ef9c;font-size:20px;font-weight:900}
.geo-page .geo-border-table {margin-top:7px;display:grid}
.geo-page .geo-border-row {display:grid;grid-template-columns:1.1fr 1fr 1fr .8fr;align-items:center;gap:5px;min-height:25px;border-bottom:1px solid rgba(92,151,190,.2);font-size:11px;text-align:center;color:#eaf4ff}
.geo-page .geo-table-head{color:#b9d4e9;font-weight:800;background:rgba(5,19,35,.55)}
.geo-page .geo-border-row b{font-weight:800}.geo-page .state-normal,.geo-page .state-watch{padding:2px 5px;border-radius:6px;font-weight:800}.geo-page .state-normal{background:#087a50;color:#a9ffda}.geo-page .state-watch{background:#8b5a08;color:#ffe08a}
.geo-page .trend-up{color:#1bf0a0}.geo-page .trend-down{color:#ff6670}
.geo-page .geo-bottom-grid {display:grid;grid-template-columns:1fr 1fr 1fr 1fr;gap:10px;margin-top:0}
.geo-page .geo-progress-list{display:grid;gap:12px;padding-top:10px}
.geo-page .geo-progress-list>div{display:grid;grid-template-columns:1fr 32px;gap:6px;align-items:center;color:#f1f6ff;font-size:12px;font-weight:750}
.geo-page .geo-progress-list b{color:#ffc72c;text-align:left}.geo-page .geo-progress-list i{grid-column:1/-1;height:12px;border-radius:5px;background:#123b5d;border:1px solid #167cb3;overflow:hidden}.geo-page .geo-progress-list em{display:block;height:100%;background:linear-gradient(90deg,#08c8f4,#22df6e);border-radius:5px}
.geo-page .geo-chart-placeholder {height:118px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center;color:#f5f8ff}
.geo-page .geo-chart-placeholder strong{font-size:13px}.geo-page .geo-chart-placeholder span{font-size:10px;color:#8eb4d7}
.geo-page .geo-mix-placeholder{height:118px;display:flex;align-items:center;justify-content:center;gap:16px;color:#eaf4ff}
.geo-page .geo-empty-donut{width:94px;height:94px;border-radius:50%;background:conic-gradient(#159eff 0 20%,#10dca1 20% 42%,#ffc626 42% 62%,#a34af1 62% 80%,#ee5ca8 80% 91%,#9aacc5 91%);position:relative}
.geo-page .geo-empty-donut:after{content:"";position:absolute;inset:22px;border-radius:50%;background:#0c2037}
.geo-page .geo-mix-placeholder b{display:block;font-size:13px}.geo-page .geo-mix-placeholder small{display:block;max-width:130px;color:#8eb4d7;font-size:10px;margin-top:5px}
.geo-page .geo-scenario{display:grid;grid-template-columns:65px 1fr 32px;gap:7px;align-items:center;padding:9px 0;border-bottom:1px solid rgba(93,154,197,.2);font-size:11px;color:#eef5ff}
.geo-page .geo-scenario b{padding:5px 3px;text-align:center;border-radius:6px}.geo-page .scenario-opportunity{color:#1cf2a2;background:#063f35;border:1px solid #0cbb81}.geo-page .scenario-likely{color:#ffdf38;background:#51400b;border:1px solid #c49c17}.geo-page .scenario-risk{color:#ff6874;background:#4a1723;border:1px solid #e44a5c}
.geo-page .geo-scenario strong{text-align:center;color:#ffc82e;font-size:16px}
.geo-page .geo-alert-strip{display:grid;grid-template-columns:230px 1fr 245px;gap:12px;align-items:center;min-height:54px;padding:7px 12px;border:1px solid #b73d4f;border-radius:13px;background:linear-gradient(90deg,rgba(85,17,35,.55),rgba(9,27,48,.98),rgba(85,17,35,.55));box-shadow:inset 0 0 15px rgba(255,55,75,.12)}
.geo-page .geo-alert-label{padding:7px 10px;border:1px solid #ff5968;border-radius:8px;color:#fff;font-size:16px;font-weight:900;text-align:center;background:linear-gradient(90deg,#7f1d31,#351225);box-shadow:0 0 10px rgba(255,54,75,.3)}
.geo-page .geo-alert-label span{color:#ff6574;font-size:19px;margin-left:8px}
.geo-page .geo-alert-message{display:flex;align-items:center;justify-content:center;gap:10px;color:#f7f9ff;font-size:13px;font-weight:800;text-align:center}
.geo-page .geo-alert-message b{color:#ff4c60;font-size:23px}
.geo-page .geo-report-button{border:1px solid #ffce28;border-radius:8px;padding:9px 10px;background:linear-gradient(180deg,#ffdf53,#bd8100);color:#08192b;font-family:inherit;font-size:13px;font-weight:900;cursor:pointer}
.geo-page .geo-report-button span{margin-right:12px;font-size:18px}
.geo-page .geo-source-note{font-size:9px;color:#7899b8;text-align:left;margin-top:-5px}
@media(max-width:1200px){
 .geo-page .geo-layout{grid-template-columns:180px minmax(0,1fr)}.geo-page .geo-side-stack{grid-column:1/-1;grid-template-columns:1fr 1fr;grid-template-rows:auto}
 .geo-page .geo-bottom-grid{grid-template-columns:1fr 1fr}.geo-page .geo-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:760px){
 .geo-page .geo-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.geo-page .geo-layout{grid-template-columns:1fr}
 .geo-page .geo-side-stack{grid-column:auto;grid-template-columns:1fr}.geo-page .geo-map-canvas{height:320px}
 .geo-page .geo-bottom-grid{grid-template-columns:1fr}.geo-page .geo-alert-strip{grid-template-columns:1fr}
 .geo-page .geo-map-legend{right:5px;min-width:125px;font-size:9px}.geo-page .geo-map-scale{display:none}
}

.geo-page .geo-map-canvas { background:#07192a; }
.geo-page .geo-map-reference { display:block; width:100%; height:100%; object-fit:cover; object-position:center; }


/* Remove the global footer/version strip that was appearing as an empty band
   between the navigation and the geoeconomic KPI cards. */
body:has(#geoeconomic-view:not([hidden])) main > footer {
  display: none !important;
}


/* Risk monitoring page */
.risk-page{padding:0 0 12px;gap:12px}
.risk-page-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:5px 2px 2px}
.risk-page-head h2{font-size:clamp(21px,2vw,29px);margin:5px 0 3px;color:#f4f8ff}
.risk-page-head p{margin:0;color:#8eafd1;font-size:13px}
.risk-page .eyebrow,.risk-tag{color:#f3b944;font-size:9px;letter-spacing:.7px}
.risk-live{border:1px solid #176b62;background:#0b2c35;color:#39d9ae;border-radius:9px;padding:9px 13px;font-size:12px;white-space:nowrap}
.risk-live i{display:inline-block;width:7px;height:7px;background:#26d6a1;border-radius:50%;margin-left:7px;box-shadow:0 0 8px #26d6a1}
.risk-kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px}
.risk-kpi{min-height:78px;border:1px solid var(--line,#294767);border-right:3px solid var(--accent,#28a9ff);border-radius:11px;background:linear-gradient(135deg,rgba(24,51,80,.98),rgba(10,28,49,.98));display:flex;align-items:center;gap:12px;padding:10px 12px;box-shadow:inset 0 1px rgba(255,255,255,.035)}
.risk-kpi .rk-icon{font-size:28px;color:var(--accent);min-width:34px;text-align:center}
.risk-kpi div{display:flex;flex-direction:column;gap:3px;min-width:0}
.risk-kpi small{font-size:11px;color:#c2d4e8;white-space:nowrap}
.risk-kpi strong{font-size:25px;line-height:1.15;color:#fff;font-weight:800}
.risk-kpi em{font-style:normal;font-size:9px;color:var(--accent)}
.rk-red{--accent:#ff5368}.rk-purple{--accent:#bd72ff}.rk-blue{--accent:#31aaff}.rk-green{--accent:#20d5a4}.rk-gold{--accent:#f5bd42}.rk-cyan{--accent:#28c8e8}
.risk-layout{display:grid;grid-template-columns:230px minmax(0,1fr);gap:12px;align-items:start}
.risk-filter{padding:13px;display:flex;flex-direction:column;gap:12px}
.risk-panel-title{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid rgba(112,157,202,.2);padding:0 0 9px;margin-bottom:10px}
.risk-panel-title h3{font-size:15px;margin:0;color:#f2f7ff;font-weight:800}
.risk-panel-title>span:not(.risk-tag){color:#f4bd49;font-size:18px}
.risk-filter label{display:flex;flex-direction:column;gap:7px;color:#d4e2f3;font-size:12px;font-weight:700}
.risk-filter label span{color:#f2bd4a;float:left}
.risk-filter select{width:100%;height:39px;border:1px solid #2b5277;border-radius:8px;background:#0a2038;color:#eef6ff;padding:0 10px;font:inherit;font-size:12px}
.risk-apply,.risk-reset{height:39px;border-radius:8px;font:inherit;font-size:13px;font-weight:800;cursor:pointer}
.risk-apply{background:linear-gradient(180deg,#ffdf70,#e9a91d);color:#172237;border:1px solid #ffd15a}
.risk-reset{background:linear-gradient(180deg,#17466d,#0b2b49);color:#e8f3ff;border:1px solid #2376a9}
.risk-filter-note{font-size:10px;line-height:1.9;color:#83a6ca;margin:0}
.risk-main{display:flex;flex-direction:column;gap:12px;min-width:0}
.risk-top-grid{display:grid;grid-template-columns:1fr 1fr .85fr;gap:12px}
.risk-top-grid>.panel,.risk-bottom-grid>.panel{padding:13px;min-width:0}
.risk-donut-row{display:flex;align-items:center;justify-content:space-evenly;gap:12px;min-height:145px}
.risk-donut{width:140px;height:140px;border-radius:50%;background:conic-gradient(#159ff0 0 50%,#f2b72d 50% 75%,#a76aff 75% 100%);display:grid;place-items:center;position:relative;flex:none}
.risk-donut:before{content:"";position:absolute;inset:19px;background:#102943;border-radius:50%;box-shadow:inset 0 0 12px #061526}
.risk-donut>div{z-index:1;display:flex;flex-direction:column;align-items:center}
.risk-donut strong{font-size:29px;color:#fff}.risk-donut small{font-size:10px;color:#9bb8d5}
.risk-legend{display:flex;flex-direction:column;gap:12px;min-width:120px}
.risk-legend>div{display:grid;grid-template-columns:10px 1fr auto;align-items:center;gap:7px;font-size:11px;color:#c8d8ea}
.risk-legend b{color:#fff;font-size:14px}
.dot{width:9px;height:9px;border-radius:50%}.dot-blue{background:#159ff0}.dot-gold{background:#f2b72d}.dot-purple{background:#a76aff}
.risk-footnote{font-size:9px;color:#7899bc;margin:6px 0 0;line-height:1.8}
.risk-chart-empty{height:145px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:repeating-linear-gradient(0deg,transparent 0 35px,rgba(95,143,187,.11) 36px),repeating-linear-gradient(90deg,transparent 0 55px,rgba(95,143,187,.08) 56px);border-radius:7px}
.risk-chart-empty span{font-size:40px;color:#f4c34d}.risk-chart-empty p{font-size:11px;color:#9ab5d2;text-align:center;padding:0 12px}
.risk-chart-legend{font-size:10px;color:#9db7d1;margin-top:7px}.risk-chart-legend i{display:inline-block;width:8px;height:8px;background:#f4c34d;border-radius:50%;margin-left:5px}
.risk-gauge{height:145px;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;position:relative;padding-bottom:7px}
.risk-gauge-arc{width:175px;height:90px;border-radius:175px 175px 0 0;border:13px solid transparent;border-bottom:0;background:linear-gradient(#102b45,#102b45) padding-box,conic-gradient(from 270deg at 50% 100%,#20d49e 0 30%,#f3c333 30% 65%,#ff4f59 65% 100%) border-box;clip-path:inset(0 0 0 0)}
.risk-gauge strong{font-size:30px;color:#fff;margin-top:-48px;z-index:1}.risk-gauge small{font-size:10px;color:#8eaccb;z-index:1}
.risk-gauge-panel>p{text-align:center;color:#c7d9eb;font-size:11px;margin:5px 0}
.risk-bottom-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(230px,.8fr);gap:12px}
.risk-table-wrap{overflow-x:auto}
.risk-questions table{width:100%;border-collapse:collapse;min-width:550px}
.risk-questions th{background:#0b2038;color:#b9d2eb;font-size:10px;padding:10px 7px;white-space:nowrap}
.risk-questions td{border-bottom:1px solid rgba(115,157,198,.15);padding:12px 7px;color:#d7e6f5;font-size:11px}
.risk-empty-cell{text-align:center!important;color:#8ca9c8!important;padding:27px!important}
.risk-scenario-placeholder{min-height:145px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:12px}
.risk-scenario-placeholder span{font-size:34px;color:#f4bd49}.risk-scenario-placeholder b{font-size:13px;color:#e8f3ff;margin:8px 0}
.risk-scenario-placeholder p{font-size:10px;line-height:1.9;color:#91adca;margin:0}
.risk-disclaimer{border:1px solid rgba(244,189,73,.3);background:rgba(114,76,18,.12);color:#c9b98e;border-radius:8px;padding:8px 12px;font-size:10px;line-height:1.8}
@media(max-width:1100px){.risk-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.risk-top-grid{grid-template-columns:1fr 1fr}.risk-gauge-panel{grid-column:1/-1}}
@media(max-width:760px){.risk-layout{grid-template-columns:1fr}.risk-top-grid,.risk-bottom-grid{grid-template-columns:1fr}.risk-gauge-panel{grid-column:auto}.risk-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.risk-page-head{align-items:flex-start;flex-direction:column}}


/* Risk page rebuilt to follow the supplied 1600x900 reference composition */
.risk-page{display:flex;flex-direction:column;gap:10px;padding:0 0 8px}
.risk-page[hidden]{display:none!important}
.risk-kpis{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:9px}
.risk-kpi{height:88px;min-width:0;border-radius:12px;border:1px solid var(--rk);background:linear-gradient(135deg,color-mix(in srgb,var(--rk) 17%,#0a1c31),#0b1b30 78%);box-shadow:inset 0 0 14px color-mix(in srgb,var(--rk) 10%,transparent),0 0 8px color-mix(in srgb,var(--rk) 14%,transparent);display:flex;align-items:center;gap:10px;padding:10px 12px;color:white}
.risk-kpi .risk-icon{font-size:31px;line-height:1;color:var(--rk);min-width:38px;text-align:center;text-shadow:0 0 10px var(--rk)}
.risk-kpi div{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:0}
.risk-kpi strong{font-size:27px;line-height:1.05;font-weight:900}
.risk-kpi b{font-size:13px;white-space:nowrap}
.risk-kpi small{font-size:9px;color:#9bb7d2;white-space:nowrap}
.risk-red{--rk:#ff435b}.risk-purple{--rk:#b64cff}.risk-teal{--rk:#00d9b2}.risk-red2{--rk:#ff4058}.risk-yellow{--rk:#ffca00}.risk-blue{--rk:#00b9ff}.risk-green{--rk:#00d99a}
.risk-reference-grid{display:grid;grid-template-columns:235px minmax(0,1.22fr) minmax(0,1.12fr) minmax(0,1.02fr);grid-template-rows:212px 212px 194px;gap:9px;direction:rtl}
.risk-reference-grid>.panel{min-width:0;min-height:0;padding:9px 11px;overflow:hidden;border:1px solid #147bb3;border-radius:12px;background:linear-gradient(145deg,rgba(15,39,65,.98),rgba(6,23,42,.98));box-shadow:inset 0 0 13px rgba(27,133,196,.12),0 0 7px rgba(0,155,255,.09)}
.risk-reference-grid>.panel h3{font-size:15px;line-height:1.3;margin:0 0 8px;padding-bottom:7px;border-bottom:1px solid rgba(73,141,188,.3);color:#f5f8ff;font-weight:850}
.risk-filters{grid-column:1;grid-row:1 / span 2;display:flex;flex-direction:column;gap:10px}
.risk-filters h3 span,.risk-alerts-panel h3 span{color:#ffbd31;margin-left:5px}
.risk-filters>label{font-size:12px;font-weight:700;color:#e3effb;display:flex;flex-direction:column;gap:6px}
.risk-filters>label>span{color:#f4bf39}
.risk-filters select{height:34px;background:#0b213a;border:1px solid #2870a3;color:#f4f8ff;border-radius:7px;padding:0 9px;font-family:inherit;font-size:12px;width:100%}
.risk-checks{display:flex;flex-direction:column;gap:6px}
.risk-checks label{font-size:11px;display:flex;align-items:center;gap:7px}
.risk-checks input{accent-color:#12aaff;width:16px;height:16px}
.risk-apply,.risk-reset{height:35px;border-radius:8px;font-family:inherit;font-weight:850;font-size:13px;cursor:pointer}
.risk-apply{margin-top:auto;background:linear-gradient(#ffe16e,#f5b51d);color:#101d2b;border:1px solid #ffdc57}
.risk-reset{background:linear-gradient(#14517b,#0c2c4a);color:#e9f6ff;border:1px solid #1389ca}
.risk-gauge-panel{grid-column:2;grid-row:1;position:relative}
.risk-gauge-main{height:145px;display:flex;align-items:center;justify-content:center;gap:20px}
.risk-gauge-arc{width:235px;height:118px;position:relative;display:flex;align-items:flex-end;justify-content:center;padding-bottom:9px;border-radius:235px 235px 0 0;background:conic-gradient(from 270deg at 50% 100%,#00d94d 0deg,#b6ed00 60deg,#ffcf00 105deg,#ff9b00 140deg,#ff2738 180deg,transparent 180deg);clip-path:polygon(0 0,100% 0,100% 100%,0 100%)}
.risk-gauge-arc:after{content:"";position:absolute;inset:14px 14px 0;background:#0b2138;border-radius:210px 210px 0 0}
.risk-gauge-arc span{z-index:1;font-size:34px;font-weight:900;color:#ffcf39}
.risk-gauge-level{display:flex;flex-direction:column;gap:4px;align-self:flex-end;padding-bottom:10px;color:#f2f7ff;font-size:13px}
.risk-gauge-level small{color:#9bb7d2}
.risk-scale{display:grid;grid-template-columns:1fr 1fr;gap:5px 9px;font-size:10px;color:#dce8f5}
.risk-scale i{display:inline-block;width:9px;height:9px;border-radius:50%;margin-left:5px}
.s-red{background:#ff344c}.s-orange{background:#ff9c16}.s-yellow{background:#ffda00}.s-green{background:#00d58d}
.risk-change{position:absolute;top:39px;left:10px;width:112px;height:58px;border:1px solid #7651a0;border-radius:9px;background:#211c35;display:flex;align-items:center;justify-content:center;gap:4px;flex-direction:column}
.risk-change b{color:#ff4e58;font-size:15px}.risk-change span{font-size:9px;color:#e4d9f2}.risk-change small{display:none}
.risk-trend-panel{grid-column:3;grid-row:1}
.risk-trend-plot{height:151px;display:grid;grid-template-columns:30px 1fr;gap:7px}
.risk-y-labels{display:flex;flex-direction:column;justify-content:space-between;color:#d4e1f0;font-size:10px;text-align:left;padding:3px 0}
.risk-trend-empty{border-left:1px solid #7290aa;border-bottom:1px solid #7290aa;background:repeating-linear-gradient(to bottom,transparent 0 28px,rgba(115,158,194,.18) 29px),repeating-linear-gradient(to right,transparent 0 48px,rgba(115,158,194,.11) 49px);display:flex;align-items:center;justify-content:center;flex-direction:column}
.risk-trend-empty span{font-size:30px;color:#ffca24}.risk-trend-empty p{font-size:10px;color:#a8c2dd;text-align:center;padding:0 10px}
.risk-x-labels{display:flex;justify-content:space-between;margin-right:35px;color:#a9c3dc;font-size:9px}
.risk-mix-panel{grid-column:4;grid-row:1}
.risk-mix-content{display:flex;align-items:center;justify-content:space-around;height:150px;gap:8px}
.risk-donut-empty{width:132px;height:132px;border-radius:50%;border:17px solid #25445e;display:flex;align-items:center;justify-content:center;flex-direction:column;box-shadow:inset 0 0 12px #061425}
.risk-donut-empty b{font-size:30px}.risk-donut-empty small{font-size:10px;color:#9bb7d2}
.risk-mix-legend{display:grid;grid-template-columns:1fr;gap:9px;font-size:11px;color:#e3effb}
.risk-mix-legend i{display:inline-block;width:10px;height:10px;border-radius:50%;margin-left:7px}
.mix-blue{background:#078ef1}.mix-purple{background:#bd45ed}.mix-yellow{background:#f4c400}.mix-red{background:#ff4c56}.mix-cyan{background:#00cbbf}.mix-gray{background:#a5b9cb}
.risk-muted{font-size:9px;color:#91adca}
.risk-map-panel{grid-column:1 / span 2;grid-row:2}
.risk-map-image{height:151px;border-radius:7px;overflow:hidden;background:#07182b}
.risk-map-image img{width:100%;height:100%;object-fit:cover;display:block}
.risk-map-caption{font-size:9px;color:#9ab7d4;margin-top:5px}
.risk-alerts-panel{grid-column:3;grid-row:2}
.risk-alert-list{display:flex;flex-direction:column;gap:7px}
.risk-alert-empty{height:153px;display:flex;align-items:center;justify-content:center;text-align:center;padding:15px;color:#a7c0d9;font-size:11px;line-height:2;border:1px dashed rgba(113,163,203,.25);border-radius:8px}
.risk-scenarios-panel{grid-column:4;grid-row:2}
.risk-scenario-list{height:155px;display:flex;align-items:center;justify-content:center}
.risk-scenario-empty{display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px;color:#e7f0fa}
.risk-scenario-empty span{font-size:30px;color:#ffbd2e}.risk-scenario-empty small{font-size:10px;line-height:1.9;color:#9ab5d0}
.risk-model-panel{grid-column:1;grid-row:3}
.risk-model-panel table{width:100%;border-collapse:collapse;text-align:center;font-size:10px;color:#dbe8f6}
.risk-model-panel th{background:#0a2139;padding:8px 3px}
.risk-model-panel td{padding:22px 4px;color:#94afca;line-height:1.8}
.risk-matrix-panel{grid-column:2;grid-row:3}
.risk-matrix{display:grid;grid-template-columns:55px 1fr;grid-template-rows:1fr 19px;height:132px;gap:3px}
.matrix-side{display:flex;flex-direction:column;justify-content:space-around;text-align:left;font-size:9px;color:#d9e5f2}
.matrix-cells{display:grid;grid-template-columns:repeat(5,1fr);grid-template-rows:repeat(5,1fr);gap:2px}
.matrix-cells i{border:1px solid rgba(0,0,0,.25);background:linear-gradient(135deg,#35b943,#d5d51d 48%,#f58b19 75%,#e83e2e)}
.matrix-cells i:nth-child(5n+1){filter:hue-rotate(28deg)}.matrix-cells i:nth-child(5n+2){filter:hue-rotate(14deg)}.matrix-cells i:nth-child(5n+4){filter:hue-rotate(-12deg)}.matrix-cells i:nth-child(5n){filter:hue-rotate(-25deg)}
.matrix-bottom{grid-column:2;display:flex;justify-content:space-between;font-size:9px;color:#d9e5f2}
.risk-domain-panel{grid-column:3;grid-row:3}
.risk-domain-bars{display:flex;flex-direction:column;gap:11px;padding-top:5px}
.risk-domain-bars>div{display:grid;grid-template-columns:1fr 28px 40%;align-items:center;gap:8px;font-size:10px;color:#dce9f6}
.risk-domain-bars b{text-align:left;color:#b3c7dc}
.risk-domain-bars i{height:13px;border-radius:9px;background:#233c54;overflow:hidden}
.risk-domain-bars em{display:block;height:100%;background:linear-gradient(90deg,#00d7a0,#16a8e8);border-radius:9px}
.risk-actions-panel{grid-column:4;grid-row:3}
.risk-actions-panel ul{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:10px}
.risk-actions-panel li{font-size:10px;color:#e0edf8;line-height:1.7;padding-right:20px;position:relative}
.risk-actions-panel li:before{content:"✓";position:absolute;right:0;color:#00d995;font-size:15px;font-weight:900}
.risk-data-note{font-size:9px;color:#9bb4cd;border:1px solid rgba(67,135,185,.28);border-radius:7px;padding:6px 10px;background:#0b1d31}
@media(max-width:1200px){.risk-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}.risk-reference-grid{grid-template-columns:210px repeat(2,minmax(0,1fr));grid-template-rows:auto}.risk-filters{grid-column:1;grid-row:1/span 2}.risk-gauge-panel{grid-column:2;grid-row:1}.risk-trend-panel{grid-column:3;grid-row:1}.risk-mix-panel{grid-column:2;grid-row:2}.risk-map-panel{grid-column:3;grid-row:2}.risk-alerts-panel{grid-column:2;grid-row:3}.risk-scenarios-panel{grid-column:3;grid-row:3}.risk-model-panel{grid-column:1;grid-row:3}.risk-matrix-panel{grid-column:2;grid-row:4}.risk-domain-panel{grid-column:3;grid-row:4}.risk-actions-panel{grid-column:1;grid-row:4}}
@media(max-width:760px){.risk-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.risk-reference-grid{display:flex;flex-direction:column}.risk-reference-grid>.panel{min-height:190px}.risk-filters{order:0}.risk-map-image{height:180px}}


/* Corrections from the user's marked screenshot */
body:has(#risks-view:not([hidden])) main > footer{
  display:none!important;
}
#risks-view .risk-reference-grid{
  direction:ltr;
  grid-template-columns:235px minmax(0,1.22fr) minmax(0,1.12fr) minmax(0,1.02fr);
  grid-template-rows:212px 212px 194px;
}
#risks-view .risk-reference-grid>.panel{direction:rtl}
#risks-view .risk-filters{
  grid-column:1!important;
  grid-row:1 / span 2!important;
  min-height:433px;
  height:100%;
  overflow:visible;
  align-self:stretch;
}
#risks-view .risk-gauge-panel{grid-column:2!important;grid-row:1!important}
#risks-view .risk-trend-panel{grid-column:3!important;grid-row:1!important}
#risks-view .risk-mix-panel{grid-column:4!important;grid-row:1!important}
#risks-view .risk-map-panel{
  grid-column:2!important;
  grid-row:2!important;
}
#risks-view .risk-alerts-panel{grid-column:3!important;grid-row:2!important}
#risks-view .risk-scenarios-panel{grid-column:4!important;grid-row:2!important}
#risks-view .risk-model-panel{grid-column:1!important;grid-row:3!important}
#risks-view .risk-matrix-panel{grid-column:2!important;grid-row:3!important}
#risks-view .risk-domain-panel{grid-column:3!important;grid-row:3!important}
#risks-view .risk-actions-panel{grid-column:4!important;grid-row:3!important}
@media(max-width:1200px){
  #risks-view .risk-reference-grid{direction:rtl;grid-template-columns:210px repeat(2,minmax(0,1fr));grid-template-rows:auto}
  #risks-view .risk-filters{grid-column:1!important;grid-row:1 / span 2!important;min-height:0}
  #risks-view .risk-gauge-panel{grid-column:2!important;grid-row:1!important}
  #risks-view .risk-trend-panel{grid-column:3!important;grid-row:1!important}
  #risks-view .risk-mix-panel{grid-column:2!important;grid-row:2!important}
  #risks-view .risk-map-panel{grid-column:3!important;grid-row:2!important}
  #risks-view .risk-alerts-panel{grid-column:2!important;grid-row:3!important}
  #risks-view .risk-scenarios-panel{grid-column:3!important;grid-row:3!important}
}
@media(max-width:760px){
  #risks-view .risk-reference-grid{display:flex;flex-direction:column}
  #risks-view .risk-filters{min-height:0}
}


/* v3: keep filter controls visible and align field icons inline */
#risks-view .risk-filters{
  min-height:470px!important;
  height:auto!important;
  overflow:visible!important;
  gap:9px!important;
  padding:10px!important;
  align-self:stretch;
}
#risks-view .risk-filters>label{
  position:relative;
  display:flex;
  flex-direction:column;
  gap:5px;
  padding-top:17px;
  margin:0;
  min-width:0;
}
#risks-view .risk-filters>label>span{
  position:absolute;
  top:0;
  left:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:18px;
  height:18px;
  color:#f4bf39;
  font-size:15px;
  line-height:1;
}
#risks-view .risk-filters .risk-checks{
  gap:5px;
  padding:2px 0 3px;
}
#risks-view .risk-filters .risk-checks label{
  min-height:23px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:7px;
  padding:2px 0;
  font-size:11px;
}
#risks-view #risk-apply,
#risks-view #risk-reset{
  display:flex!important;
  width:100%;
  min-height:35px;
  flex:0 0 35px;
  align-items:center;
  justify-content:center;
  gap:7px;
  margin:2px 0 0!important;
  visibility:visible!important;
  opacity:1!important;
  position:relative;
  z-index:2;
}
#risks-view #risk-apply{
  background:linear-gradient(180deg,#ffe16e,#f5b51d)!important;
  color:#101d2b!important;
  border:1px solid #ffdc57!important;
}
#risks-view #risk-reset{
  background:linear-gradient(180deg,#14517b,#0c2c4a)!important;
  color:#e9f6ff!important;
  border:1px solid #1389ca!important;
}
@media(max-width:1200px){
  #risks-view .risk-filters{min-height:470px!important;height:auto!important}
}


/* v4: redesigned risk filter rail - compact field icons and visible actions */
#risks-view .risk-filters{
  box-sizing:border-box!important;
  min-height:480px!important;
  height:100%!important;
  padding:11px 10px!important;
  gap:12px!important;
  overflow:visible!important;
  align-self:stretch!important;
}
#risks-view .risk-filters h3{
  display:flex!important;
  align-items:center!important;
  gap:7px!important;
  min-height:27px!important;
  margin:0 0 2px!important;
  padding-bottom:8px!important;
  border-bottom:1px solid rgba(112,165,205,.22)!important;
}
#risks-view .risk-filters .risk-filter-field{
  display:flex!important;
  flex-direction:column!important;
  gap:7px!important;
  min-width:0!important;
}
#risks-view .risk-filters .risk-filter-label{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:8px!important;
  min-height:22px!important;
  color:#eaf4ff!important;
  font-size:12px!important;
  font-weight:800!important;
  line-height:1.4!important;
  white-space:nowrap!important;
}
#risks-view .risk-filters .risk-field-icon{
  position:static!important;
  display:inline-flex!important;
  flex:0 0 22px!important;
  width:22px!important;
  height:22px!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:6px!important;
  border:1px solid rgba(255,190,48,.55)!important;
  background:linear-gradient(145deg,#263d56,#10243a)!important;
  color:#ffc43c!important;
  font-size:15px!important;
  line-height:1!important;
  box-shadow:0 0 8px rgba(255,184,35,.10)!important;
}
#risks-view .risk-filters select{
  box-sizing:border-box!important;
  display:block!important;
  width:100%!important;
  height:37px!important;
  min-height:37px!important;
  padding:0 10px!important;
  border-radius:8px!important;
  font-size:12px!important;
  line-height:37px!important;
}
#risks-view .risk-filters .risk-checks{
  display:flex!important;
  flex-direction:column!important;
  gap:4px!important;
  padding:0!important;
}
#risks-view .risk-filters .risk-checks label{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:8px!important;
  min-height:25px!important;
  padding:1px 0!important;
  color:#e7f1fc!important;
  font-size:11px!important;
  line-height:1.35!important;
  white-space:nowrap!important;
}
#risks-view .risk-filters .risk-checks input{
  flex:0 0 15px!important;
  width:15px!important;
  height:15px!important;
  margin:0!important;
  accent-color:#16a8ff!important;
}
#risks-view #risk-apply,
#risks-view #risk-reset{
  box-sizing:border-box!important;
  display:flex!important;
  flex:0 0 36px!important;
  width:100%!important;
  height:36px!important;
  min-height:36px!important;
  margin:0!important;
  padding:0 8px!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  border-radius:8px!important;
  font-family:inherit!important;
  font-size:12px!important;
  font-weight:850!important;
  line-height:1!important;
  visibility:visible!important;
  opacity:1!important;
  position:relative!important;
  z-index:3!important;
}
#risks-view #risk-apply{
  background:linear-gradient(180deg,#ffe16e,#f5b51d)!important;
  color:#101d2b!important;
  border:1px solid #ffdc57!important;
  box-shadow:0 2px 10px rgba(255,190,40,.18)!important;
}
#risks-view #risk-reset{
  background:linear-gradient(180deg,#14517b,#0c2c4a)!important;
  color:#e9f6ff!important;
  border:1px solid #1389ca!important;
}


/* v5: primary filter action button matched to the supplied risk dashboard reference */
#risks-view #risk-apply{
  box-sizing:border-box!important;
  display:flex!important;
  flex:0 0 56px!important;
  width:100%!important;
  min-width:0!important;
  height:56px!important;
  min-height:56px!important;
  margin:8px 0 2px!important;
  padding:0 12px!important;
  align-items:center!important;
  justify-content:center!important;
  gap:11px!important;
  border:2px solid #ffe15a!important;
  border-radius:11px!important;
  background:linear-gradient(180deg,#ffe77a 0%,#ffc52e 48%,#efa900 100%)!important;
  color:#101b2b!important;
  font-family:inherit!important;
  font-size:19px!important;
  font-weight:900!important;
  line-height:1!important;
  letter-spacing:0!important;
  text-shadow:0 1px 0 rgba(255,255,255,.25)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.55),0 0 0 1px rgba(255,190,25,.22),0 4px 13px rgba(255,178,0,.24)!important;
  cursor:pointer!important;
  visibility:visible!important;
  opacity:1!important;
  position:relative!important;
  z-index:5!important;
  transition:filter .15s ease,transform .15s ease,box-shadow .15s ease!important;
}
#risks-view #risk-apply .risk-apply-icon{
  display:inline-flex!important;
  flex:0 0 29px!important;
  width:29px!important;
  height:29px!important;
  align-items:center!important;
  justify-content:center!important;
  border:2px solid #17263a!important;
  border-radius:50%!important;
  color:#17263a!important;
  background:rgba(255,255,255,.12)!important;
  font-family:Arial,sans-serif!important;
  font-size:24px!important;
  font-weight:700!important;
  line-height:1!important;
  transform:rotate(-18deg)!important;
}
#risks-view #risk-apply:hover{
  filter:brightness(1.08)!important;
  transform:translateY(-1px)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.65),0 0 15px rgba(255,193,39,.38)!important;
}
#risks-view #risk-apply:active{
  transform:translateY(1px)!important;
  filter:brightness(.98)!important;
}
#risks-view #risk-reset{
  flex:0 0 39px!important;
  height:39px!important;
  min-height:39px!important;
  margin-top:0!important;
  font-size:13px!important;
}


/* v6: fit filter controls inside the existing sidebar; prevent overlap with next panel */
#risks-view .risk-reference-grid{
  grid-template-rows:212px 212px 194px!important;
}
#risks-view .risk-filters{
  box-sizing:border-box!important;
  height:100%!important;
  min-height:0!important;
  padding:9px 9px!important;
  gap:6px!important;
  overflow:hidden!important;
  align-self:stretch!important;
}
#risks-view .risk-filters h3{
  flex:0 0 auto!important;
  min-height:25px!important;
  margin:0!important;
  padding:0 0 5px!important;
  font-size:14px!important;
}
#risks-view .risk-filters .risk-filter-field{
  flex:0 0 auto!important;
  gap:4px!important;
}
#risks-view .risk-filters .risk-filter-label{
  min-height:19px!important;
  font-size:11px!important;
  line-height:1.2!important;
}
#risks-view .risk-filters .risk-field-icon{
  flex:0 0 19px!important;
  width:19px!important;
  height:19px!important;
  font-size:13px!important;
}
#risks-view .risk-filters select{
  height:32px!important;
  min-height:32px!important;
  line-height:32px!important;
  font-size:11px!important;
}
#risks-view .risk-filters .risk-checks{
  gap:1px!important;
  padding:0!important;
}
#risks-view .risk-filters .risk-checks label{
  min-height:20px!important;
  padding:0!important;
  font-size:10px!important;
  line-height:1.2!important;
  gap:6px!important;
}
#risks-view .risk-filters .risk-checks input{
  flex:0 0 14px!important;
  width:14px!important;
  height:14px!important;
}
#risks-view #risk-apply{
  box-sizing:border-box!important;
  flex:0 0 42px!important;
  width:100%!important;
  height:42px!important;
  min-height:42px!important;
  margin:2px 0 0!important;
  padding:0 8px!important;
  gap:8px!important;
  border-width:1px!important;
  border-radius:9px!important;
  font-size:15px!important;
  line-height:1!important;
  transform:none!important;
}
#risks-view #risk-apply .risk-apply-icon{
  flex:0 0 23px!important;
  width:23px!important;
  height:23px!important;
  font-size:19px!important;
  border-width:1.5px!important;
}
#risks-view #risk-reset{
  box-sizing:border-box!important;
  flex:0 0 32px!important;
  width:100%!important;
  height:32px!important;
  min-height:32px!important;
  margin:0!important;
  padding:0 8px!important;
  font-size:11px!important;
  border-radius:8px!important;
}


/* Reports workspace */
.reports-page{display:flex;flex-direction:column;gap:14px;padding-top:14px}
.reports-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:4px 2px 2px}
.reports-heading h2{margin:4px 0;font-size:25px;color:#f3f7ff}
.reports-heading p{margin:0;color:#8fb2d9;font-size:13px}
.reports-eyebrow,.report-feature-copy>span{color:#f4b52d;font-size:10px;letter-spacing:1px;font-weight:800}
.reports-live{display:flex;align-items:center;gap:8px;padding:10px 14px;border:1px solid #176b62;border-radius:10px;background:#092b31;color:#32d8ae;font-size:12px;white-space:nowrap}
.reports-live i{width:8px;height:8px;border-radius:50%;background:#22d5a1;box-shadow:0 0 9px #22d5a1}
.reports-kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px}
.report-kpi{min-height:82px;border:1px solid #23628a;border-radius:12px;background:linear-gradient(130deg,#16334f,#0b1d34);display:flex;align-items:center;gap:12px;padding:10px 12px;box-shadow:inset 0 0 16px #0a2038}
.report-kpi-icon{font-size:29px;font-weight:800}
.report-kpi strong{display:block;font-size:25px;line-height:1.1;color:#fff}
.report-kpi small,.report-kpi em{display:block;font-size:11px;font-style:normal}
.report-kpi small{color:#edf5ff;margin-top:4px}.report-kpi em{color:#7fa9d3;font-size:9px;margin-top:3px}
.report-kpi.violet{border-color:#a64dff}.report-kpi.violet .report-kpi-icon{color:#d36cff}
.report-kpi.teal{border-color:#00c8b0}.report-kpi.teal .report-kpi-icon{color:#00e0bf}
.report-kpi.gold{border-color:#d99b16}.report-kpi.gold .report-kpi-icon{color:#ffd22d}
.report-kpi.blue{border-color:#009cf2}.report-kpi.blue .report-kpi-icon{color:#28c4ff}
.report-kpi.red{border-color:#ed4758}.report-kpi.red .report-kpi-icon{color:#ff5264}
.report-kpi.green{border-color:#00b77d}.report-kpi.green .report-kpi-icon{color:#00dda2}
.reports-main-grid{display:grid;grid-template-columns:minmax(250px, .92fr) minmax(390px,1.55fr) minmax(240px,.92fr);gap:12px;align-items:stretch}
.reports-center-column,.reports-side-column{display:flex;flex-direction:column;gap:12px;min-width:0}
.report-builder,.report-findings,.report-preview,.report-shortcuts,.report-recent{padding:13px;min-width:0}
.report-type-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0}
.report-type-card{min-height:91px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:9px 6px;border:1px solid #285c83;border-radius:10px;background:linear-gradient(145deg,#112a45,#0b1c31);color:#eaf4ff;font-family:inherit;cursor:pointer}
.report-type-card:hover,.report-type-card.selected{border-color:#f6bf36;background:linear-gradient(145deg,#463a1b,#102b45);box-shadow:0 0 12px #e4a51d33}
.report-type-icon{font-size:25px;color:#27c8ff;line-height:1}
.report-type-card.selected .report-type-icon{color:#ffcf43}
.report-type-card b{font-size:12px}.report-type-card small{font-size:9px;color:#91b2d4;text-align:center;line-height:1.5}
.report-options{display:grid;grid-template-columns:1fr;gap:8px}
.report-options label{display:flex;flex-direction:column;gap:5px;font-size:11px;color:#b7d4f1}
.report-options select{height:36px;border:1px solid #32658b;border-radius:8px;background:#0b2037;color:#f1f6ff;padding:0 10px;font-family:inherit}
.report-format-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:12px 0;color:#bcd4ed;font-size:10px}
.report-format-row>span{width:100%;font-size:11px;color:#e8f2ff;font-weight:700}
.report-format-row label{display:flex;align-items:center;gap:4px}
.report-format-row input{accent-color:#12c9a4}
.report-generate{width:100%;height:48px;border:1px solid #ffe06a;border-radius:10px;background:linear-gradient(180deg,#ffe77a,#ffbd20 55%,#e99c00);color:#17243a;font-family:inherit;font-weight:900;font-size:17px;cursor:pointer;box-shadow:0 0 13px #ffbf3433}
.report-generate:hover{filter:brightness(1.08)}
.report-builder-note{font-size:9px;color:#83a8ce;line-height:1.8;margin:9px 0 0}
.report-feature{min-height:164px;display:grid;grid-template-columns:1.15fr .85fr;overflow:hidden;padding:0;background:linear-gradient(110deg,#102c49,#07172b);border-color:#258bc4}
.report-feature-copy{padding:20px 18px;align-self:center}
.report-feature-copy h3{font-size:23px;margin:8px 0;color:#fff;line-height:1.5}
.report-feature-copy p{font-size:12px;color:#b6d5f2;margin:0;line-height:1.8}
.report-feature-art{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:hidden;background:radial-gradient(circle at 50% 50%,#155d89,#0b203b 60%,#07172b)}
.report-feature-art strong{font-size:42px;color:#f5c85b;text-shadow:0 0 15px #0bb8ff;z-index:1}
.report-feature-art small{color:#9ec9e8;font-size:8px;letter-spacing:2px;z-index:1}
.report-orbit{position:absolute;width:190px;height:130px;border:1px solid #26b9ff88;border-radius:50%;transform:rotate(-28deg);box-shadow:0 0 25px #008bd455}
.report-findings ul{list-style:none;padding:0;margin:9px 0 0}
.report-findings li{position:relative;padding:8px 25px 8px 5px;border-bottom:1px solid #24415c;color:#dcecff;font-size:11px;line-height:1.7}
.report-findings li:before{content:"✓";position:absolute;right:2px;top:7px;width:17px;height:17px;border-radius:50%;background:#087c55;color:#c7ffe9;text-align:center;font-weight:900}
.report-preview-body{min-height:135px;padding:13px;border:1px solid #244b6b;border-radius:9px;background:#0a1c30;color:#dcecff;font-size:11px;line-height:1.9}
.report-preview-body h4{font-size:16px;color:#ffd35b;margin:0 0 4px}
.report-preview-body p{margin:3px 0 8px;color:#9fc3e6}
.report-preview-body ul{padding-right:20px}
.report-preview-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:10px 0}
.report-preview-metrics div{padding:7px;border:1px solid #264968;border-radius:7px;background:#102943}
.report-preview-metrics small,.report-preview-metrics b{display:block}
.report-preview-metrics small{font-size:9px;color:#9bbbd9}
.report-preview-metrics b{font-size:15px;color:#fff}
.report-download-row{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}
.report-download-row button,.report-shortcuts button{border:1px solid #28658d;border-radius:8px;background:linear-gradient(135deg,#123452,#0b2038);color:#d9edff;font-family:inherit;cursor:pointer}
.report-download-row button{padding:8px 10px;font-size:10px}
.report-download-row button:disabled{opacity:.35;cursor:not-allowed}
.report-download-row button:not(:disabled):hover,.report-shortcuts button:hover{border-color:#eab83d;color:#ffda67}
.report-shortcuts button{width:100%;min-height:39px;display:flex;align-items:center;justify-content:space-between;padding:7px 10px;margin-top:7px;font-size:11px;text-align:right}
.report-shortcuts button span{font-size:17px;color:#20caff}
.report-recent-list{display:flex;flex-direction:column;gap:6px}
.report-recent-item{display:flex;align-items:center;gap:8px;width:100%;padding:9px;border:1px solid #234766;border-radius:8px;background:#0b2036;color:#e4f2ff;text-align:right;font-family:inherit;cursor:pointer}
.report-recent-item>span:first-child{color:#2acaff;font-size:20px}
.report-recent-item>span:nth-child(2){display:flex;flex-direction:column;flex:1;gap:3px}
.report-recent-item b{font-size:10px}.report-recent-item small{font-size:9px;color:#8fb2d4}
.report-recent-item i{font-style:normal;color:#22d6a0}
@media(max-width:1100px){.reports-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.reports-main-grid{grid-template-columns:minmax(220px,.9fr) minmax(0,1.5fr)}.reports-side-column{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr}}
@media(max-width:700px){.reports-heading{align-items:flex-start;flex-direction:column}.reports-heading h2{font-size:20px}.reports-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.reports-main-grid{grid-template-columns:1fr}.reports-side-column{grid-column:auto;display:flex}.report-feature{grid-template-columns:1fr}.report-feature-art{min-height:105px}.report-type-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media print{body *{visibility:hidden!important}#reports-view,#reports-view *{visibility:visible!important}#reports-view{position:absolute;inset:0;background:#fff;color:#111}.report-download-row,.report-builder,.reports-side-column{display:none!important}.report-preview-body{background:#fff;color:#111}}

/* Reports page: reference-matched three-column composition */
.reports-page{padding-top:10px}.reports-kpis{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;margin-bottom:11px}
.report-kpi{min-height:82px;border:1px solid #1688b9;border-radius:11px;background:linear-gradient(145deg,#173a57,#0b1c31);display:grid;grid-template-columns:34px 1fr;align-content:center;align-items:center;gap:2px 7px;padding:9px}
.report-kpi>b{grid-row:span 2;font-size:26px;color:#21caff}.report-kpi strong{font-size:24px;color:#fff}.report-kpi small{font-size:10px;color:#eef6ff}
.report-kpi.violet{border-color:#b34dff}.report-kpi.violet>b{color:#d76aff}.report-kpi.teal{border-color:#00cbb4}.report-kpi.teal>b{color:#00e3bf}.report-kpi.gold{border-color:#e6ad1d}.report-kpi.gold>b{color:#ffd43c}.report-kpi.blue{border-color:#079ee8}.report-kpi.blue>b{color:#20caff}.report-kpi.red{border-color:#ef4d5c}.report-kpi.red>b{color:#ff5867}.report-kpi.green{border-color:#00b987}.report-kpi.green>b{color:#00dda3}
.reports-layout{display:grid;grid-template-columns:minmax(220px,.88fr) minmax(480px,2.18fr) minmax(230px,.9fr);gap:11px;align-items:start}
.reports-left,.reports-right{padding:11px;min-width:0}.reports-middle{display:flex;flex-direction:column;gap:10px;min-width:0}
.report-quick-list{display:flex;flex-direction:column;gap:7px;margin:12px 0 17px}.report-quick-list button{height:42px;text-align:right;padding:7px 10px;border:1px solid #2879a8;border-radius:9px;background:linear-gradient(110deg,#123958,#0b2038);color:#f1f7ff;font-family:inherit;font-size:11px;font-weight:700;cursor:pointer}.report-quick-list button:hover{border-color:#ffd13d;color:#ffda64}
.report-generate{height:48px;width:100%;border:1px solid #ffe15a;border-radius:10px;background:linear-gradient(#ffe66d,#ffc21e 60%,#e89b00);color:#17243a;font-family:inherit;font-size:18px;font-weight:900;cursor:pointer}
.report-recent{margin-top:12px;padding:10px;background:#102943}.report-recent-list{display:flex;flex-direction:column;gap:6px;margin-top:8px}.report-recent-item{width:100%;padding:8px;text-align:right;border:1px solid #285779;border-radius:7px;background:#0a2036;color:#eaf4ff;font-family:inherit;font-size:10px;cursor:pointer}.report-all-link{margin-top:8px;border:0;background:none;color:#ffd13d;font-family:inherit;font-size:11px;cursor:pointer}
.report-feature{display:grid;grid-template-columns:1.25fr 1fr;min-height:210px;overflow:hidden;padding:0;background:#0c2841;border-color:#18a5dc}.report-feature>img{width:100%;height:100%;min-height:205px;object-fit:cover}.report-feature>div{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:12px;background:radial-gradient(ellipse at center,#173d5d,#091b31)}.report-feature>div>span{padding:5px 20px;background:linear-gradient(90deg,#d99b00,#ffe25a);color:#18263b;font-size:13px;font-weight:900}.report-feature h2{font-size:22px;color:white;margin:10px 0 4px}.report-feature p{font-size:12px;color:#a9d1f3;margin:0}
.report-findings{padding:10px 14px}.report-findings ul{list-style:none;padding:0;margin:6px 0}.report-findings li{padding:6px 25px 6px 4px;border-bottom:1px solid #23415d;position:relative;font-size:11px;color:#edf5ff}.report-findings li:before{content:"✓";position:absolute;right:2px;color:white;background:#078a4e;border-radius:50%;width:18px;height:18px;text-align:center}
.reports-middle-lower{display:grid;grid-template-columns:1.2fr .95fr;gap:10px}.reports-middle-lower>.panel,.reports-middle-bottom>.panel{padding:10px;min-width:0}
.report-data-bars{display:flex;flex-direction:column;gap:8px;margin:12px 0}.report-bar-row{display:grid;grid-template-columns:85px 1fr 34px;gap:7px;align-items:center;font-size:10px;color:#e4efff}.report-bar-row>i{height:12px;background:#233c55;border-radius:10px;overflow:hidden}.report-bar-row em{display:block;height:100%;border-radius:10px;background:linear-gradient(90deg,#00b7e9,#1f8eff)}.report-data-note,.report-map-panel small{display:block;font-size:9px;color:#8db2d4;margin-top:7px}
.report-donut-wrap{display:flex;align-items:center;gap:10px;justify-content:space-around;min-height:145px}.report-donut{width:116px;height:116px;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;background:radial-gradient(circle,#102943 0 48%,transparent 50%),conic-gradient(#078ef1 0 25%,#00d6a2 25% 44%,#f4c400 44% 61%,#ad43e9 61% 78%,#ed4b83 78% 90%,#a8c3db 90%);}.report-donut strong{font-size:22px;color:#fff}.report-donut small{font-size:9px;color:#b8d7f3}#report-donut-legend{display:flex;flex-direction:column;gap:5px}#report-donut-legend div{display:flex;align-items:center;gap:5px;font-size:9px;color:#d9eaff}#report-donut-legend b{margin-right:auto;color:#fff}#report-donut-legend i{width:8px;height:8px;border-radius:50%;background:#078ef1}#report-donut-legend .mix-1{background:#00d6a2}#report-donut-legend .mix-2{background:#f4c400}#report-donut-legend .mix-3{background:#ad43e9}#report-donut-legend .mix-4{background:#ed4b83}#report-donut-legend .mix-5{background:#a8c3db}
.reports-middle-bottom{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px}.report-comp-row{display:flex;justify-content:space-between;padding:6px;border-bottom:1px solid #284761;color:#dcecff;font-size:10px}.report-comp-row b{color:#27d7a4}.report-map{width:100%;height:135px;object-fit:cover;border-radius:7px}#report-preview-meta{font-size:9px;color:#8fb4d8;margin:7px 0}.report-preview-body{font-size:10px;line-height:1.7;color:#d9eaff;max-height:150px;overflow:auto}
.report-type-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0 18px}.report-type-card{height:78px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;border:1px solid #28658b;border-radius:9px;background:linear-gradient(145deg,#153650,#0b2037);color:#f2f7ff;font-family:inherit;cursor:pointer;font-size:12px}.report-type-card b{font-size:23px;color:#20caff}.report-type-card.selected{border-color:#f5c239;background:linear-gradient(145deg,#53451c,#152e43);box-shadow:0 0 12px #f2b62e33}.report-type-card.selected b{color:#ffdc52}
.report-control{display:block;margin:14px 0;color:#f2f7ff;font-size:12px;font-weight:700}.report-control select{display:block;width:100%;height:39px;margin-top:7px;border:1px solid #35739a;border-radius:8px;background:#0a2037;color:#f3f8ff;padding:0 9px;font-family:inherit;font-size:11px}
.report-format-row{display:flex;gap:5px;flex-wrap:wrap;margin-top:8px}.report-format-row label{border:1px solid #2d6b8b;border-radius:8px;padding:7px 6px;font-size:10px;color:#eff7ff;display:flex;align-items:center;gap:3px}.report-format-row input{accent-color:#00d9a2}
.report-download{width:100%;height:45px;margin-top:9px;border:1px solid #ffe15b;border-radius:9px;background:linear-gradient(#ffe76e,#ffc21b 60%,#e69b00);color:#16263a;font-family:inherit;font-size:13px;font-weight:900;cursor:pointer}.report-download.secondary{height:38px;background:linear-gradient(135deg,#153b58,#0b2037);border-color:#286c94;color:#e5f4ff;font-size:11px}.report-download:disabled{opacity:.35;cursor:not-allowed}.report-builder-note{font-size:9px;color:#8bb1d3;line-height:1.8}
@media(max-width:1100px){.reports-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}.reports-layout{grid-template-columns:220px minmax(0,1fr)}.reports-right{grid-column:1/-1}}
@media(max-width:700px){.reports-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.reports-layout{grid-template-columns:1fr}.reports-middle-lower,.reports-middle-bottom{grid-template-columns:1fr}.report-feature{grid-template-columns:1fr}.report-feature>img{height:160px;min-height:160px}}


/* ==========================================================
   DEWS REPORTS — reference layout correction (v3)
   Explicitly neutralize RTL grid auto-placement so the three
   columns stay: left=quick reports, center=report content,
   right=report settings, as in the supplied reference.
   ========================================================== */
@media (min-width: 1101px) {
  #reports-view .reports-layout {
    direction: ltr !important;
    display: grid !important;
    grid-template-columns: minmax(250px, 0.92fr) minmax(520px, 2.18fr) minmax(250px, 0.92fr) !important;
    gap: 12px !important;
    align-items: stretch !important;
    width: 100% !important;
  }
  #reports-view .reports-left,
  #reports-view .reports-middle,
  #reports-view .reports-right {
    direction: rtl !important;
    grid-column: auto !important;
    grid-row: auto !important;
    min-width: 0 !important;
    width: auto !important;
  }
  #reports-view .reports-left { grid-column: 1 !important; }
  #reports-view .reports-middle { grid-column: 2 !important; }
  #reports-view .reports-right { grid-column: 3 !important; }

  /* Reference banner: image on the left, title/copy on the right. */
  #reports-view .report-feature {
    direction: ltr !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr) !important;
    min-height: 210px !important;
    width: 100% !important;
  }
  #reports-view .report-feature > img {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 210px !important;
    object-fit: cover !important;
  }
  #reports-view .report-feature > div {
    grid-column: 2 !important;
    grid-row: 1 !important;
    direction: rtl !important;
    text-align: center !important;
    min-width: 0 !important;
  }

  /* Keep the report builder controls aligned and readable. */
  #reports-view .reports-right { align-self: stretch !important; }
  #reports-view .report-type-grid { direction: rtl !important; }
  #reports-view .report-control,
  #reports-view .report-format-row { direction: rtl !important; }
}

@media (max-width: 1100px) {
  #reports-view .reports-layout {
    direction: rtl !important;
    grid-template-columns: minmax(210px, .72fr) minmax(0, 1.8fr) !important;
  }
  #reports-view .reports-left { grid-column: 1 !important; grid-row: 1 !important; }
  #reports-view .reports-middle { grid-column: 2 !important; grid-row: 1 / span 2 !important; }
  #reports-view .reports-right { grid-column: 1 / -1 !important; grid-row: 3 !important; }
}
@media (max-width: 700px) {
  #reports-view .reports-layout { display: flex !important; flex-direction: column !important; }
  #reports-view .reports-left,
  #reports-view .reports-middle,
  #reports-view .reports-right { width: 100% !important; }
  #reports-view .report-feature { display: flex !important; flex-direction: column !important; }
  #reports-view .report-feature > img { min-height: 160px !important; height: 160px !important; }
}


/* Reports page: move shared version/status strip below page content */
main > footer {
  display:flex;
  clear:both;
  margin-top:24px !important;
  padding:14px 4px !important;
  border-top:1px solid var(--line);
  background:transparent;
  position:static !important;
  order:99;
}
.reports-kpis .report-kpi small {
  font-size:12px !important;
  line-height:1.8;
  white-space:normal;
}
.reports-kpis .report-kpi strong {
  font-size:22px;
}


/* ===== Reports page: improve readability of compact labels ===== */
#reports-view .report-kpi small {font-size:13px !important; line-height:1.65}
#reports-view .report-kpi em {font-size:11px !important; line-height:1.5}
#reports-view .report-type-card {font-size:14px}
#reports-view .report-type-card b {font-size:15px !important; line-height:1.6}
#reports-view .report-type-card small {font-size:12px !important; line-height:1.65}
#reports-view #report-donut-legend div {font-size:12px !important; line-height:1.65; gap:7px}
#reports-view #report-donut-legend b {font-size:12px !important}
#reports-view .report-bar-row {font-size:12px !important; line-height:1.6; grid-template-columns:92px minmax(0,1fr) 38px; gap:8px}
#reports-view .report-bar-row em {font-size:12px !important}
#reports-view .report-recent-item {font-size:13px !important; line-height:1.7}
#reports-view .report-recent-item b {font-size:13px !important; line-height:1.6}
#reports-view .report-recent-item small {font-size:11px !important; line-height:1.6}
#reports-view .report-recent-list .empty,
#reports-view .report-recent .empty {font-size:13px !important; line-height:1.9}
#reports-view .report-data-note,
#reports-view .report-preview-meta,
#reports-view .report-preview-body {font-size:12px !important; line-height:1.9}
#reports-view .report-options label {font-size:13px !important; line-height:1.7}
#reports-view .report-options select,
#reports-view .report-options input {font-size:13px !important}
#reports-view .report-quick-list button {font-size:13px !important; line-height:1.7}
#reports-view .report-generate,
#reports-view .report-all-link {font-size:13px !important}
@media(max-width:900px){
  #reports-view .report-kpi small {font-size:12px !important}
  #reports-view .report-type-card b {font-size:14px !important}
  #reports-view #report-donut-legend div,
  #reports-view .report-bar-row {font-size:11px !important}
}


/* ===== Reports page: enlarge text inside content panels ===== */
#reports-view .panel-title h3 {font-size:17px !important; line-height:1.8}
#reports-view .report-quick-list button {font-size:14px !important; line-height:1.9; min-height:43px}
#reports-view .report-generate {font-size:15px !important; min-height:46px}
#reports-view .report-recent-list,
#reports-view .report-recent-list .empty,
#reports-view .report-all-link {font-size:14px !important; line-height:2}
#reports-view .report-feature h2 {font-size:20px !important; line-height:1.8}
#reports-view .report-feature p {font-size:14px !important; line-height:2}
#reports-view .report-feature span {font-size:13px !important}
#reports-view .report-findings li,
#reports-view .report-findings ul {font-size:14px !important; line-height:2.1}
#reports-view .report-data-bars,
#reports-view .report-data-bars > *,
#reports-view .report-donut-wrap,
#reports-view #report-donut-legend,
#reports-view #report-comparison {font-size:14px !important; line-height:2}
#reports-view .report-data-note,
#reports-view .reports-middle-bottom small,
#reports-view #report-preview-meta {font-size:13px !important; line-height:1.9}
#reports-view .report-preview-body {font-size:14px !important; line-height:2.1}
#reports-view .report-type-card {font-size:14px !important; line-height:1.8}
#reports-view .report-type-card b {font-size:22px !important}
#reports-view .reports-right label,
#reports-view .reports-right select,
#reports-view .reports-right option,
#reports-view .reports-right button {font-size:14px !important}
#reports-view .reports-right .field-label,
#reports-view .reports-right .filter-label {font-size:14px !important}
#reports-view .report-kpi small {font-size:13px !important}
@media(max-width:900px){
 #reports-view .panel-title h3 {font-size:16px !important}
 #reports-view .report-feature h2 {font-size:18px !important}
 #reports-view .report-quick-list button,
 #reports-view .report-preview-body,
 #reports-view .report-findings li {font-size:13px !important}
}


/* ===== Targeted readability fix: "مقایسه شاخص‌های داده‌ای" panel ===== */
#reports-view #report-comparison {
  display:flex;
  flex-direction:column;
  gap:2px;
}
#reports-view #report-comparison .report-comp-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-height:38px;
  padding:7px 10px;
  font-size:15px !important;
  line-height:1.9 !important;
}
#reports-view #report-comparison .report-comp-row span {
  font-size:15px !important;
  line-height:1.9 !important;
  font-weight:600;
}
#reports-view #report-comparison .report-comp-row b {
  font-size:15px !important;
  line-height:1.9 !important;
  font-weight:800;
}
#reports-view .reports-middle-bottom article:has(#report-comparison) .panel-title h3 {
  font-size:17px !important;
  line-height:1.9;
}

/* ===== DEWS Source Management page ===== */
#sources-view[hidden],#sources-view [hidden]{display:none!important}
.sources-head{margin-bottom:13px}
.sources-head h2{margin:3px 0 4px;font-size:22px}
.sources-head p{margin:0;color:var(--muted);font-size:12px}
.sources-status{display:flex;align-items:center;gap:8px;padding:9px 13px;border:1px solid #1a8269;border-radius:9px;background:#0c302f;color:#62e0ba;font-size:11px}
.sources-status i{width:8px;height:8px;border-radius:50%;background:#21d4a2;box-shadow:0 0 9px #21d4a2}
.sources-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:13px}
.sources-kpis .kpi{min-height:82px}
.sources-layout{display:grid;grid-template-columns:minmax(190px,.78fr) minmax(420px,2fr) minmax(210px,.82fr);gap:12px;align-items:start}
.sources-sidebar,.sources-right,.source-panel{padding:13px;min-width:0}
.source-side-link{width:100%;display:flex;align-items:center;gap:10px;text-align:right;padding:11px 12px;margin-top:7px;border:1px solid #294d6c;border-radius:8px;background:#102944;color:#d9e9f8;font:inherit;font-size:12px;cursor:pointer}
.source-side-link span{width:23px;color:#42c9ed;font-size:19px;text-align:center}
.source-side-link:hover,.source-side-link.active{border-color:#d9ad4b;background:linear-gradient(110deg,#3c351f,#122b43);color:#ffdb75}
.source-side-link.active span{color:#ffce4e}
.sources-sidebar-note,.source-form-notice{margin-top:14px;padding:10px;border:1px solid #31516d;border-radius:8px;background:#0b2037;color:#9bb9d4;font-size:11px;line-height:1.9}
.sources-main{min-width:0}
.source-panel{margin-bottom:12px}
.source-panel .panel-title h3,.sources-sidebar .panel-title h3,.sources-right .panel-title h3{font-size:15px}
.source-panel .panel-title p,.sources-sidebar .panel-title p,.sources-right .panel-title p{font-size:10px;color:var(--muted);margin-top:4px}
.source-primary-btn,.source-secondary-btn{border:1px solid #dcb54f;border-radius:8px;padding:9px 13px;background:linear-gradient(#ffe17a,#e9ae30);color:#1a2b40;font:inherit;font-size:12px;font-weight:800;cursor:pointer;white-space:nowrap}
.source-secondary-btn{border-color:#326b91;background:#123653;color:#e4f2ff}
.source-toolbar{display:flex;gap:8px;align-items:center;margin:10px 0;padding:9px;border:1px solid #254762;border-radius:9px;background:#0c2036}
.source-search{display:flex;align-items:center;gap:7px;flex:1;min-width:120px}
.source-search span{font-size:21px;color:#45c8ec}
.source-search input,.source-toolbar select{height:37px;min-width:0;border:1px solid #315b7b;border-radius:7px;background:#091b30;color:#e9f4ff;padding:0 9px;font:inherit;font-size:11px}
.source-search input{width:100%}
.source-toolbar select{width:145px}
.source-table-wrap{width:100%;overflow:auto;border:1px solid #274b69;border-radius:8px}
.source-table{width:100%;border-collapse:collapse;min-width:620px}
.source-table th{padding:11px 9px;background:#173753;color:#f1d27a;font-size:11px;text-align:right;white-space:nowrap}
.source-table td{padding:11px 9px;border-top:1px solid #23415d;color:#dceafa;font-size:11px;line-height:1.8}
.source-table .source-empty{text-align:center;color:#9bb6d0;padding:25px 12px}
.source-table-foot{display:flex;justify-content:space-between;gap:8px;margin-top:9px;color:#8eacc9;font-size:10px}
.source-table-foot b{color:#e8c76e}
.source-form{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}
.source-form label{display:flex;flex-direction:column;gap:6px;color:#d9eafa;font-size:12px}
.source-form input,.source-form select,.source-form textarea{width:100%;border:1px solid #315d7e;border-radius:8px;background:#0a2037;color:#f0f6ff;padding:10px;font:inherit;font-size:12px;outline:none}
.source-form input,.source-form select{height:40px}
.source-form textarea{resize:vertical;min-height:82px}
.source-form input:focus,.source-form select:focus,.source-form textarea:focus{border-color:#e4b849;box-shadow:0 0 0 2px #e4b84922}
.source-form-wide{grid-column:1/-1}
.source-form-notice{grid-column:1/-1;margin:0}
.source-form-actions{grid-column:1/-1;display:flex;gap:8px;flex-wrap:wrap}
.source-category-grid,.source-quality-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:12px}
.source-category-grid>div,.source-quality-grid>div{padding:13px;border:1px solid #2a5575;border-radius:9px;background:linear-gradient(140deg,#143550,#0c2037)}
.source-category-grid b,.source-quality-grid b{display:block;color:#f4d47e;font-size:12px;margin-bottom:5px}
.source-category-grid small,.source-quality-grid small{display:block;color:#a9c4dd;font-size:10px;line-height:1.8}
.source-flow{display:flex;flex-direction:column;gap:0;margin-top:10px}
.source-flow>div{display:flex;align-items:center;gap:10px;padding:12px 3px;border-bottom:1px solid #27435c}
.source-flow i{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#174d66;border:1px solid #36b7d4;color:#fff;font-style:normal;font-weight:800}
.source-flow b,.source-flow small{display:block}
.source-flow b{font-size:11px;color:#f2d47f}
.source-flow small{font-size:9px;color:#9db8d2;margin-top:3px;line-height:1.7}
.source-info-box{margin-top:15px;padding:12px;border:1px solid #2c5d79;border-radius:9px;background:#0b263b}
.source-info-box b{font-size:12px;color:#50d8b0}
.source-info-box p{font-size:10px;color:#a9c4dd;line-height:1.9;margin:6px 0 0}
@media(max-width:1050px){.sources-layout{grid-template-columns:190px minmax(0,1fr)}.sources-right{grid-column:1/-1}.sources-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.sources-layout{grid-template-columns:1fr}.sources-right{grid-column:auto}.sources-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.source-toolbar{flex-wrap:wrap}.source-search{flex-basis:100%}.source-toolbar select{flex:1}.source-form{grid-template-columns:1fr}.source-form-wide{grid-column:auto}.source-category-grid,.source-quality-grid{grid-template-columns:1fr}.sources-head{align-items:flex-start;flex-direction:column}}

/* ===== Narrow header and navigation correction ===== */
.hero {
  min-height: 104px;
  grid-template-columns: minmax(180px, 1fr) minmax(300px, 1.5fr) minmax(180px, 1fr);
  gap: 16px;
  padding: 10px 0;
}
.brand-image-only {
  min-width: 0;
  width: 100%;
  max-width: 330px;
  overflow: hidden;
}
.brand-image-only img {
  display: block;
  width: 100%;
  max-width: 330px;
  height: 78px;
  max-height: 78px;
  object-fit: contain;
  object-position: right center;
}
.nav {
  align-items: stretch;
  gap: 8px;
  padding: 9px 0 12px;
}
.nav a {
  min-width: 112px;
  min-height: 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 12px;
  color: #c5d5e8;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.nav a:hover {
  background: rgba(54, 91, 132, .28);
  border-color: rgba(145, 180, 220, .24);
  color: #fff;
}
.nav a.active { color: #14243a; }
.nav-icon {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 38px;
  color: var(--gold);
}
.nav-icon svg {
  display: block;
  width: 27px;
  height: 27px;
  max-width: 27px;
  max-height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav a.active .nav-icon { color: #14243a; }
.nav a > span:last-child {
  display: block;
  font-size: 12px;
  line-height: 1.5;
  white-space: nowrap;
}
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(130px, .8fr) minmax(220px, 1.2fr); }
  .hero-meta { display: none; }
  .brand-image-only { max-width: 260px; }
  .brand-image-only img { max-width: 260px; height: 66px; max-height: 66px; }
}
@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; justify-items: center; }
  .brand-image-only { justify-content: center; max-width: 280px; }
  .brand-image-only img { object-position: center; }
  .nav a { min-width: 96px; min-height: 68px; }
  .nav-icon { width: 32px; height: 32px; flex-basis: 32px; }
  .nav-icon svg { width: 24px; height: 24px; }
}

/* ===== Compact seven-item navigation: one row on desktop ===== */
.nav {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  align-items: stretch;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
}
.nav a {
  min-width: 0;
  min-height: 62px;
  padding: 5px 4px;
  gap: 4px;
  flex: initial;
}
.nav-icon {
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
}
.nav-icon svg {
  width: 21px;
  height: 21px;
  max-width: 21px;
  max-height: 21px;
}
.nav a > span:last-child {
  font-size: 11px;
  line-height: 1.35;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .nav {
    grid-template-columns: repeat(7, minmax(86px, 1fr));
    overflow-x: auto;
  }
  .nav a {
    min-height: 58px;
    padding: 4px 3px;
  }
}

/* ===== Source analytics dashboard panels ===== */
.sources-analytics {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) repeat(3, minmax(150px, .72fr));
  gap: 12px;
  margin: 14px 0 16px;
  align-items: stretch;
}
.source-analytic-card {
  min-width: 0;
  padding: 14px;
  background: linear-gradient(145deg, rgba(24,48,77,.96), rgba(12,30,52,.98));
  border: 1px solid rgba(100,151,199,.27);
  border-radius: 12px;
  box-shadow: inset 0 1px rgba(255,255,255,.025);
}
.source-analytic-card .panel-title { margin-bottom: 10px; }
.source-analytic-card .panel-title h3 { margin: 0; font-size: 14px; }
.source-analytic-card .panel-title p { margin: 4px 0 0; color: #8fb4d8; font-size: 10px; }
.source-chart-placeholder { position: relative; min-height: 190px; }
.source-chart-placeholder svg { width: 100%; height: 190px; display: block; overflow: visible; }
.source-chart-grid path { stroke: rgba(112,157,197,.18); stroke-width: 1; fill: none; }
.source-chart-area { fill: url(#sourceTrendFill); }
.source-chart-line { fill: none; stroke: #efbd50; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.source-chart-dots circle { fill: #f4c95f; stroke: #142b45; stroke-width: 2; }
.source-chart-labels { fill: #8eaccb; font-size: 10px; }
.source-chart-note { display: block; color: #7899ba; font-size: 10px; line-height: 1.7; text-align: center; margin-top: 2px; }
.source-composition-body { display: flex; align-items: center; justify-content: space-around; gap: 12px; min-height: 190px; }
.source-donut-placeholder {
  width: 142px; height: 142px; flex: 0 0 142px; border-radius: 50%;
  display: grid; place-items: center;
  background: conic-gradient(#168ee8 0 17%, #14c995 17% 34%, #e8b83e 34% 51%, #a65be8 51% 68%, #ed6da9 68% 84%, #9fb6cf 84% 100%);
  position: relative;
}
.source-donut-placeholder:before {
  content: ""; position: absolute; inset: 28px; border-radius: 50%;
  background: #102641; border: 1px solid rgba(123,169,210,.22);
}
.source-donut-placeholder > div { z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.source-donut-placeholder strong { font-size: 27px; color: #fff; }
.source-donut-placeholder small { color: #9bb8d4; font-size: 10px; }
.source-legend { display: grid; gap: 8px; min-width: 0; }
.source-legend span { display: flex; align-items: center; gap: 7px; color: #d4e2f1; font-size: 11px; white-space: nowrap; }
.source-legend i { display: inline-block; width: 9px; height: 9px; flex: 0 0 9px; border-radius: 50%; }
.legend-blue { background:#168ee8; } .legend-green { background:#14c995; }
.legend-gold { background:#e8b83e; } .legend-purple { background:#a65be8; }
.legend-pink { background:#ed6da9; } .legend-gray { background:#9fb6cf; }
.source-mini-metric { display: flex; flex-direction: column; justify-content: space-between; min-height: 250px; }
.source-mini-metric > div:nth-child(2) { display: flex; flex-direction: column; gap: 8px; }
.source-mini-metric small { color: #c5d8ea; font-size: 12px; line-height: 1.7; }
.source-mini-metric strong { color: #fff; font-size: 30px; line-height: 1.2; }
.source-mini-metric em { color: #83a8cb; font-size: 10px; font-style: normal; line-height: 1.7; }
.source-mini-metric .tag { align-self: flex-start; }
.source-metric-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; font-size: 22px; background: rgba(255,255,255,.06); }
.source-metric-icon.blue { color:#40b8ff; border:1px solid rgba(64,184,255,.35); }
.source-metric-icon.green { color:#21d6a1; border:1px solid rgba(33,214,161,.35); }
.source-metric-icon.gold { color:#efc35a; border:1px solid rgba(239,195,90,.35); }
.source-overall-status strong { font-size: 17px; color: #efc35a; }
@media (max-width: 1250px) {
  .sources-analytics { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .source-trend-card { grid-column: span 3; }
  .source-composition-card { grid-column: span 3; }
  .source-mini-metric { grid-column: span 2; min-height: 170px; }
}
@media (max-width: 760px) {
  .sources-analytics { grid-template-columns: 1fr; }
  .source-trend-card, .source-composition-card, .source-mini-metric { grid-column: auto; }
  .source-mini-metric { min-height: 145px; }
  .source-composition-body { justify-content: flex-start; }
}
/* اسکرول افقی جدول منابع */
.source-table-wrap {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.source-table {
    min-width: 1050px;
    width: 100%;
    white-space: nowrap;
}

.source-table th,
.source-table td {
    padding: 12px 14px;
}

/* DEWS: consistent heading for each independent main page */
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 2px 0 16px;
  padding: 13px 17px;
  border: 1px solid rgba(145,180,220,.18);
  border-right: 3px solid #e8b84e;
  border-radius: 11px;
  background: linear-gradient(105deg, rgba(20,43,73,.94), rgba(9,27,49,.78));
}
.page-heading-kicker {
  display: block;
  margin-bottom: 2px;
  color: #e8b84e;
  font: 9px/1.6 Arial, sans-serif;
  letter-spacing: 1.2px;
  direction: ltr;
  text-align: right;
}
.page-heading h2 { margin: 0; color: #f2f6fc; font-size: 19px; line-height: 1.7; }
.page-heading p { margin: 1px 0 0; color: #91a8c5; font-size: 10px; }
.nav a { cursor: pointer; transition: background .18s ease, color .18s ease, transform .18s ease; }
.nav a:focus-visible { outline: 2px solid #e8b84e; outline-offset: 2px; }
@media (max-width:720px) {
  .page-heading { margin-bottom: 11px; padding: 10px 12px; }
  .page-heading h2 { font-size: 16px; }
  .page-heading p { font-size: 9px; }
}


/* Source table edit action */
.source-edit-btn {
  border: 1px solid #326b91;
  border-radius: 7px;
  padding: 7px 11px;
  background: #123653;
  color: #e4f2ff;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
  white-space: nowrap;
}
.source-edit-btn:hover {
  border-color: #e4b849;
  color: #ffdb75;
}

/* DEWS: fixed column widths for sources table */
.source-table {
    table-layout: fixed;
    min-width: 1080px;
    width: 100%;
}

.source-table th,
.source-table td {
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}

.source-table th:nth-child(1),
.source-table td:nth-child(1) { width: 60px; }

.source-table th:nth-child(2),
.source-table td:nth-child(2) { width: 150px; }

.source-table th:nth-child(3),
.source-table td:nth-child(3) { width: 100px; }

.source-table th:nth-child(4),
.source-table td:nth-child(4) { width: 90px; }

.source-table th:nth-child(5),
.source-table td:nth-child(5) {
    width: 260px;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.8;
}

.source-table th:nth-child(6),
.source-table td:nth-child(6) { width: 150px; }

.source-table th:nth-child(7),
.source-table td:nth-child(7) { width: 80px; }

.source-table th:nth-child(8),
.source-table td:nth-child(8) { width: 120px; }

.source-table th:nth-child(9),
.source-table td:nth-child(9) { width: 85px; }


/* Source URLs: improve contrast on dark theme */
.source-table td a {
    color: #55d9f2 !important;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: #55d9f288;
    text-underline-offset: 3px;
}

.source-table td a:visited {
    color: #8bdcff !important;
}

.source-table td a:hover {
    color: #ffd66b !important;
    text-decoration-color: #ffd66b;
}


/* DEWS source activation status control */
.source-status-btn {
    min-width: 76px;
    padding: 6px 10px;
    border: 1px solid;
    border-radius: 7px;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}
.source-status-btn.is-active {
    color: #72f0bd;
    background: #103d32;
    border-color: #258d69;
}
.source-status-btn.is-inactive {
    color: #ff9ca5;
    background: #48232d;
    border-color: #a84d5c;
}
.source-status-btn:disabled {
    opacity: .55;
    cursor: wait;
}


/* DEWS compact source table and icon status */
.source-table {
    table-layout: fixed;
    width: 100%;
    min-width: 820px;
}
.source-table th,
.source-table td {
    padding: 7px 6px;
    font-size: 10px;
    vertical-align: middle;
}
.source-table th:nth-child(1),
.source-table td:nth-child(1) { width: 120px; }

.source-table th:nth-child(2),
.source-table td:nth-child(2) { width: 70px; }

.source-table th:nth-child(3),
.source-table td:nth-child(3) { width: 60px; }

.source-table th:nth-child(4),
.source-table td:nth-child(4) {
    width: 150px;
    white-space: normal;
    overflow-wrap: anywhere;
}

.source-table th:nth-child(5),
.source-table td:nth-child(5) { width: 150px; }

.source-table th:nth-child(6),
.source-table td:nth-child(6) {
    width: 42px;
    text-align: center;
}

.source-table th:nth-child(7),
.source-table td:nth-child(7) { width: 95px; }

.source-table th:nth-child(8),
.source-table td:nth-child(8) {
    width: 55px;
    text-align: center;
}

.source-table th:nth-child(9),
.source-table td:nth-child(9) {
    width: 65px;
    text-align: center;
}

.source-status-btn {
    display: inline-grid;
    place-items: center;
    width: 27px;
    height: 27px;
    min-width: 27px;
    padding: 0;
    border: 1px solid;
    border-radius: 6px;
    font-family: Arial, sans-serif;
    font-size: 17px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
}
.source-status-btn.is-active {
    color: #38e69a;
    background: #103d32;
    border-color: #258d69;
}
.source-status-btn.is-inactive {
    color: #ff6575;
    background: #48232d;
    border-color: #a84d5c;
}
.source-status-btn:disabled {
    opacity: .55;
    cursor: wait;
}


/* Sources page: workflow below sidebar navigation */
.sources-layout {
    grid-template-columns: minmax(220px, 0.30fr) minmax(0, 1fr) !important;
}
.sources-sidebar .sources-right {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 12px;
}
@media (max-width: 680px) {
    .sources-layout {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}

/* Fix source table status and event count column widths */
.source-table {
    min-width: 900px !important;
}

.source-table th:nth-child(6),
.source-table td:nth-child(6) {
    width: 65px !important;
    min-width: 65px;
    text-align: center;
}

.source-table th:nth-child(8),
.source-table td:nth-child(8) {
    width: 85px !important;
    min-width: 85px;
    text-align: center;
}

.source-table th:nth-child(9),
.source-table td:nth-child(9) {
    width: 75px !important;
    min-width: 75px;
    text-align: center;
}

.source-table th:nth-child(6),
.source-table th:nth-child(8) {
    white-space: nowrap;
    text-overflow: clip;
}

/* Show full last activity text on multiple lines */
.source-table th:nth-child(7),
.source-table td:nth-child(7) {
    width: 150px !important;
    min-width: 150px;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    overflow-wrap: anywhere;
    word-break: normal;
    line-height: 1.8;
    text-align: center;
}


/* Official economic data adds the ninth main navigation destination. */
.nav { grid-template-columns: repeat(9, minmax(0, 1fr)); }
@media (max-width: 720px) { .nav { grid-template-columns: repeat(9, minmax(86px, 1fr)); } }


/* DEWS navigation: six items per row; remaining items wrap to the next row. */
.nav {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  grid-auto-flow: row;
  gap: 8px !important;
  align-items: stretch;
  overflow: visible !important;
  padding: 10px 0 12px !important;
}
.nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0 !important;
  width: auto;
  flex: initial !important;
  min-height: 48px;
  padding: 8px 7px !important;
  border: 1px solid rgba(111, 151, 194, .25) !important;
  border-radius: 9px;
  background: linear-gradient(180deg, #142a46 0%, #0d1e35 100%);
  color: #d5e2f1;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.nav a:hover {
  border-color: rgba(232, 184, 78, .65) !important;
  background: linear-gradient(180deg, #1a3556 0%, #102540 100%);
}
.nav a.active {
  border-color: #f0c86c !important;
  background: linear-gradient(115deg, #e5ad3f 0%, #f5d783 100%);
  color: #15243a;
  font-weight: 700;
}
@media (max-width: 720px) {
  .nav { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; gap: 5px !important; }
  .nav a { min-height: 42px; padding: 5px 3px !important; font-size: 10px; }
  .nav .nav-icon { display: none; }
}
