/* All rules scoped under #omaha-econ-widget so the widget never leaks
   styles into a host page when pasted inline. */
#omaha-econ-widget *{box-sizing:border-box;margin:0;padding:0}

#omaha-econ-widget{
  --green-dark:#1a3c2b;
  --green-mid:#2d5a3d;
  --green-light:#4a7c5f;
  --bg:#f5f5f5;
  --ink:#1a1a1a;
  --white:#ffffff;
  --muted:#6b7280;
  --pos:#1f8f4e;     /* green = favorable */
  --neg:#c0392b;     /* red   = unfavorable */
  --border:#e2e4e1;

  font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;
  background:var(--bg);
  color:var(--ink);
  width:100%;
}

/* faux viewport so the modal can use absolute (not fixed) positioning
   and still render correctly inside an <iframe> embed. */
#omaha-econ-widget .oei-faux-viewport{
  position:relative;
  min-height:100vh;
  padding:28px 22px 36px;
}

/* ---- Header ---- */
#omaha-econ-widget .oei-header{
  max-width:1180px;
  margin:0 auto 16px;
  display:flex;
  flex-wrap:wrap;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
}
#omaha-econ-widget .oei-head-left{
  border-left:8px solid var(--green-dark);
  padding-left:16px;
}
#omaha-econ-widget .oei-head-left h2{
  font-family:'Oswald',sans-serif;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.04em;
  font-size:clamp(1.4rem,3.2vw,2.1rem);
  line-height:1.05;
  color:var(--ink);
}
#omaha-econ-widget .oei-head-left p{
  color:var(--muted);
  font-size:.86rem;
  margin-top:6px;
  font-weight:500;
}
#omaha-econ-widget .oei-head-right{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:10px;
}
#omaha-econ-widget .oei-meta{
  display:flex;
  align-items:center;
  gap:10px;
}
#omaha-econ-widget .oei-refreshed{
  font-size:.76rem;
  color:var(--muted);
  font-weight:500;
  white-space:nowrap;
}
#omaha-econ-widget .oei-iconbtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:32px;
  border:1px solid var(--green-mid);
  background:var(--white);
  color:var(--green-mid);
  cursor:pointer;
  padding:0 10px;
  gap:6px;
  font-family:'Oswald',sans-serif;
  font-weight:600;
  font-size:.74rem;
  letter-spacing:.03em;
  text-transform:uppercase;
  transition:background .15s,color .15s;
}
#omaha-econ-widget .oei-iconbtn.icon-only{width:32px;padding:0}
#omaha-econ-widget .oei-iconbtn:hover{background:var(--green-mid);color:#fff}
#omaha-econ-widget .oei-iconbtn svg{display:block}
#omaha-econ-widget .oei-refresh-btn.spinning svg{animation:oei-spin .8s linear infinite}

/* ---- Tab bar (sticky) ---- */
#omaha-econ-widget .oei-tabs{
  position:sticky;
  top:0;
  z-index:30;
  background:var(--bg);
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  max-width:1180px;
  margin:0 auto;
  padding:8px 0 10px;
  border-bottom:1px solid var(--border);
}
#omaha-econ-widget .oei-tabs button{
  font-family:'Oswald',sans-serif;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:.03em;
  font-size:.82rem;
  padding:9px 18px;
  cursor:pointer;
  border:1px solid var(--green-mid);
  background:var(--white);
  color:var(--green-mid);
  transition:background .15s,color .15s;
}
#omaha-econ-widget .oei-tabs button.active{
  background:var(--green-dark);
  color:#fff;
  border-color:var(--green-dark);
}

/* ---- Headline summary ---- */
#omaha-econ-widget .oei-headline{
  max-width:1180px;
  margin:16px auto 4px;
  font-size:.98rem;
  color:var(--ink);
  font-weight:500;
  border-left:4px solid var(--green-light);
  padding-left:12px;
  line-height:1.45;
}
#omaha-econ-widget .oei-headline b{color:var(--green-dark);font-weight:700}

/* ---- Geography selector ---- */
#omaha-econ-widget .oei-geobar{max-width:1180px;margin:14px auto 0;display:flex;align-items:center;gap:10px;flex-wrap:wrap}
#omaha-econ-widget .oei-geo-label{font-size:.8rem;color:var(--muted);font-weight:500}
#omaha-econ-widget .oei-geo-select{
  font-family:'Inter',sans-serif;font-weight:600;font-size:.9rem;color:var(--green-dark);
  border:1px solid var(--green-mid);background:var(--white);padding:7px 12px;border-radius:0;cursor:pointer;
}
#omaha-econ-widget .oei-geo-select:focus{outline:2px solid var(--green-light);outline-offset:1px}
#omaha-econ-widget .oei-geo-note{flex-basis:100%;font-size:.74rem;color:var(--muted);margin-top:2px;line-height:1.4}
#omaha-econ-widget .oei-msa-badge{
  display:inline-block;margin-top:6px;font-size:.62rem;font-weight:700;text-transform:uppercase;
  letter-spacing:.04em;color:var(--muted);background:#eef0ee;padding:2px 7px;
}

/* ---- Tab panels ---- */
#omaha-econ-widget .oei-panel{display:none;margin-top:14px}
#omaha-econ-widget .oei-panel.active{display:block}

/* ---- Grid ---- */
#omaha-econ-widget .oei-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(255px,1fr));
  gap:18px;
  max-width:1180px;
  margin:0 auto;
}

