/* =========================================================
   EDR TRACKER — polished mockup-aligned overrides
   Load AFTER dashboard.css
   ========================================================= */

:root {
    --tracker-ink: #0d1b3e;
    --tracker-copy: #52627f;
    --tracker-border: #dde6f2;
    --tracker-bg: #f4f8fd;
}

.edr-clean-body {
    background: var(--tracker-bg);
    font-family: "Inter", sans-serif;
    color: var(--tracker-ink);
}

.tracker-dashboard-page {
    padding: 20px 18px 0;
    background:
        radial-gradient(circle at 10% 0%, rgba(45,126,247,.05), transparent 30%),
        linear-gradient(180deg, #f8fbff 0%, #f3f7fc 100%);
}

.tracker-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 16px;
}

.tracker-header-copy h1 {
    margin: 0 0 5px;
    font-size: 29px;
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -.7px;
    color: #0d1b3e;
}

.tracker-header-copy p {
    margin: 0;
    font-size: 12px;
    color: #506381;
}

.tracker-header-actions {
    display: flex;
    align-items: flex-end;
    gap: 18px;
}

.tracker-filter label,
.tracker-updated span {
    display: block;
    margin-bottom: 5px;
    font-size: 9px;
    color: #425576;
}

.tracker-filter button {
    min-width: 175px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    border: 1px solid #dbe5f0;
    border-radius: 8px;
    background: #fff;
    font-size: 11px;
    color: #122249;
}

.tracker-updated strong {
    display: block;
    font-size: 10px;
    font-weight: 500;
    color: #304568;
}

.tracker-refresh {
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    color: #0c2553;
    display: grid;
    place-items: center;
}

.tracker-kpi-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0,1fr));
    gap: 8px;
    margin-bottom: 10px;
}

.tracker-kpi {
    min-height: 174px;
    padding: 18px 16px 15px;
    border-radius: 12px;
    color: #fff;
    box-shadow: 0 9px 24px rgba(31,80,153,.08);
}

