/* Terminal grid: dense accounting tables, local to the stock workspace. */
#stocks-page .stock-terminal-grid{width:max-content;min-width:100%;max-width:none;border-collapse:separate!important;border-spacing:0!important;background:#030506!important;color:#dce4e9!important;font:11px/1.35 Arial,Helvetica,sans-serif!important;font-variant-numeric:tabular-nums lining-nums;table-layout:auto!important;border:1px solid #263039!important;border-radius:0!important;box-shadow:none!important;margin:0!important}
#stocks-page .stock-terminal-grid :is(th,td){box-sizing:border-box;min-width:88px;padding:5px 9px!important;white-space:nowrap;text-align:right!important;border:0!important;border-right:1px solid #1b252c!important;border-bottom:1px solid #1b252c!important;font:inherit!important;line-height:1.35!important;background:#030506!important;color:#dce4e9!important;border-radius:0!important;text-shadow:none!important;vertical-align:middle}
#stocks-page .stock-terminal-grid tr>:first-child{position:sticky;left:0;z-index:2;min-width:220px;max-width:330px;text-align:left!important;white-space:normal;background:#05090c!important;border-right:1px solid #30434e!important}
#stocks-page .stock-terminal-grid thead th{position:sticky;top:0;z-index:3;background:#070b0d!important;color:#ff9f25!important;font-weight:700!important;border-bottom:1px solid #9d621d!important;padding-top:7px!important;padding-bottom:7px!important}
#stocks-page .stock-terminal-grid thead tr>:first-child{z-index:4;color:#ffad42!important}
#stocks-page .stock-terminal-grid tbody tr:hover>:is(th,td){background:#101b23!important}
#stocks-page .stock-terminal-grid :is(.da-total,.nc-total,.raf-main,.total)>:is(th,td){font-weight:700!important;color:#f0f5f8!important;border-top:1px solid #384851!important;background:#091117!important}
#stocks-page .stock-terminal-grid :is(.raf-section-start,.raf-section,.da-section,.section,.stock-table-section)>:is(th,td){background:#00232e!important;color:#00c7ee!important;font-weight:700!important;text-transform:uppercase;letter-spacing:.12px;border-top:1px solid #0d4657!important}
#stocks-page .stock-terminal-grid :is(.da-percent,.raf-percent)>:is(th,td){color:#77caff!important;font-size:10px!important}
#stocks-page .stock-terminal-grid :is(.forecast-start,.nc-forecast-start){border-left:2px solid #ff940d!important}
#stocks-page .stock-terminal-grid :is(.da-history,.historical,.raf-history,.nc-history){color:#abb7bf!important}
#stocks-page .stock-terminal-grid :is(.da-terminal,.raf-average){background:#0c171c!important}
#stocks-page .stock-terminal-grid:not(.wacc-table) input{min-width:65px!important;width:100%!important;max-width:105px;height:22px!important;min-height:22px!important;padding:1px 4px!important;background:#2d1e08!important;color:#ffb352!important;border:1px solid #785017!important;border-radius:1px!important;text-align:right;font:inherit!important;font-variant-numeric:tabular-nums}
#stocks-page .stock-terminal-grid:not(.wacc-table) input:focus{outline:1px solid #ff9d24!important;outline-offset:0}
#stocks-page .stock-terminal-grid a{color:#70bde9!important}
#stocks-page :is(.da-ledger,.raf-table-wrap,.table-wrap,.nc-table-wrap,.dcf-horizontal-scroll){scrollbar-color:#8b5b24 #0c1115;scrollbar-width:thin}
#stocks-page .stock-summary{background:#05090c!important;border-color:#33424b!important;border-radius:0!important}
#stocks-page .stock-heading{background:#080f14!important;border-color:#263f4d!important}
#stocks-page .stock-scenario-controls{display:flex;align-items:center;justify-content:flex-end;gap:5px 10px;flex-wrap:wrap;margin-left:auto;max-width:100%;min-width:0;padding:2px 0}
#stocks-page .stock-scenario-controls label{display:flex!important;flex-direction:row!important;align-items:center;gap:5px!important;margin:0!important;color:#afbec9;font:10px/16px Arial,sans-serif;white-space:nowrap}
#stocks-page .stock-scenario-controls select{appearance:none!important;-webkit-appearance:none!important;box-sizing:border-box;min-width:142px!important;max-width:240px!important;height:25px!important;min-height:25px!important;margin:0!important;padding:2px 28px 2px 8px!important;border:1px solid #f7a026!important;border-radius:2px!important;background-color:#f49110!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='23'%3E%3Cpath fill='%237d858d' d='M0 0h24v23H0z'/%3E%3Cpath fill='none' stroke='%23111820' stroke-width='1.7' d='m7 9 5 5 5-5'/%3E%3C/svg%3E")!important;background-position:right center!important;background-repeat:no-repeat!important;color:#111416!important;box-shadow:none!important;font:700 11px/18px Arial,sans-serif!important;cursor:pointer}
#stocks-page .stock-scenario-controls select:focus{outline:2px solid #79bff0;outline-offset:2px}
#stocks-page .stock-scenario-controls select:disabled{opacity:.65;cursor:wait}
#stocks-page .stock-scenario-controls option{background:#131c24;color:#f1f4f6}
#stocks-page .stock-scenario-controls option:disabled{color:#6d7d89}
#stocks-page .stock-scenario-controls small{display:block;flex-basis:100%;text-align:right;color:#8fa3b1;font:9px/12px Arial,sans-serif}
@media(max-width:760px){#stocks-page .stock-scenario-controls{width:100%;justify-content:flex-start;margin-left:0}#stocks-page .stock-scenario-controls small{text-align:left}#stocks-page .stock-scenario-controls select{min-width:135px!important;max-width:185px!important}#stocks-page .stock-terminal-grid tr>:first-child{min-width:175px;max-width:225px}#stocks-page .stock-terminal-grid :is(th,td){min-width:78px;padding:4px 7px!important}}
#stocks-page .stock-terminal-scroll{overflow-x:auto!important;max-width:100%!important;min-width:0!important;overscroll-behavior-x:contain;scrollbar-color:#8b5b24 #0c1115;scrollbar-width:thin}
#stocks-page .stock-terminal-grid thead :is(th.historical,th.raf-history,th.nc-history,th.da-history){color:#ff9f25!important}
#stocks-page .stock-retro-hidden,#stocks-page .stock-retro-row-hidden{display:none!important}
.stock-dcf-comparison{margin:8px 0;padding:8px;border:1px solid #35414b;background:#080b0e}.stock-dcf-comparison h3{color:#ffad40;margin:0 0 6px}.stock-dcf-comparison .dcf-inputs{display:flex;gap:12px;flex-wrap:wrap}.stock-dcf-comparison input{width:90px;background:#121a22;color:#ffad40;border:1px solid #485766}.stock-dcf-comparison p{font-size:11px;color:#a8b5c1}

#stocks-page .oil-operating-start>*{border-top:2px solid #315675!important}

/* One accounting-table skin for every stock tab, matching Rusagro DCF. */
#stocks-page table:not(.wacc-table){border-collapse:separate!important;border-spacing:0!important;background:#030506!important;color:#dce4e9!important;font:11px/1.35 Arial,Helvetica,sans-serif!important;font-variant-numeric:tabular-nums lining-nums!important;border:1px solid #263039!important;border-radius:0!important;box-shadow:none!important}
#stocks-page table:not(.wacc-table) :is(th,td){font:inherit!important;line-height:1.35!important;padding:5px 9px!important;vertical-align:middle;text-align:right!important;border:0!important;border-right:1px solid #1b252c!important;border-bottom:1px solid #1b252c!important;background:#030506!important;color:#dce4e9!important;border-radius:0!important;text-shadow:none!important}
#stocks-page table:not(.wacc-table) tr>:first-child{text-align:left!important;background:#05090c!important;font-weight:400!important}
#stocks-page table:not(.wacc-table) thead :is(th,td){background:#070b0d!important;color:#ff9f25!important;font-weight:700!important;border-bottom:1px solid #9d621d!important}
#stocks-page table:not(.wacc-table) :is(.raf-main,.da-total,.nc-total,.total)>:is(th,td){font-weight:700!important;background:#091117!important;color:#f0f5f8!important;border-top:1px solid #384851!important}
#stocks-page table:not(.wacc-table) :is(.raf-percent,.da-percent)>:is(th,td){font-size:11px!important;color:#77caff!important}
#stocks-page table:not(.wacc-table) :is(.raf-section-start,.raf-section,.da-section,.section,.stock-table-section)>:is(th,td){background:#00232e!important;color:#00c7ee!important;font-weight:700!important;border-top:1px solid #0d4657!important}
#stocks-page .raf-segment-summary table tr.raf-section-start>:is(th,td){border-top:3px solid #778994!important}
#stocks-page table:not(.wacc-table) :is(input,select){font-family:Arial,Helvetica,sans-serif!important;font-size:11px!important;font-variant-numeric:tabular-nums!important}

/* The controls share a single line. Narrow screens can scroll the strip horizontally. */
#stocks-page [data-stock-navigation],
#stocks-page :is(.stock-heading,.stock-company-controls){
 display:flex;
 align-items:center;
 flex-wrap:nowrap;
 gap:6px;
 max-width:100%;
 min-width:0;
 overflow-x:auto;
 scrollbar-width:thin;
}
#stocks-page [data-stock-navigation] > .macro-toolbar,
#stocks-page [data-stock-navigation] > #stock-wacc-subnav.company-wacc-tabs{
 flex:0 0 auto;
 width:auto;
 margin:0!important;
 flex-wrap:nowrap;
}
#stocks-page .stock-heading{
 justify-content:flex-start;
}
#stocks-page .stock-heading > h2,
#stocks-page .stock-heading > .stock-header-actions,
#stocks-page .stock-heading > .stock-scenario-controls{
 flex:0 0 auto;
 white-space:nowrap;
}
#stocks-page .stock-heading > .stock-scenario-controls{
 width:auto;
 flex-wrap:nowrap;
 margin-left:auto;
}
#stocks-page :is(.stock-scenario-controls,.stock-header-actions,.stock-filters,.stock-actions){
 flex-wrap:nowrap;
}
#stocks-page .stock-company-controls label{
 flex-direction:row!important;
 align-items:center;
 white-space:nowrap;
}
#stocks-page .stock-scenario-controls small[data-scenario-note]{
 flex-basis:auto;
}
#stocks-page .stock-scenario-controls small[data-scenario-note]:empty{
 display:none;
}
#stocks-page #da-panel .da-method-stack{
 flex-direction:row;
 align-items:center;
 min-width:0;
}
#stocks-page [data-stock-navigation] > #stock-wacc-subnav[hidden]{
 display:none!important;
}