/* ---- Card ---- */
#omaha-econ-widget .oei-card{
  position:relative;
  background:var(--white);
  border:1px solid var(--border);
  border-radius:0;                       /* sharp / angular */
  padding:18px 18px 14px;
  display:flex;
  flex-direction:column;
  min-height:248px;
  cursor:pointer;
  transition:transform .15s ease, box-shadow .15s ease;
}
#omaha-econ-widget .oei-card::before{
  content:"";
  position:absolute;top:0;left:0;right:0;
  height:3px;
  background:var(--green-mid);
  transition:height .15s ease;
}
#omaha-econ-widget .oei-card:hover{
  transform:translateY(-2px);
  box-shadow:0 6px 18px rgba(26,60,43,.14);
}
#omaha-econ-widget .oei-card:hover::before{height:6px}
#omaha-econ-widget .oei-card.is-error::before{background:var(--neg)}

#omaha-econ-widget .oei-card .oei-label{
  font-family:'Oswald',sans-serif;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:.03em;
  font-size:.82rem;
  color:var(--green-dark);
  line-height:1.15;
  min-height:2.3em;
}
#omaha-econ-widget .oei-card .oei-value{
  font-family:'Oswald',sans-serif;
  font-weight:700;
  font-size:2.25rem;
  line-height:1;
  margin:12px 0 4px;
  color:var(--ink);
}
#omaha-econ-widget .oei-card .oei-change{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:.9rem;
  font-weight:600;
  margin-bottom:2px;
}
#omaha-econ-widget .oei-change.pos{color:var(--pos)}
#omaha-econ-widget .oei-change.neg{color:var(--neg)}
#omaha-econ-widget .oei-change.flat{color:var(--muted)}
#omaha-econ-widget .oei-change .arrow{font-size:1.05rem;line-height:1}
#omaha-econ-widget .oei-card .oei-prior{
  font-size:.78rem;
  color:var(--muted);
  margin-top:2px;
}
#omaha-econ-widget .oei-card .oei-spark{
  position:relative;
  height:48px;
  margin:12px 0 6px;
}
#omaha-econ-widget .oei-card .oei-spark canvas{width:100%!important;height:100%!important}
#omaha-econ-widget .oei-card .oei-foot{
  margin-top:auto;
  padding-top:10px;
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:8px;
}
#omaha-econ-widget .oei-source{
  font-size:.68rem;
  text-transform:uppercase;
  letter-spacing:.05em;
  color:var(--muted);
  font-weight:600;
}
#omaha-econ-widget .oei-updated{
  font-size:.68rem;
  color:var(--muted);
  text-align:right;
}
#omaha-econ-widget .oei-card.is-error .oei-value{font-size:1.05rem;color:var(--neg);font-family:'Inter',sans-serif;font-weight:600}
#omaha-econ-widget .oei-errmsg{font-size:.78rem;color:var(--muted);margin-top:4px}

/* ---- Busy / loading spinner overlay ---- */
#omaha-econ-widget .oei-busy-overlay{
  position:absolute;inset:0;
  background:rgba(255,255,255,.72);
  display:none;
  align-items:center;justify-content:center;
  z-index:2;
}
#omaha-econ-widget .is-busy > .oei-busy-overlay{display:flex}
#omaha-econ-widget .oei-spinner{
  width:26px;height:26px;
  border:3px solid #d8e0db;
  border-top-color:var(--green-mid);
  border-radius:50%;
  animation:oei-spin .8s linear infinite;
}
@keyframes oei-spin{to{transform:rotate(360deg)}}

/* ---- Section + tables (Labor Market) ---- */
#omaha-econ-widget .oei-section{max-width:1180px;margin:28px auto 0}
#omaha-econ-widget .oei-sec-title{
  font-family:'Oswald',sans-serif;font-weight:700;text-transform:uppercase;letter-spacing:.03em;
  font-size:1.05rem;color:var(--ink);
  border-left:6px solid var(--green-dark);padding-left:12px;margin-bottom:10px;
}
#omaha-econ-widget .oei-sec-note{font-size:.72rem;color:var(--muted);margin-top:8px;line-height:1.4}
#omaha-econ-widget table.oei-data{
  width:100%;border-collapse:collapse;background:var(--white);
  font-size:.84rem;border:1px solid var(--border);
}
#omaha-econ-widget table.oei-data th{
  background:var(--green-dark);color:#fff;
  font-family:'Oswald',sans-serif;font-weight:600;letter-spacing:.03em;
  text-transform:uppercase;font-size:.72rem;text-align:left;padding:9px 12px;
}
#omaha-econ-widget table.oei-data th.sortable{cursor:pointer;user-select:none}
#omaha-econ-widget table.oei-data th.sortable:hover{background:var(--green-mid)}
#omaha-econ-widget table.oei-data td{padding:8px 12px;border-bottom:1px solid var(--border)}
#omaha-econ-widget table.oei-data td.num{text-align:right;font-variant-numeric:tabular-nums}
#omaha-econ-widget table.oei-data tr:nth-child(even) td{background:#fafbfa}
#omaha-econ-widget table.oei-data tr.oei-occ-total td{
  background:var(--green-pale,#eef3ee);font-weight:700;border-top:2px solid var(--green-dark);
}
/* Wide data tables (industry, occupations, economy) scroll horizontally on
   narrow screens instead of overflowing the widget — same as the regional table. */
#omaha-econ-widget .oei-industry-wrap,
#omaha-econ-widget .oei-occ-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
#omaha-econ-widget .oei-industry-wrap table.oei-data,
#omaha-econ-widget .oei-occ-wrap table.oei-data{min-width:560px}
/* Sticky first column: the industry/occupation names stay anchored while the
   metric columns scroll sideways (chevron buttons appear at the edges), so
   you never lose track of which row is which. Sticky cells need an opaque
   background; the zebra/total-row rules below keep their colors. */