.tracker-kpi-blue { background: linear-gradient(135deg,#2786f8,#319bf7); }
.tracker-kpi-green { background: linear-gradient(135deg,#21c77e,#42d9a5); }
.tracker-kpi-red { background: linear-gradient(135deg,#ff4e65,#ff6980); }
.tracker-kpi-purple { background: linear-gradient(135deg,#7443f5,#9a59ff); }
.tracker-kpi-orange { background: linear-gradient(135deg,#ffab24,#ffbd47); }

.tracker-kpi-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    margin-bottom: 7px;
    border-radius: 9px;
    background: rgba(255,255,255,.2);
}

.tracker-kpi > strong {
    display: block;
    font-size: 31px;
    line-height: 1;
    font-weight: 900;
}

.tracker-kpi > span {
    display: block;
    max-width: 145px;
    margin-top: 5px;
    font-size: 12px;
    line-height: 1.15;
    font-weight: 800;
}

.tracker-kpi > small {
    display: block;
    max-width: 145px;
    margin-top: 6px;
    font-size: 9px;
    line-height: 1.25;
    opacity: .92;
}

.tracker-card {
    background: #fff;
    border: 1px solid #dde6f2;
    border-radius: 12px;
    box-shadow: 0 7px 20px rgba(30,67,120,.045);
}

.tracker-card-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 13px 14px 8px;
}

.tracker-card-head h3 {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.25;
    font-weight: 900;
    color: #0d1b3e;
}

.tracker-card-head p {
    margin: 2px 0 0;
    font-size: 9px;
    color: #60728e;
}

.tracker-card-head a {
    font-size: 9px;
    font-weight: 800;
    color: #1765eb;
    text-decoration: none;
}

.tracker-soft-filter,
.tracker-badge {
    height: 30px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 11px;
    border: 1px solid #dce5f0;
    border-radius: 8px;
    background: #fff;
    color: #263a5c;
    font-size: 9px;
}

.tracker-primary-grid {
    display: grid;
    grid-template-columns: 1.38fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
    align-items: start;
}

.tracker-election-card {
    align-self: start;
    height: auto;
}

.tracker-map-card #dashboardDisputeMap {
    height: 300px;
    margin: 0 12px;
    border-radius: 10px;
    overflow: hidden;
    background: #eaf1f8;
}

.tracker-map-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px 12px;
}

.tracker-map-scale {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 9px;
    color: #60708a;
}

.tracker-map-scale div {
    width: 86px;
    height: 6px;
    border-radius: 10px;
    background: linear-gradient(90deg,#5bda8a,#f6e94b,#ff543c);
}

.tracker-map-button {
    height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    border: 1px solid #dbe5ef;
    border-radius: 9px;
    color: #0d1d42;
    font-size: 10px;
    font-weight: 800;
    text-decoration: none;
}

.tracker-election-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 8px;
    padding: 0 11px 7px;
}

.tracker-election-tile {
    min-height: 128px;
    padding: 11px 10px 8px;
    border-radius: 10px;
}

.tracker-election-tile.green { background:#e8faf2; color:#087c54; }
.tracker-election-tile.blue { background:#e7efff; color:#1758ce; }
.tracker-election-tile.purple { background:#f0e9ff; color:#7443e8; }
.tracker-election-tile.orange { background:#fff1dc; color:#f39a13; }
.tracker-election-tile.red { background:#ffe5eb; color:#ec3754; }
.tracker-election-tile.neutral { background:#edf1f6; color:#69788b; }

.tracker-election-icon {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    margin-bottom: 5px;
    border-radius: 8px;
    background: rgba(255,255,255,.7);
}

.tracker-election-tile > strong {
    display: block;
    font-size: 23px;
    line-height: 1;
    font-weight: 900;
    color:#0b214d;
}

.tracker-election-tile > span {
    display:block;
    margin-top:4px;
    font-size:9px;
    font-weight:800;
}

.tracker-election-tile > small {
    display:block;
    margin-top:3px;
    font-size:8px;
    color:#3e5579;
}

.tracker-election-progress {
    height:5px;
    margin-top:7px;
    border-radius:10px;
    background:rgba(255,255,255,.9);
}

.tracker-card-caption {
    margin:0 11px 10px;
    padding:6px 8px;
    border-radius:6px;
    background:#eef5fd;
    color:#667896;
    font-size:8px;
    font-style:italic;
}

.tracker-three-grid {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:10px;
    margin-bottom:10px;
}

.tracker-analysis-card {
    min-height:285px;
    overflow:hidden;
}

.tracker-chart-wrap {
    height:195px;
    padding:0 10px 8px;
}

.tracker-empty {
    min-height:185px;
    display:grid;
    place-items:center;
    margin:8px 12px 12px;
    padding:24px;
    border:1px dashed #dce7f2;
    border-radius:10px;
    background:#f9fbfd;
    text-align:center;
    color:#72819a;
    font-size:11px;
    font-weight:700;
}

.tracker-empty-large { min-height:215px; }

.tracker-party-bars { padding:8px 14px 5px; }

.tracker-party-row {
    display:grid;
    grid-template-columns:82px minmax(0,1fr) 25px;
    gap:8px;
    align-items:center;
    margin-bottom:14px;
}

.tracker-party-name {
    display:flex;
    align-items:center;
    gap:7px;
    min-width:0;
}

.tracker-party-name span {
    width:13px;
    height:13px;
    flex:0 0 13px;
    border-radius:50%;
    background:#1e78f5;
}

.tracker-party-name strong {
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:10px;
}

.tracker-party-track,
.tracker-relief-track {
    height:10px;
    border-radius:3px;
    background:#edf2f8;
    overflow:hidden;
}

.tracker-party-track i {
    display:block;
    height:100%;
    background:linear-gradient(90deg,#3091ff,#3067ed);
}

.tracker-party-row > b {
    font-size:10px;
    text-align:right;
}

.tracker-relief-list { padding:8px 14px 2px; }

.tracker-relief-row {
    display:grid;
    grid-template-columns:88px minmax(0,1fr) 24px;
    gap:8px;
    align-items:center;
    margin-bottom:10px;
}

.tracker-relief-row > span {
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:9px;
    color:#31476a;
}

.tracker-relief-row > strong {
    font-size:10px;
    text-align:right;
}

.tracker-relief-track i {
    display:block;
    height:100%;
}

.relief-colour-0 { background:#ff3d59; }
.relief-colour-1 { background:#347ff5; }
.relief-colour-2 { background:#43cf88; }
.relief-colour-3 { background:#ffab19; }
.relief-colour-4 { background:#8252f4; }
.relief-colour-5 { background:#aeb8c5; }
.relief-colour-6 { background:#23b7aa; }

.tracker-column-chart {
    height:205px;
    margin:2px 13px 8px;
    padding:12px 6px 0;
    display:flex;
    align-items:stretch;
    gap:6px;
    border-left:1px solid #dde6f0;
    border-bottom:1px solid #dde6f0;
    background-image:linear-gradient(to top,rgba(216,225,237,.65) 1px,transparent 1px);
    background-size:100% 25%;
}

.tracker-column-item {
    flex:1;
    min-width:0;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:flex-end;
}

.tracker-column-item > strong {
    margin-bottom:3px;
    font-size:10px;
}

.tracker-column-space {
    width:min(42px,80%);
    height:145px;
    display:flex;
    align-items:flex-end;
}

.tracker-column-space i {
    width:100%;
    min-height:4px;
    border-radius:4px 4px 0 0;
}

.party-column-0 { background:#378ef8; }
.party-column-1 { background:#ffad1f; }
.party-column-2 { background:#ff425a; }
.party-column-3 { background:#31c98a; }
.party-column-4 { background:#9ba8b7; }

.tracker-column-item > span {
    min-height:27px;
    margin-top:5px;
    text-align:center;
    font-size:8px;
    line-height:1.15;
    color:#44597a;
}

.tracker-status-layout {
    display:grid;
    grid-template-columns:155px 1fr;
    align-items:center;
    gap:12px;
    padding:6px 18px 5px;
}

.tracker-status-donut,
.tracker-gender-donut {
    position:relative;
    border-radius:50%;
}

.tracker-status-donut {
    width:142px;
    height:142px;
    background:conic-gradient(#08a475 0 var(--active-cut),#ff485c var(--active-cut) 100%);
}

.tracker-status-donut::after,
.tracker-gender-donut::after {
    content:"";
    position:absolute;
    border-radius:50%;
    background:#fff;
}

.tracker-status-donut::after { inset:34px; }

.tracker-status-center,
.tracker-gender-center {
    position:absolute;
    inset:0;
    z-index:2;
    display:grid;
    place-content:center;
    text-align:center;
}

.tracker-status-center strong,
.tracker-gender-center strong {
    font-size:27px;
    line-height:1;
    font-weight:900;
}

.tracker-status-center span,
.tracker-gender-center span {
    margin-top:2px;
    font-size:10px;
}

.tracker-status-legend,
.tracker-gender-legend {
    display:flex;
    flex-direction:column;
    gap:18px;
}

.tracker-status-legend > div,
.tracker-gender-legend > div {
    display:flex;
    align-items:flex-start;
    gap:9px;
}

.legend-dot,
.gender-dot {
    width:14px;
    height:14px;
    flex:0 0 14px;
    margin-top:2px;
    border-radius:50%;
}

.legend-dot.active { background:#08a475; }
.legend-dot.concluded { background:#ff485c; }

.tracker-status-legend p,
.tracker-gender-legend p {
    margin:0;
    display:flex;
    flex-direction:column;
}

.tracker-status-legend strong,
.tracker-gender-legend strong {
    font-size:10px;
    font-weight:600;
}

.tracker-status-legend small,
.tracker-gender-legend small {
    font-size:10px;
    color:#28426e;
}

.tracker-bottom-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.45fr 1.15fr;
    gap: 10px;
    margin-bottom: 12px;
    align-items: stretch;
}

.tracker-gender-card,
.tracker-matchup-card,
.tracker-insights-card {
    min-height: 292px;
}

.tracker-gender-layout {
    display:grid;
    grid-template-columns:165px 1fr;
    align-items:center;
    gap:10px;
    padding:2px 14px 6px;
}

.tracker-gender-donut {
    width:145px;
    height:145px;
    margin:0 auto;
    background:conic-gradient(
        #ff5bae 0 var(--female-cut),
        #6e2ee8 var(--female-cut) var(--male-cut),
        #aeb8c5 var(--male-cut) 100%
    );
}

.tracker-gender-donut::after { inset:31px; }

.gender-dot.female { background:#ff5bae; }
.gender-dot.male { background:#6e2ee8; }
.gender-dot.other { background:#aeb8c5; }

/* =========================================================
   POLITICAL MATCHUPS
   ========================================================= */

.tracker-matchup-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.tracker-matchup-head {
    padding-bottom: 8px;
}

.tracker-matchup-head > div {
    min-width: 0;
}

.tracker-matchup-head h3 {
    margin: 0;
}

.tracker-matchup-head p {
    margin: 4px 0 0;
    font-size: 9px;
    line-height: 1.35;
    color: #6b7b95;
}

.tracker-matchup-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 5px 16px 10px;
}

.tracker-matchup-row {
    display: grid;
    grid-template-columns: 118px minmax(70px, 1fr) 26px;
    align-items: center;
    gap: 9px;
}

.tracker-matchup-label {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    white-space: nowrap;
    font-size: 9px;
    color: #263b61;
}

.tracker-matchup-label strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 800;
}

.tracker-matchup-label span {
    flex: 0 0 auto;
    color: #8a9ab1;
    font-weight: 800;
}

.tracker-matchup-bar-track {
    position: relative;
    height: 13px;
    overflow: hidden;
    border-radius: 4px;
    background: #edf2f8;
}

.tracker-matchup-bar {
    height: 100%;
    min-width: 3px;
    border-radius: 4px;
    transition: width .35s ease, filter .2s ease;
}

/* Political matchup bar colours */
.tracker-matchup-bar-1 {
    background: linear-gradient(90deg, #16a36a 0%, #4dcc91 100%);
}

.tracker-matchup-bar-2 {
    background: linear-gradient(90deg, #1769e8 0%, #4b91f7 100%);
}

.tracker-matchup-bar-3 {
    background: linear-gradient(90deg, #f08a24 0%, #f7ad4f 100%);
}

.tracker-matchup-bar-4 {
    background: linear-gradient(90deg, #ef4050 0%, #f36f7c 100%);
}

.tracker-matchup-bar-5 {
    background: linear-gradient(90deg, #7135e8 0%, #9a70f3 100%);
}

.tracker-matchup-bar-6 {
    background: linear-gradient(90deg, #e7aa18 0%, #f4ca54 100%);
}

.tracker-matchup-count {
    text-align: right;
    font-size: 10px;
    line-height: 1;
    font-weight: 900;
    color: #13284e;
}

.tracker-matchup-insight {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: auto 14px 13px;
    padding: 9px 10px;
    border: 1px solid #d8e7fb;
    border-radius: 8px;
    background: #f5f9ff;
}

.tracker-matchup-insight svg {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    margin-top: 1px;
    color: #1769e8;
}

.tracker-matchup-insight p {
    margin: 0;
    font-size: 8.5px;
    line-height: 1.4;
    color: #4a5e7d;
}

.tracker-matchup-insight strong {
    color: #173c78;
    font-weight: 850;
}

.tracker-insights-card { position:relative; }

.tracker-insights-head {
    display:flex;
    align-items:center;
    gap:12px;
    padding:18px 18px 10px;
}

.tracker-insights-head > div {
    width:42px;
    height:42px;
    display:grid;
    place-items:center;
    border-radius:50%;
    background:#fff0bd;
    color:#f49b00;
}

.tracker-insights-head h3 {
    margin:0;
    font-size:17px;
    font-weight:900;
}

.tracker-insights-list {
    padding:7px 18px 58px;
    display:flex;
    flex-direction:column;
    gap:14px;
}

.tracker-insights-list > div {
    display:flex;
    gap:11px;
}

.insight-dot.purple { background:#6c2ee7; }

.tracker-insights-list p {
    margin:0;
    font-size:10px;
    line-height:1.45;
    color:#435575;
}

.tracker-methodology {
    position:absolute;
    right:15px;
    bottom:13px;
    height:35px;
    display:inline-flex;
    align-items:center;
    gap:13px;
    padding:0 13px;
    border:1px solid #cfe0f4;
    border-radius:8px;
    background:#f8fbff;
    color:#1764e8;
    font-size:9px;
    font-weight:800;
    text-decoration:none;
}

.tracker-footer {
    margin:0 -18px;
    padding:15px 22px;
    display:grid;
    grid-template-columns:1.2fr 1fr .75fr;
    align-items:center;
    gap:20px;
    border-top:1px solid #dde6f0;
    background:#fff;
}

.tracker-footer-brand {
    display:flex;
    align-items:center;
    gap:13px;
}

.tracker-footer-brand > strong {
    font-size:31px;
    line-height:1;
    font-weight:900;
    color:#0b1d49;
}

.tracker-footer-brand div {
    display:flex;
    flex-direction:column;
}

.tracker-footer-brand b { font-size:9px; }
.tracker-footer-brand span { font-size:8px; color:#61728e; }

.tracker-footer nav {
    display:flex;
    justify-content:center;
    align-items:center;
    gap:12px;
}

.tracker-footer nav a {
    font-size:8px;
    color:#435677;
    text-decoration:none;
}

.tracker-footer nav span {
    width:1px;
    height:12px;
    background:#aab8ca;
}

.tracker-footer-motto {
    text-align:right;
    font-size:8px;
    font-weight:800;
    line-height:1.4;
}

@media (max-width:1280px) {
    .tracker-kpi-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
    .tracker-primary-grid,
    .tracker-bottom-grid { grid-template-columns:1fr; }
    .tracker-three-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-width:900px) {
    .tracker-dashboard-page { padding:14px 12px 0; }
    .tracker-header { align-items:flex-start; flex-direction:column; }
    .tracker-header-actions { width:100%; flex-wrap:wrap; }
    .tracker-kpi-grid,
    .tracker-three-grid { grid-template-columns:1fr; }
    .tracker-election-grid { grid-template-columns:repeat(2,1fr); }
    .tracker-footer { margin:0 -12px; grid-template-columns:1fr; text-align:center; }
    .tracker-footer-brand,
    .tracker-footer nav { justify-content:center; }
    .tracker-footer-motto { text-align:center; }
}


/* =========================================================
   ANALYTICS ROW 1 — MATCH LOWER DASHBOARD STYLE
   ========================================================= */

.tracker-three-grid:first-of-type .tracker-analysis-card {
    min-height: 300px;
    height: 300px;
    display: flex;
    flex-direction: column;
}

.tracker-three-grid:first-of-type .tracker-card-head {
    min-height: 50px;
    padding: 14px 16px 7px;
    align-items: flex-start;
}

.tracker-three-grid:first-of-type .tracker-card-head h3 {
    font-size: 13px;
    line-height: 1.2;
    font-weight: 850;
    letter-spacing: -0.25px;
    color: #0d1b3e;
}

.tracker-three-grid:first-of-type .tracker-card-head a {
    margin-top: 2px;
    font-size: 9px;
    font-weight: 800;
}

.tracker-three-grid:first-of-type .tracker-badge {
    height: 29px;
    padding: 0 11px;
    border-radius: 8px;
    font-size: 9px;
}


/* -------------------------
   TOP JURISDICTIONS
   ------------------------- */

.tracker-three-grid:first-of-type .dashboard-top-jurisdictions-card {
    flex: 1;
    min-height: 0;
    padding: 0 12px 10px;
}

/* Hide the duplicated title/filter coming from the old component */
.tracker-three-grid:first-of-type .dashboard-top-jurisdictions-card > .card-header,
.tracker-three-grid:first-of-type .dashboard-top-jurisdictions-card > header,
.tracker-three-grid:first-of-type .dashboard-top-jurisdictions-card .jurisdiction-header,
.tracker-three-grid:first-of-type .dashboard-top-jurisdictions-card .dashboard-widget-header {
    display: none !important;
}

/* Remove old component card treatment so it feels like part of outer card */
.tracker-three-grid:first-of-type .dashboard-top-jurisdictions-card,
.tracker-three-grid:first-of-type .dashboard-top-jurisdictions-card .card {
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* Chart sizing */
.tracker-three-grid:first-of-type .dashboard-top-jurisdictions-card canvas {
    max-height: 205px !important;
}


/* -------------------------
   CASE VOLUME TREND
   ------------------------- */

.tracker-three-grid:first-of-type .tracker-chart-wrap {
    height: 215px;
    flex: 1;
    padding: 2px 14px 10px;
}

.tracker-three-grid:first-of-type #caseVolumeTrendChart {
    max-height: 210px !important;
}


/* -------------------------
   PETITIONS BY PARTY
   ------------------------- */

.tracker-three-grid:first-of-type .tracker-party-bars {
    padding: 17px 16px 5px;
}

.tracker-three-grid:first-of-type .tracker-party-row {
    grid-template-columns: 88px minmax(0, 1fr) 28px;
    gap: 10px;
    margin-bottom: 17px;
}

.tracker-three-grid:first-of-type .tracker-party-name span {
    width: 13px;
    height: 13px;
    flex-basis: 13px;
}

.tracker-three-grid:first-of-type .tracker-party-name strong {
    font-size: 10.5px;
    font-weight: 800;
    color: #11234b;
}

.tracker-three-grid:first-of-type .tracker-party-track {
    height: 11px;
    border-radius: 3px;
    background: #edf2f8;
}

.tracker-three-grid:first-of-type .tracker-party-track i {
    border-radius: 3px;
    background: linear-gradient(
        90deg,
        #3695fa 0%,
        #3468ea 100%
    );
}

.tracker-three-grid:first-of-type .tracker-party-row > b {
    font-size: 10.5px;
    font-weight: 800;
    color: #10214a;
}


/* -------------------------
   COMMON CHART FINESSE
   ------------------------- */

.tracker-three-grid:first-of-type canvas {
    width: 100% !important;
}

.tracker-three-grid:first-of-type .tracker-analysis-card {
    overflow: hidden;
}

/* softer card feel matching lower section */
.tracker-three-grid:first-of-type .tracker-analysis-card {
    border: 1px solid #dce6f2;
    border-radius: 13px;
    box-shadow:
        0 8px 24px rgba(34, 70, 118, 0.035),
        0 1px 2px rgba(34, 70, 118, 0.025);
}


/* The row itself should feel compact, like the bottom */
.tracker-three-grid:first-of-type {
    gap: 10px;
    align-items: stretch;
}

/* =========================================================
   TOP JURISDICTIONS — CLEAN DASHBOARD VERSION
   ========================================================= */

.tracker-jurisdiction-chart {
    height: 215px;
    padding: 2px 14px 10px;
}

.tracker-jurisdiction-chart canvas {
    width: 100% !important;
    height: 100% !important;
    max-height: 205px !important;
}

.tracker-login-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 18px;
    margin-left: 4px;

    border-radius: 10px;
    background: #1f5eff;
    border: 1px solid #1f5eff;

    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;

    white-space: nowrap;
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        background 0.15s ease;
}

.tracker-login-button:hover {
    background: #174ed8;
    border-color: #174ed8;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(31, 94, 255, 0.22);
}

.tracker-login-button svg {
    flex-shrink: 0;
}

.tracker-dashboard-toolbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin: 0 0 18px;
}

.tracker-dashboard-toolbar .tracker-filter {
    min-width: 220px;
}

/* Final dashboard/navbar header layout */
.tracker-shell .edr-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;

    padding: 20px 0 18px;
    margin: 0 0 14px;

    background: transparent;
    border: 0;
    box-shadow: none;
}

.tracker-shell .edr-topbar-left {
    flex: 1;
    min-width: 0;
    padding-top: 3px;
}

.tracker-shell .edr-topbar-left h1 {
    margin: 0 0 7px;
    font-size: 32px;
    line-height: 1.08;
    letter-spacing: -0.8px;
}

.tracker-shell .edr-topbar-left p {
    margin: 0;
    max-width: 720px;
    font-size: 14px;
    line-height: 1.5;
}

.tracker-shell .edr-topbar-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 11px;

    flex-shrink: 0;
}

.tracker-shell .edr-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    height: 42px;
    padding: 0 18px;

    border: 1px solid #d9e3f2;
    border-radius: 12px;
    background: #fff;

    color: #0b1b3d;
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;

    box-shadow: 0 5px 18px rgba(18, 38, 63, 0.06);
}

.tracker-shell .edr-status-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;

    margin: 0;
    padding: 0;

    border: 0;
    background: transparent;

    color: #66758f;
    font-size: 11px;
    white-space: nowrap;
}

.tracker-shell .edr-status-row span:first-child {
    display: flex;
    align-items: center;
    gap: 5px;
}

.tracker-shell .edr-status-row span:first-child b {
    width: 7px;
    height: 7px;
    display: inline-block;
    border-radius: 50%;
    background: #16a765;
}

.tracker-shell .edr-status-row strong {
    color: #0e9f61;
    font-weight: 750;
}

.tracker-shell .edr-status-divider {
    width: 1px;
    height: 15px;
    background: #d8e1ee;
}

.tracker-shell .edr-status-refresh {
    width: 15px;
    height: 15px;
    margin-left: 2px;
    color: #687891;
}

.tracker-shell .edr-profile-btn {
    min-height: 48px;
}
