.terminal-hover,#tooltip{position:fixed;z-index:10000;pointer-events:none;background:rgba(21,28,36,.98);border:1px solid #596777;border-radius:4px;box-shadow:0 3px 12px #0008;padding:7px 9px;color:#eaf0f6;font:11px/1.4 Arial,sans-serif;max-width:min(330px,calc(100vw - 20px));width:max-content;font-variant-numeric:tabular-nums}.terminal-hover>b,#tooltip>b{display:block;color:#b9c8d6;font-size:10px;font-weight:500;margin-bottom:3px}.terminal-hover-row{display:flex;gap:6px;align-items:center;white-space:nowrap}.terminal-hover-row>span{max-width:190px;overflow:hidden;text-overflow:ellipsis}.terminal-hover-row strong{margin-left:auto;padding-left:9px;font-weight:600;color:#fff}.hover-square{width:8px;height:8px;flex:none}.hover-line{width:15px;height:0;flex:none}.compact-hover-chart .hoverlayer{display:none!important}#tooltip .tiprow{display:flex;align-items:center;gap:5px;margin:2px 0;font-size:11px}#tooltip .tiprow strong{margin-left:auto}#tooltip .series-dot{width:8px;height:8px;border-radius:0}.terminal-price-select{background:#ff9100!important;color:#111!important;border:1px solid #ffad36!important;font-weight:700;min-width:185px;padding:3px 6px}.fob-routes{margin:4px 0!important}.date-range-note{display:none!important}.retired-control{display:none!important}
/* Dense analytical layout, preserving chart canvas and legible controls. */
#agro-page .chart-card,#agro-page .analysis-card{padding:8px!important;margin-bottom:6px!important}#agro-page .analysis-controls,#agro-page .topic-buttons,#agro-page .chart-toolbar{margin:4px 0!important;padding:3px 0!important;gap:6px!important}#agro-page .chart-grid{gap:8px!important}main>.page-heading{margin-bottom:8px!important;padding-top:8px!important;padding-bottom:5px!important}.chart-tools,.stock-timeframes{gap:5px!important;margin:3px 0!important;padding:3px 5px!important;min-height:0!important}.chart-export-action{font-size:10px!important;padding:3px 7px!important}.chart-card>h2,.panel>h2{margin:4px 0 6px!important}.oc-grid{gap:8px!important}.oc-controls{margin-bottom:5px!important}.oc-controls>span{display:none}.oc-caption:empty{display:none}.wacc-table thead th:nth-child(2){text-align:left!important}.wacc-source-row span{color:#d1dce6!important;font-size:10px!important}.wacc-source-row strong{color:#d9e3ec!important}.wacc-source-row a{color:#a2d3ff!important}.wacc-toolbar{align-items:center!important;gap:6px!important}.wacc-toolbar [data-wacc-reset]{margin-left:auto}.wacc-toolbar .chart-export-action{height:26px}.wacc-input[readonly]{color:#dce8f3!important;background:#1a2732!important;border-color:transparent!important;cursor:default}.wacc-version{font-size:11px;color:#c7d7e5}.wacc-note{font-size:10px!important}.wacc-source-row{min-height:29px;line-height:1.25!important}.wacc-small-controls{margin-top:2px!important}#wacc-page .analysis-controls{margin-bottom:1px!important}

.wacc-sources .wacc-source-row{grid-template-columns:1fr}.wacc-sources .wacc-source-row>strong{display:none}.wacc-source-row span{overflow-wrap:anywhere}@media(max-width:850px){.wacc-sources .wacc-source-row>strong{display:block}.wacc-sources .wacc-source-row{height:auto!important;min-height:35px}}#si-refresh{height:25px;min-height:0;font-size:11px;padding:3px 8px}#agro-page .agro-view-tabs,#agro-page .product-tabs{margin-top:4px!important;margin-bottom:5px!important;gap:5px!important}