#omaha-econ-widget .oei-industry-wrap table.oei-data th:first-child,
#omaha-econ-widget .oei-industry-wrap table.oei-data td:first-child,
#omaha-econ-widget .oei-occ-wrap table.oei-data th:first-child,
#omaha-econ-widget .oei-occ-wrap table.oei-data td:first-child{
  position:sticky;left:0;z-index:1;box-shadow:4px 0 6px -3px rgba(0,0,0,.12);
}
#omaha-econ-widget .oei-industry-wrap table.oei-data td:first-child,
#omaha-econ-widget .oei-occ-wrap table.oei-data td:first-child{background:var(--white)}
#omaha-econ-widget .oei-industry-wrap table.oei-data tr:nth-child(even) td:first-child,
#omaha-econ-widget .oei-occ-wrap table.oei-data tr:nth-child(even) td:first-child{background:#fafbfa}
#omaha-econ-widget .oei-industry-wrap table.oei-data tr.oei-occ-total td:first-child,
#omaha-econ-widget .oei-occ-wrap table.oei-data tr.oei-occ-total td:first-child{background:var(--green-pale,#eef3ee)}
#omaha-econ-widget .oei-industry-wrap table.oei-data th:first-child,
#omaha-econ-widget .oei-occ-wrap table.oei-data th:first-child{z-index:2}
#omaha-econ-widget .oei-lq-high{color:var(--pos);font-weight:700}
#omaha-econ-widget .oei-chg-pos{color:var(--pos);font-weight:600}
#omaha-econ-widget .oei-chg-neg{color:var(--neg);font-weight:600}
#omaha-econ-widget .oei-warn-banner{
  background:#fbeae8;border:1px solid var(--neg);color:#922;
  padding:9px 12px;font-size:.8rem;margin-bottom:10px;font-weight:600;
}

/* ---- Demographics ---- */
#omaha-econ-widget .oei-demo-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(320px,1fr));
  gap:18px;max-width:1180px;margin:0 auto;
}
#omaha-econ-widget .oei-demo-card{
  position:relative;background:var(--white);border:1px solid var(--border);
  padding:18px;display:flex;flex-direction:column;min-height:300px;
  transition:transform .15s ease, box-shadow .15s ease;
}
#omaha-econ-widget .oei-demo-card::before{
  content:"";position:absolute;top:0;left:0;right:0;height:3px;
  background:var(--green-mid);transition:height .15s ease;
}
#omaha-econ-widget .oei-demo-card.clickable{cursor:pointer}
#omaha-econ-widget .oei-demo-card.clickable:hover{transform:translateY(-2px);box-shadow:0 6px 18px rgba(26,60,43,.14)}
#omaha-econ-widget .oei-demo-card.clickable:hover::before{height:6px}
#omaha-econ-widget .oei-demo-chart{position:relative;height:150px;margin-top:10px}
#omaha-econ-widget .oei-donut-wrap{display:flex;gap:16px;align-items:center;margin-top:10px;flex-wrap:wrap}
#omaha-econ-widget .oei-donut-chart{position:relative;width:150px;height:150px;flex:0 0 auto}
#omaha-econ-widget .oei-donut-legend{display:flex;flex-direction:column;gap:5px;font-size:.76rem;flex:1 1 130px}
#omaha-econ-widget .oei-donut-legend .it{display:flex;align-items:center;gap:7px}
#omaha-econ-widget .oei-donut-legend .sw{width:11px;height:11px;flex:0 0 auto}
#omaha-econ-widget .oei-donut-legend .pc{margin-left:auto;font-weight:700;font-variant-numeric:tabular-nums}

/* ---- Regional "coming soon" ---- */
#omaha-econ-widget .oei-coming{
  max-width:1180px;margin:0 auto;background:var(--white);
  border:1px solid var(--border);border-top:5px solid var(--green-mid);
  padding:46px 30px;text-align:center;
}
#omaha-econ-widget .oei-coming h3{
  font-family:'Oswald',sans-serif;font-weight:700;text-transform:uppercase;
  letter-spacing:.04em;font-size:1.7rem;color:var(--green-dark);
}
#omaha-econ-widget .oei-coming p{color:var(--muted);margin-top:8px;font-size:.9rem}
#omaha-econ-widget .oei-peer-grid{
  display:flex;gap:14px;justify-content:center;flex-wrap:wrap;margin-top:24px;
}
#omaha-econ-widget .oei-peer{
  border:1px solid var(--green-mid);color:var(--green-mid);
  padding:14px 22px;font-family:'Oswald',sans-serif;text-transform:uppercase;
  font-weight:600;letter-spacing:.03em;min-width:130px;
}
#omaha-econ-widget .oei-peer span{display:block;font-family:'Inter',sans-serif;font-weight:500;font-size:.66rem;color:var(--muted);text-transform:none;letter-spacing:0;margin-top:4px}
#omaha-econ-widget .oei-coming-note{margin-top:26px;font-size:.78rem;color:var(--muted);font-style:italic}

/* ---- Attribution ---- */
#omaha-econ-widget .oei-attrib{
  max-width:1180px;margin:24px auto 0;font-size:.72rem;color:var(--muted);line-height:1.5;
}

/* ---- Modal (absolute, inside faux viewport — never position:fixed) ---- */
#omaha-econ-widget .oei-modal-overlay{
  position:absolute;inset:0;
  background:rgba(20,34,26,.55);
  display:none;z-index:50;padding:34px 16px;overflow:auto;
}
#omaha-econ-widget .oei-modal-overlay.open{display:flex;align-items:flex-start;justify-content:center}
#omaha-econ-widget .oei-modal{
  background:var(--white);width:min(880px,100%);
  border-top:5px solid var(--green-mid);box-shadow:0 12px 44px rgba(0,0,0,.32);
}
#omaha-econ-widget .oei-modal-head{
  display:flex;align-items:flex-start;justify-content:space-between;gap:14px;
  padding:18px 20px 14px;border-bottom:1px solid var(--border);
}
#omaha-econ-widget .oei-modal-head .oei-mh-title{border-left:8px solid var(--green-dark);padding-left:14px}
#omaha-econ-widget .oei-modal-head h3{
  font-family:'Oswald',sans-serif;font-weight:700;text-transform:uppercase;letter-spacing:.03em;
  font-size:1.3rem;line-height:1.05;color:var(--ink);
}
#omaha-econ-widget .oei-modal-head .oei-mh-sub{font-size:.78rem;color:var(--muted);margin-top:5px}
#omaha-econ-widget .oei-modal-close{border:none;background:none;cursor:pointer;font-size:1.6rem;line-height:1;color:var(--muted);padding:2px 6px}
#omaha-econ-widget .oei-modal-close:hover{color:var(--ink)}
#omaha-econ-widget .oei-modal-body{padding:18px 20px 22px}
#omaha-econ-widget .oei-modal-chart{position:relative;height:300px;margin-bottom:18px}
#omaha-econ-widget .oei-modal-tablewrap{max-height:240px;overflow:auto;border:1px solid var(--border)}
#omaha-econ-widget table.oei-table{width:100%;border-collapse:collapse;font-size:.82rem}
#omaha-econ-widget table.oei-table th{
  position:sticky;top:0;background:var(--green-dark);color:#fff;
  font-family:'Oswald',sans-serif;font-weight:600;letter-spacing:.03em;
  text-align:left;padding:8px 12px;font-size:.74rem;text-transform:uppercase;
}
#omaha-econ-widget table.oei-table td{padding:7px 12px;border-bottom:1px solid var(--border)}
#omaha-econ-widget table.oei-table td.num{text-align:right;font-variant-numeric:tabular-nums}
#omaha-econ-widget table.oei-table tr:nth-child(even) td{background:#fafbfa}

/* ---- Regional Comparison tab (Omaha vs. up to 4 metros) ---- */
#omaha-econ-widget .oei-mc{position:relative;max-width:1180px;margin:0 auto}

/* Budget banner — calm, informational, hidden until the daily BLS budget nears its cap */
#omaha-econ-widget .oei-mc-banner{
  display:none;background:#fdf6e3;border:1px solid #e6d9a8;color:#7a6014;
  font-size:.82rem;font-weight:500;padding:8px 14px;margin-bottom:12px;border-radius:6px;
}
#omaha-econ-widget .oei-mc-banner.show{display:block}

/* Toolbar: search + quick picks + scale toggle. "hero" = the empty-state invitation. */
#omaha-econ-widget .oei-mc-toolbar{
  background:var(--white);border:1px solid var(--border);padding:10px 14px;margin-bottom:12px;
}
#omaha-econ-widget .oei-mc-toolbar.hero{padding:20px 18px;border-top:4px solid var(--green-dark)}
#omaha-econ-widget .oei-mc-toolbar-title{
  font-family:'Oswald',sans-serif;text-transform:uppercase;font-weight:600;letter-spacing:.03em;
  color:var(--green-dark);font-size:.88rem;margin-bottom:8px;
}
#omaha-econ-widget .oei-mc-toolbar.hero .oei-mc-toolbar-title{font-size:1.1rem}
#omaha-econ-widget .oei-mc-count{
  font-family:'Inter',sans-serif;text-transform:none;letter-spacing:0;font-weight:500;
  color:var(--muted);font-size:.74rem;margin-left:8px;
}
#omaha-econ-widget .oei-mc-searchwrap{position:relative;max-width:560px}
#omaha-econ-widget .oei-mc-search{
  width:100%;padding:8px 12px;border:1px solid var(--border);border-radius:6px;
  font-family:'Inter',sans-serif;font-size:.88rem;color:var(--ink);background:var(--white);
}
#omaha-econ-widget .oei-mc-toolbar.hero .oei-mc-search{padding:11px 14px;font-size:.95rem}
#omaha-econ-widget .oei-mc-search:focus{outline:2px solid var(--green-mid);outline-offset:-1px}
#omaha-econ-widget .oei-mc-aclist{
  display:none;position:absolute;z-index:30;top:100%;left:0;right:0;background:var(--white);
  border:1px solid var(--border);border-top:none;box-shadow:0 10px 22px rgba(0,0,0,.14);
  max-height:320px;overflow-y:auto;
}
#omaha-econ-widget .oei-mc-aclist.open{display:block}
#omaha-econ-widget .oei-mc-acitem{
  padding:8px 12px;cursor:pointer;font-size:.85rem;display:flex;align-items:baseline;gap:8px;
}
#omaha-econ-widget .oei-mc-acitem.active,
#omaha-econ-widget .oei-mc-acitem:hover{background:#eaf1ec}
#omaha-econ-widget .oei-mc-acitem .st{color:var(--muted);font-size:.75rem}
#omaha-econ-widget .oei-mc-acitem .kind{margin-left:auto;color:var(--muted);font-size:.66rem;text-transform:uppercase;letter-spacing:.06em}