#companies-view .oc-controls{gap:8px;margin:0 0 5px}#companies-view .oc-controls>label{gap:3px;font-size:11px}#companies-view select{min-width:185px;padding:4px 7px;height:27px}#companies-view .panel{padding:8px}#companies-view details{margin-top:6px}
/* Align native stock, Plotly and SVG controls to one baseline. */
.chart-tools,.stock-timeframes,.x5-toolbar,.chart-export-toolbar{display:flex!important;align-items:center!important;gap:5px!important;min-height:28px!important;box-sizing:border-box}.chart-tools>label,.stock-timeframes>label,.x5-toolbar>label{display:inline-flex!important;flex-direction:row!important;align-items:center!important;gap:5px!important;margin:0!important;padding:0!important;line-height:26px!important}.chart-tools button,.chart-tools select,.stock-timeframes button,.stock-timeframes select,.x5-toolbar button,.x5-toolbar select{height:26px!important;min-height:26px!important;max-height:26px!important;box-sizing:border-box!important;line-height:18px!important;padding:3px 7px!important;vertical-align:middle!important;margin-top:0!important;margin-bottom:0!important}.sunflower-view-tabs{display:flex;gap:4px;margin:3px 0 6px}.sunflower-view-tabs button{font-size:11px;padding:4px 12px;height:28px;border:1px solid #485260;background:#171d24;color:#c4ced8}.sunflower-view-tabs button[aria-selected=true]{color:#111;background:#ff9100;border-color:#ff9100}#agro-imports-panel>.dashboard-tab-title{display:none}#sunflower-prices-pane .terminal-menu{margin:3px 0 6px}#sunflower-prices-pane .terminal-menu>summary{padding:5px 9px;min-height:28px}
#pork-panel .chart-heading{padding:4px 8px!important;min-height:0!important;height:auto!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:8px!important;background:transparent!important}#pork-panel .chart-heading h2{font-size:14px!important;line-height:20px!important;margin:0!important;padding:4px 9px!important;width:auto!important;flex:0 1 auto!important;max-width:100%!important;background:#173a60!important}#pork-panel .chart-card{padding:6px 8px!important;margin:4px 0!important}#pork-panel .analysis-controls{padding:2px 0!important;margin:3px 0!important;gap:6px!important}#pork-panel .analysis-controls label{gap:3px!important;margin:0!important}#pork-panel .scenario-card{margin-bottom:4px!important}#pork-panel .terminal-menu{margin:3px 0 6px}#pork-panel .pork-source-note{margin:3px 0!important;font-size:10px;line-height:1.3}#world-palm-note,.wacc-note:empty{display:none!important}

/* Bloomberg-style compact dropdowns, including controls added after initial load. */
html body :is(#terminal-dropdown-style,select):not([multiple]),html body :is(#terminal-dropdown-style,.terminal-menu)>summary,html body :is(#terminal-dropdown-style,.rfs-picker)>summary,html body button[aria-haspopup="listbox"],html body button[aria-haspopup="menu"]{appearance:none!important;-webkit-appearance:none!important;box-sizing:border-box;background-color:#ff9d00!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='24' viewBox='0 0 20 24'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop stop-color='%23d3d5d8'/%3E%3Cstop offset='1' stop-color='%236f747e'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23g)' stroke='%23383a40' d='M.5.5h19v23H.5z'/%3E%3Cpath fill='%23171920' d='m5 9 5 6 5-6z'/%3E%3C/svg%3E")!important;background-position:right center!important;background-repeat:no-repeat!important;background-size:20px 100%!important;color:#111!important;border:1px solid #544321!important;border-top-color:#ffd16c!important;border-left-color:#ffd16c!important;border-radius:0!important;box-shadow:inset 0 0 0 1px #da8500!important;padding:2px 27px 2px 7px!important;min-height:26px;line-height:20px!important;font-weight:500!important;text-align:left;cursor:pointer;color-scheme:light!important;}
html body :is(#terminal-dropdown-style,select):not([multiple]):focus-visible,html body :is(#terminal-dropdown-style,.terminal-menu)>summary:focus-visible,html body :is(#terminal-dropdown-style,.rfs-picker)>summary:focus-visible{outline:2px solid #fff!important;outline-offset:2px}
html body :is(#terminal-dropdown-style,select):disabled{opacity:.5;cursor:default}html body :is(#terminal-dropdown-style,select) option,html body :is(#terminal-dropdown-style,select) optgroup{background:#171b22;color:#edf1f5}html body :is(#terminal-dropdown-style,.terminal-menu)>summary,html body :is(#terminal-dropdown-style,.rfs-picker)>summary{list-style:none!important;position:relative;}
html body :is(#terminal-dropdown-style,.terminal-menu)>summary::marker,html body :is(#terminal-dropdown-style,.rfs-picker)>summary::marker{content:''}html body :is(#terminal-dropdown-style,.terminal-menu)>summary::-webkit-details-marker,html body :is(#terminal-dropdown-style,.rfs-picker)>summary::-webkit-details-marker{display:none}html body :is(#terminal-dropdown-style,.terminal-menu)>summary::after,html body :is(#terminal-dropdown-style,.rfs-picker)>summary::after{content:none!important}html body .terminal-menu-arrow{display:none!important}

#tooltip[data-chart="upstream-chart"]{width:420px!important;max-width:calc(100vw - 24px)!important;box-sizing:border-box;}
#tooltip[data-chart="upstream-chart"] .terminal-hover-row{display:grid;grid-template-columns:10px minmax(0,1fr) auto;column-gap:7px;align-items:start;white-space:normal;margin:3px 0;}
#tooltip[data-chart="upstream-chart"] .terminal-hover-row>span{max-width:none;overflow:visible;text-overflow:clip;white-space:normal;overflow-wrap:anywhere;line-height:1.3;}
#tooltip[data-chart="upstream-chart"] .terminal-hover-row>strong{white-space:nowrap;padding-left:5px;margin-left:0;}
#tooltip[data-chart="upstream-chart"] .terminal-hover-row:not(:has(>i)){grid-template-columns:minmax(0,1fr) auto;}
#tooltip[data-chart="upstream-chart"] .hover-square{margin-top:3px;}
.shell>.workspace>.topbar{height:36.4px!important;min-height:36.4px!important;justify-content:flex-start;gap:18px!important;overflow:visible;position:relative;z-index:60;}
.terminal-search{position:relative;flex:1;max-width:580px;min-width:180px;}#terminal-search-input{width:100%;box-sizing:border-box;height:27px;padding:3px 30px 3px 10px;background:#111820;border:1px solid #4b5663;border-radius:2px;color:#f1f5f9;font:12px Arial;}#terminal-search-input::placeholder{color:#9ba8b8;opacity:1;}#terminal-search-results{position:absolute;left:0;right:0;top:31px;max-height:min(440px,70vh);overflow:auto;background:#111820;border:1px solid #586675;box-shadow:0 8px 22px #000b;padding:3px;z-index:100;}#terminal-search-results[hidden]{display:none;}#terminal-search-results button{display:block;width:100%;border:0;border-radius:0;background:transparent;color:#eaf0f6;text-align:left;padding:8px 9px;font:12px/1.4 Arial;cursor:pointer;}#terminal-search-results button small{display:block;color:#a6b4c5;font-size:10px;}#terminal-search-results button:hover,#terminal-search-results button[aria-selected="true"]{background:#26445c;color:#fff;}#terminal-search-results .search-empty{padding:10px;color:#a6b4c5;font-size:12px;}.search-target-flash{outline:1px solid #ff9d00;outline-offset:3px;scroll-margin-top:55px;}
@media(max-width:650px){.shell>.workspace>.topbar{height:auto!important;min-height:54px!important;flex-wrap:wrap;gap:4px!important;padding:5px 8px!important;}.terminal-search{flex-basis:100%;max-width:none;}.breadcrumb{font-size:10px;}}
/* Keep chart controls in a compact row above their plot. */
#transport-page{padding-top:8px!important}#transport-page .chart-heading{padding:6px 8px 0!important}#transport-page :is(.wheat-freight-controls,.transport-chart-tools,.sea-chart-tools){margin:5px 8px!important;padding:4px 0!important;gap:7px!important;justify-content:flex-start!important;align-items:center!important}
#transport-page :is(.wheat-freight-controls,.transport-range-controls,.transport-chart-tools) label{display:inline-flex!important;flex-direction:row!important;align-items:center!important;gap:5px!important;margin:0!important}
#transport-page :is(.chart-currency-control,.frequency-control,.chart-tools){display:flex;flex-direction:row;justify-content:flex-start!important;align-items:center!important;width:max-content;max-width:100%;height:auto!important;min-height:0!important;margin:4px 8px!important;padding:0!important;text-align:left!important;gap:6px!important}
#transport-page .chart-currency-control[hidden]{display:none!important}#transport-page :is(.chart-currency-control,.frequency-control) label{display:inline-flex;flex-direction:row;align-items:center;gap:5px;margin:0!important}
#transport-page .chart-unified-top{gap:7px;min-height:26px;margin:4px 0!important;padding:0!important}#transport-page .chart-box{margin-top:3px!important}#transport-page :is(.chart-foot,.wheat-freight-method){padding-top:5px!important;padding-bottom:5px!important;margin-top:3px!important;margin-bottom:5px!important}#wheat-freight-coverage{margin:4px 8px!important}
.unit-cost-box{margin:7px 0 12px;padding:5px 0;border-top:1px solid #263645;min-width:0}.unit-cost-box h3{margin:4px 0}.unit-cost-picker{display:flex;align-items:center;gap:5px 12px;flex-wrap:wrap;font-size:10px;margin:4px 0}.unit-cost-picker label{display:inline-flex;gap:4px;align-items:center}.unit-cost-picker input{width:13px;height:13px;min-height:0!important;accent-color:#ff9100}.unit-cost-box [id$="unit-chart"]{height:285px;min-width:0}.margin-local-frame{display:inline-flex!important;align-items:center;gap:6px;margin:5px 0;font-size:11px}
#pr-map,#pr-map .leaflet-grab,#pr-map .leaflet-dragging,#pr-map .leaflet-interactive,#pr-map .leaflet-marker-icon{cursor:default!important}#pr-map .leaflet-popup-content{font-size:12px;line-height:1.5}#pr-map .leaflet-tooltip{white-space:normal;max-width:360px}#pr-map .leaflet-tooltip small{display:block}

.unit-cost-frame{display:inline-flex;align-items:center;gap:6px;margin:5px 0;font-size:11px}.unit-cost-frame select{min-height:28px;max-width:150px;padding:3px 8px}

/* Bounded space between chart headings, controls, and drawing areas. */
html body :is(.chart-card,.primary-panel,.panel){padding-top:5px!important}
html body :is(.chart-card,.primary-panel,.panel)>:is(h2,h3,h4,.chart-heading){margin-top:0!important;margin-bottom:4px!important;padding-top:2px!important;padding-bottom:2px!important}
html body :is(.chart-card,.primary-panel,.panel) :is(.chart-unified-top,.rfs-chart-controls,.rfs-table-heading){margin-top:3px!important;margin-bottom:3px!important;row-gap:3px!important}
html body :is(.chart-card,.primary-panel,.panel)>.chart-box{margin-top:2px!important}
.unit-cost-box>.terminal-menu{display:inline-block;margin:3px 0;max-width:100%}
.unit-cost-picker.terminal-menu-panel{display:flex;flex-direction:column;align-items:stretch;flex-wrap:nowrap;min-width:250px;max-height:310px;overflow:auto;margin:0;padding:4px}
.unit-cost-picker.terminal-menu-panel label{padding:5px 7px;white-space:normal}
#ra-pork-market .terminal-menu{display:inline-block;margin:3px 0}
#ra-pork-market .terminal-menu-panel{display:flex;flex-direction:column;align-items:stretch;min-width:235px}
#ra-pork-market .terminal-menu-panel label{padding:5px 7px}

/* Terminal grid interval is measured in CSS pixels, independently of tick units. */
.js-plotly-plot .gridlayer .terminal-grid {
  fill: none;
  stroke: #383838;
  stroke-width: 1;
  stroke-dasharray: 2 3;
  pointer-events: none;
}
.js-plotly-plot .gridlayer g:has(> .terminal-grid) > path:not(.terminal-grid) {
  stroke: transparent !important;
}
.chart-theme-light .main-svg .gridlayer .terminal-grid { stroke: #d2d9e0 !important; }
html body select.terminal-fit-select:not([multiple]) {
  width: var(--terminal-selected-width) !important;
  min-width: 0 !important;
  max-width: 100% !important;
  flex: 0 1 auto !important;
}
html body :is(.terminal-menu, .rfs-picker) > summary {
  width: fit-content !important;
  min-width: 0 !important;
  max-width: 100% !important;
}
html body .terminal-retired-chart-action { display: none !important; }

/* Open native selectors use the same palette as the terminal's custom menus. */
@supports (appearance: base-select) and selector(select::picker(select)) {
 html body :is(#terminal-dropdown-style,select):not([multiple]):not([size]) {
  appearance:base-select!important;
 }
 html body select:not([multiple]):not([size])::picker-icon { display:none; }
 html body select:not([multiple]):not([size])::picker(select) {
  appearance:base-select!important;
  background:#121212;color:#ddd;color-scheme:dark;
  border:1px solid #777;border-top-color:#ff9100;border-radius:0;
  padding:4px;box-shadow:0 12px 26px #000b;
  max-height:min(420px,65dvh);max-width:min(650px,85vw);overflow:auto;
 }
 html body :is(#terminal-dropdown-style,select):not([multiple]):not([size]) option {
  min-height:29px;padding:6px 10px;background:#121212;color:#ddd;
  font:12px Consolas,monospace;white-space:normal;
 }
 html body :is(#terminal-dropdown-style,select):not([multiple]):not([size]) option:checked {
  background:#2c2215;color:#ffac35;box-shadow:inset 3px 0 #ff9100;
 }
 html body :is(#terminal-dropdown-style,select):not([multiple]):not([size]) option:is(:hover,:focus-visible) {
  background:#2b2b2b;color:#ffb84c;
 }
 html body select:not([multiple]):not([size]) option::checkmark { display:none; }
}