/* Quick-pick chips (fixed peers + recent comparisons) */
#omaha-econ-widget .oei-mc-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
#omaha-econ-widget .oei-mc-quickchip{
  font-family:'Inter',sans-serif;font-size:.75rem;font-weight:600;color:var(--green-mid);
  background:var(--white);border:1px solid var(--green-mid);border-radius:999px;
  padding:3px 11px;cursor:pointer;transition:background .15s,color .15s;
}
#omaha-econ-widget .oei-mc-quickchip:hover:not([disabled]){background:var(--green-dark);border-color:var(--green-dark);color:#fff}
#omaha-econ-widget .oei-mc-quickchip.added{background:#eaf1ec;color:var(--green-dark);border-color:#c8d8cd;cursor:pointer}
#omaha-econ-widget .oei-mc-quickchip[disabled]{opacity:.55;cursor:default}
/* Active chips are deselect toggles: hovering/focusing swaps the check for an
   X and tints the chip toward the "unfavorable" red to signal removal. */
#omaha-econ-widget .oei-mc-chipmark .off{display:none}
#omaha-econ-widget .oei-mc-quickchip.added:hover:not([disabled]),
#omaha-econ-widget .oei-mc-quickchip.added:focus-visible:not([disabled]){
  background:#fbeae8;border-color:var(--neg);color:var(--neg);
}
#omaha-econ-widget .oei-mc-quickchip.added:hover:not([disabled]) .oei-mc-chipmark .on,
#omaha-econ-widget .oei-mc-quickchip.added:focus-visible:not([disabled]) .oei-mc-chipmark .on{display:none}
#omaha-econ-widget .oei-mc-quickchip.added:hover:not([disabled]) .oei-mc-chipmark .off,
#omaha-econ-widget .oei-mc-quickchip.added:focus-visible:not([disabled]) .oei-mc-chipmark .off{display:inline}

/* Trend-scale toggle (Comparable = shared row scale / Detail = per-graph zoom) */
#omaha-econ-widget .oei-mc-scalectl{display:inline-flex;align-items:center;gap:0;margin-top:10px}
#omaha-econ-widget .oei-mc-scalelabel{font-size:.72rem;color:var(--muted);font-weight:600;margin-right:8px}
#omaha-econ-widget .oei-mc-scalectl button{
  font-family:'Oswald',sans-serif;font-weight:600;letter-spacing:.03em;font-size:.72rem;
  text-transform:uppercase;padding:4px 12px;cursor:pointer;background:var(--white);
  color:var(--green-mid);border:1px solid var(--green-mid);border-left-width:0;
  transition:background .15s,color .15s;
}
#omaha-econ-widget .oei-mc-scalectl button:first-of-type{border-left-width:1px}
#omaha-econ-widget .oei-mc-scalectl button.active{background:var(--green-dark);color:#fff;border-color:var(--green-dark)}
#omaha-econ-widget .oei-mc-hint{color:var(--neg);font-size:.76rem;font-weight:600;margin-top:6px;min-height:0}
#omaha-econ-widget .oei-mc-hint:empty{display:none}

/* Scorecard strip */
#omaha-econ-widget .oei-mc-scorecard{margin-bottom:10px}
#omaha-econ-widget .oei-mc-scoreline{
  background:var(--white);border:1px solid var(--border);border-left:4px solid var(--green-dark);
  padding:7px 12px;font-size:.86rem;color:var(--ink);margin-bottom:5px;
  display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;
}
#omaha-econ-widget .oei-mc-scoreline .txt{line-height:1.45}
#omaha-econ-widget .oei-mc-scoreline b{color:var(--green-dark)}
#omaha-econ-widget .oei-mc-dots{display:inline-flex;gap:5px;align-items:center}
#omaha-econ-widget .oei-mc-scoredot{
  width:11px;height:11px;border-radius:50%;border:none;padding:0;cursor:pointer;background:var(--border);
}
#omaha-econ-widget .oei-mc-scoredot.win{background:var(--pos)}
#omaha-econ-widget .oei-mc-scoredot.loss{background:var(--neg);opacity:.7}
#omaha-econ-widget .oei-mc-scoredot.tie{background:#b9c4bd}
#omaha-econ-widget .oei-mc-scoredot:hover{transform:scale(1.35)}

/* Column count — shared by the heads row and every metric row */
#omaha-econ-widget .cols-2{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
#omaha-econ-widget .cols-3{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
#omaha-econ-widget .cols-4{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}
#omaha-econ-widget .cols-5{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}

/* Panel heads (metro identity cards — each metric cell also names its metro) */
#omaha-econ-widget .oei-mc-heads{margin-bottom:14px}
#omaha-econ-widget .oei-mc-head{
  background:var(--white);border:1px solid var(--border);border-top:4px solid var(--green-mid);
  padding:9px 12px;min-width:0;
}
#omaha-econ-widget .oei-mc-head.home{border-top-color:var(--green-dark);background:#f6faf7}
#omaha-econ-widget .oei-mc-head.ghosthead{border-style:dashed;border-top-style:dashed;background:transparent}
#omaha-econ-widget .oei-mc-head h4{
  font-family:'Oswald',sans-serif;text-transform:uppercase;color:var(--green-dark);
  font-size:.92rem;letter-spacing:.02em;display:flex;align-items:center;gap:7px;flex-wrap:wrap;
  overflow-wrap:anywhere;
}
#omaha-econ-widget .oei-mc-headname{flex:1 1 auto;min-width:0;overflow-wrap:anywhere}
#omaha-econ-widget .oei-mc-badge{
  font-family:'Inter',sans-serif;font-size:.58rem;font-weight:700;letter-spacing:.06em;
  text-transform:uppercase;background:var(--green-dark);color:#fff;padding:2px 7px;border-radius:999px;
}
#omaha-econ-widget .oei-mc-remove{
  margin-left:auto;background:none;border:none;color:var(--muted);font-size:1.1rem;line-height:1;
  cursor:pointer;padding:0 2px;
}
#omaha-econ-widget .oei-mc-remove:hover{color:var(--neg)}

/* Keyboard-accessible reorder buttons (counterpart to the drag handle).
   Glyphs live in CSS so orientation can follow the layout: ◀▶ in the desktop
   row, ▲▼ in the stacked mobile list. */
#omaha-econ-widget .oei-mc-ordbtns{display:inline-flex;gap:2px;margin-left:2px}
#omaha-econ-widget .oei-mc-ord{
  background:none;border:1px solid var(--border);border-radius:4px;color:var(--muted);
  font-size:.6rem;line-height:1;padding:3px 5px;cursor:pointer;
}
#omaha-econ-widget .oei-mc-ord:hover:not([disabled]){color:var(--green-dark);border-color:var(--green-mid)}
#omaha-econ-widget .oei-mc-ord[disabled]{opacity:.35;cursor:default}
#omaha-econ-widget .oei-mc-ord[data-dir="-1"] .ord-glyph::before{content:"\25C0"}
#omaha-econ-widget .oei-mc-ord[data-dir="1"] .ord-glyph::before{content:"\25B6"}

/* Position badge: which slot each comparison metro holds (slot 1 is what the
   mobile quick-comparison lines reference). Shown on small screens only. */
#omaha-econ-widget .oei-mc-pos{
  display:none;flex:none;width:18px;height:18px;border-radius:50%;
  background:#eef0ee;color:var(--muted);font-family:'Inter',sans-serif;
  font-size:.68rem;font-weight:700;line-height:18px;text-align:center;
}
#omaha-econ-widget .oei-mc-head:first-of-type + .oei-mc-head .oei-mc-pos{
  background:var(--green-dark);color:#fff;
}

/* Visible keyboard focus on the tab's interactive elements */
#omaha-econ-widget .oei-mc-cell.clickable:focus-visible,
#omaha-econ-widget .oei-mc-vsrow .vs-line[data-mcmodal]:focus-visible,
#omaha-econ-widget .oei-mc-ord:focus-visible,
#omaha-econ-widget .oei-mc-scoredot:focus-visible,
#omaha-econ-widget .oei-mc-quickchip:focus-visible,
#omaha-econ-widget .oei-mc-remove:focus-visible{
  outline:2px solid var(--green-mid);outline-offset:1px;
}

/* Drag-to-reorder: drags start only from the handle, so touching the card
   body still scrolls the page on mobile. */
#omaha-econ-widget .oei-mc-draghandle{
  cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none;
  color:#b6bdb8;font-size:.95rem;line-height:1;padding:0 3px 0 0;
}
#omaha-econ-widget .oei-mc-draghandle:hover{color:var(--green-mid)}
#omaha-econ-widget .oei-mc-head.dragging{
  position:relative;z-index:40;opacity:.8;cursor:grabbing;
  box-shadow:0 8px 22px rgba(0,0,0,.2);user-select:none;-webkit-user-select:none;
}
#omaha-econ-widget .oei-mc-head.dragging .oei-mc-draghandle{cursor:grabbing}
/* Swap target: the card that will trade places with the dragged one. */
#omaha-econ-widget .oei-mc-head.drop-swap{
  outline:2px solid var(--pos);outline-offset:-1px;background:#f0f7f2;
}
#omaha-econ-widget .oei-mc-ministats{font-size:.74rem;color:var(--muted);margin-top:3px}
#omaha-econ-widget .oei-mc-ministats b{color:var(--ink)}
#omaha-econ-widget .oei-mc-headmeta{color:var(--muted);font-size:.7rem;margin-top:3px;line-height:1.35}
#omaha-econ-widget .oei-mc-cachenote{color:var(--muted);font-size:.66rem;font-style:italic;margin-top:1px}

/* Metric rows: shared label above one cell per metro column */
#omaha-econ-widget .oei-mc-section .oei-sec-note{margin-bottom:10px}
#omaha-econ-widget .oei-mc-row{margin-bottom:8px}
#omaha-econ-widget .oei-mc-rowlabel{
  font-family:'Oswald',sans-serif;font-size:.72rem;font-weight:600;letter-spacing:.05em;
  text-transform:uppercase;color:var(--muted);margin:0 0 3px 2px;
}
#omaha-econ-widget .oei-mc-cell{
  background:var(--white);border:1px solid var(--border);border-left:3px solid var(--green-mid);
  padding:8px 12px 9px;min-height:0;display:flex;flex-direction:column;gap:4px;min-width:0;
}
#omaha-econ-widget .oei-mc-cell.home{border-left-color:var(--green-dark)}
#omaha-econ-widget .oei-mc-cell.clickable{cursor:pointer}
#omaha-econ-widget .oei-mc-cell.clickable:hover{border-color:var(--green-mid);box-shadow:0 1px 6px rgba(26,60,43,.14)}
#omaha-econ-widget .oei-mc-cell.unavailable{border-left-color:var(--border);background:#fafafa}
#omaha-econ-widget .oei-mc-cell.ghost{border:none;background:transparent}

/* Per-cell metro tag + "Best" marker */
#omaha-econ-widget .oei-mc-celltag{
  display:flex;align-items:center;justify-content:space-between;gap:8px;
  font-size:.62rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#9aa39d;
}
#omaha-econ-widget .oei-mc-celltag .who{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#omaha-econ-widget .oei-mc-celltag .who.home{color:var(--green-dark)}
/* Best value in the row: a crisp green outline (box-shadow ring, so no layout shift). */
#omaha-econ-widget .oei-mc-cell.win{
  border-color:var(--pos);border-left-color:var(--pos);
  box-shadow:0 0 0 1px var(--pos);
}
#omaha-econ-widget .oei-mc-cell.win.clickable:hover{
  border-color:var(--pos);box-shadow:0 0 0 1px var(--pos),0 1px 6px rgba(26,60,43,.14);
}

#omaha-econ-widget .oei-mc-value{
  font-family:'Oswald',sans-serif;font-weight:700;font-size:1.35rem;line-height:1.1;color:var(--ink);
  display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;
}
#omaha-econ-widget .cols-4 .oei-mc-value{font-size:1.2rem}
#omaha-econ-widget .cols-5 .oei-mc-value{font-size:1.05rem}
#omaha-econ-widget .oei-mc-unit{font-family:'Inter',sans-serif;font-size:.8rem;color:var(--muted);font-weight:500}
/* YoY change — same triangle style as the Labor tab cards (.oei-change gives
   the pos/neg/flat colors), sized down for the comparison cells. */
#omaha-econ-widget .oei-mc-yoy{
  display:inline-flex;align-items:center;gap:4px;
  font-family:'Inter',sans-serif;font-size:.74rem;font-weight:600;white-space:nowrap;
}
#omaha-econ-widget .oei-mc-yoy .arrow{font-size:.85rem;line-height:1}
#omaha-econ-widget .oei-mc-spark{height:32px;position:relative}
#omaha-econ-widget .oei-mc-sub{color:var(--muted);font-size:.7rem;line-height:1.35}
#omaha-econ-widget .oei-mc-na{color:var(--muted);font-weight:600;font-size:.9rem;padding-top:2px}
#omaha-econ-widget .oei-mc-nareason{color:var(--muted);font-size:.7rem;line-height:1.35}

/* Loading skeletons */
@keyframes oeiShimmer{0%{background-position:150% 0}100%{background-position:-50% 0}}
#omaha-econ-widget .oei-mc-skel{
  height:13px;border-radius:4px;margin:3px 0;
  background:linear-gradient(90deg,#ececec 25%,#f7f7f7 50%,#ececec 75%);
  background-size:200% 100%;animation:oeiShimmer 1.2s linear infinite;
}
#omaha-econ-widget .oei-mc-skel.w40{width:40%}
#omaha-econ-widget .oei-mc-skel.w60{width:60%}
#omaha-econ-widget .oei-mc-skel.w80{width:80%}
#omaha-econ-widget .oei-mc-skel.spark{height:30px;width:100%}

/* State business facts cell (static annual reference) */
#omaha-econ-widget .oei-mc-factshead{
  font-size:.64rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);
}
#omaha-econ-widget .oei-mc-factstate{padding:3px 0}
#omaha-econ-widget .oei-mc-factstate .fs-name{font-family:'Oswald',sans-serif;font-weight:600;font-size:.9rem;color:var(--green-dark)}
#omaha-econ-widget .oei-mc-factstate .fs-line{font-size:.78rem;color:var(--ink);margin-top:1px;line-height:1.45}
#omaha-econ-widget .oei-mc-yeartag{
  font-size:.64rem;font-weight:600;background:#eef0ee;color:var(--muted);
  padding:1px 7px;border-radius:999px;white-space:nowrap;
}

/* Site-selection disclaimer + consolidated freshness footer */
#omaha-econ-widget .oei-mc-disclaimer{
  font-size:.74rem;color:var(--muted);font-style:italic;margin-top:8px;
  border-top:1px solid var(--border);padding-top:7px;
}
#omaha-econ-widget .oei-mc-freshness{
  margin-top:12px;padding:7px 12px;background:var(--white);border:1px solid var(--border);
  color:var(--muted);font-size:.72rem;text-align:center;
}

/* Mobile "versus rows": one delta-first card per metric replaces the paired
   cells below the stacking breakpoint (hidden on desktop). */
#omaha-econ-widget .oei-mc-vsrow{display:none}
#omaha-econ-widget .oei-mc-vsrow .vs-delta{
  font-family:'Inter',sans-serif;font-size:.8rem;font-weight:700;margin-bottom:6px;
}
#omaha-econ-widget .oei-mc-vsrow .vs-delta.good{color:var(--pos)}
#omaha-econ-widget .oei-mc-vsrow .vs-delta.bad{color:var(--neg)}
#omaha-econ-widget .oei-mc-vsrow .vs-delta.neutral{color:var(--muted)}
#omaha-econ-widget .oei-mc-vsrow .vs-table{display:flex;flex-direction:column;gap:2px}
#omaha-econ-widget .oei-mc-vsrow .vs-line{
  display:flex;align-items:baseline;justify-content:space-between;gap:10px;
  padding:4px 8px;border-radius:4px;
}
#omaha-econ-widget .oei-mc-vsrow .vs-line[data-mcmodal]{cursor:pointer}
#omaha-econ-widget .oei-mc-vsrow .vs-line.win{box-shadow:inset 0 0 0 1px var(--pos)}
#omaha-econ-widget .oei-mc-vsrow .vs-who{
  font-size:.68rem;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:#9aa39d;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
#omaha-econ-widget .oei-mc-vsrow .vs-line.home .vs-who{color:var(--green-dark)}
#omaha-econ-widget .oei-mc-vsrow .vs-val{
  font-family:'Oswald',sans-serif;font-weight:700;font-size:1.1rem;color:var(--ink);white-space:nowrap;
}
#omaha-econ-widget .oei-mc-vsrow .vs-sub{color:var(--muted);font-size:.68rem;line-height:1.35;margin-top:5px}

@media (max-width:900px){
  #omaha-econ-widget .cols-4,#omaha-econ-widget .cols-5{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:760px){
  #omaha-econ-widget .cols-2,#omaha-econ-widget .cols-3,
  #omaha-econ-widget .cols-4,#omaha-econ-widget .cols-5{grid-template-columns:1fr}
  #omaha-econ-widget .oei-mc-cell.ghost,
  #omaha-econ-widget .oei-mc-head.ghosthead{display:none}
  /* Stacked list: reorder arrows point up/down, controls grow to thumb size,
     and each comparison metro shows its slot number (slot 1 drives the
     quick-comparison lines below). */
  #omaha-econ-widget .oei-mc-ord[data-dir="-1"] .ord-glyph::before{content:"\25B2"}
  #omaha-econ-widget .oei-mc-ord[data-dir="1"] .ord-glyph::before{content:"\25BC"}
  #omaha-econ-widget .oei-mc-ord{font-size:.78rem;padding:8px 12px}
  #omaha-econ-widget .oei-mc-ordbtns{gap:6px;margin-left:auto}
  #omaha-econ-widget .oei-mc-remove{font-size:1.4rem;padding:4px 10px;margin-left:0}
  #omaha-econ-widget .oei-mc-draghandle{font-size:1.15rem;padding:2px 8px 2px 0}
  #omaha-econ-widget .oei-mc-pos{display:inline-block}
  /* One stable row: name flexes and wraps internally; controls never break
     onto a second line. */
  #omaha-econ-widget .oei-mc-head h4{flex-wrap:nowrap}
  /* Swap paired cards for the merged versus row (rows without one — e.g.
     state facts — keep their stacked cards). */
  #omaha-econ-widget .oei-mc-cells.has-vs{display:none}
  #omaha-econ-widget .oei-mc-vsrow{
    display:block;background:var(--white);border:1px solid var(--border);
    border-left:3px solid var(--green-mid);padding:9px 12px 10px;
  }
}
@media (max-width:560px){
  /* Denser data tables so more fits before the horizontal scroll kicks in. */
  #omaha-econ-widget table.oei-data th{padding:8px 8px}
  #omaha-econ-widget table.oei-data td{padding:7px 8px}
}

/* ---- Horizontal-scroll chevrons (tab bar, wide tables) ---- */
#omaha-econ-widget .oei-hscroll{position:relative}
#omaha-econ-widget .oei-hscroll.sticky-top{position:sticky;top:0;z-index:30}
/* The buttons live in a zero-height row. Default (short strips like the tab
   bar): centered over the strip. Tall strips (data tables): the row is
   sticky, so the buttons follow the reader down the page. */
#omaha-econ-widget .oei-hscroll-btns{
  position:absolute;top:50%;left:0;right:0;height:0;z-index:32;pointer-events:none;
}
/* Tall variant: a real-height sticky row (offset by a negative margin so
   layout is unchanged). Because the box has height, its sticky travel stops
   at the table's edges — the buttons can never poke above or below it. */
#omaha-econ-widget .oei-hscroll.tall .oei-hscroll-btns{
  position:sticky;top:45vh;left:auto;right:auto;
  height:34px;margin-bottom:-34px;
}
#omaha-econ-widget .oei-hscroll.tall .oei-hscroll-btn{transform:none;top:2px}
#omaha-econ-widget .oei-hscroll-btn{
  pointer-events:auto;
  position:absolute;transform:translateY(-50%);
  width:30px;height:30px;border-radius:50%;border:1px solid var(--border);
  background:var(--white);color:var(--green-dark);
  font-size:1.25rem;line-height:1;padding:0 0 2px;cursor:pointer;
  box-shadow:0 2px 8px rgba(0,0,0,.22);
}
#omaha-econ-widget .oei-hscroll-btn:hover{background:var(--green-dark);color:#fff}
#omaha-econ-widget .oei-hscroll-btn.left{left:4px}
#omaha-econ-widget .oei-hscroll-btn.right{right:4px}

/* ---- Mobile: single-row scrollable tab strip + card-style data tables ---- */
@media (max-width:760px){
  /* Tabs: one swipeable row instead of stacking into 2-3 rows. */
  #omaha-econ-widget .oei-tabs{
    flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;
    scrollbar-width:none;
  }
  #omaha-econ-widget .oei-tabs::-webkit-scrollbar{display:none}
  #omaha-econ-widget .oei-tabs button{flex:none;white-space:nowrap}

}

/* ---- Print: the active tab only, controls hidden, cards kept whole ---- */
@media print{
  #omaha-econ-widget .oei-tabs,
  #omaha-econ-widget .oei-geobar,
  #omaha-econ-widget .oei-export-btn,
  #omaha-econ-widget .oei-refresh-btn,
  #omaha-econ-widget .oei-mc-toolbar,
  #omaha-econ-widget .oei-mc-banner,
  #omaha-econ-widget .oei-mc-dots,
  #omaha-econ-widget .oei-mc-draghandle,
  #omaha-econ-widget .oei-mc-ordbtns,
  #omaha-econ-widget .oei-mc-remove,
  #omaha-econ-widget .oei-mc-scalectl,
  #omaha-econ-widget .oei-mc-hint,
  #omaha-econ-widget .oei-busy-overlay,
  #omaha-econ-widget .oei-hscroll-btn,
  #omaha-econ-widget .oei-modal-overlay{display:none !important}
  #omaha-econ-widget{background:#fff}
  #omaha-econ-widget .oei-card,
  #omaha-econ-widget .oei-demo-card,
  #omaha-econ-widget .oei-mc-cell,
  #omaha-econ-widget .oei-mc-vsrow,
  #omaha-econ-widget .oei-mc-head,
  #omaha-econ-widget .oei-mc-row,
  #omaha-econ-widget table.oei-data tr{break-inside:avoid;page-break-inside:avoid}
  #omaha-econ-widget canvas{max-width:100% !important}
}
