/* Shared table layout. Data, sorting and calculator events remain in their modules. */
.rt-shell{--rt-gold:#e8cd88;--rt-text:#e2e9dc;--rt-muted:#b5c5af;--rt-line:#b3c29536;--rt-surface:#15291e;display:block;position:relative;min-width:0;max-width:100%;width:100%;box-sizing:border-box;margin:22px 0;border:1px solid var(--rt-line);border-radius:16px;background:var(--rt-surface);box-shadow:0 10px 24px #020b0620;}
.rt-shell.rt-overflow{border-color:#cabb785c;}
.rt-host{min-width:0!important;max-width:100%!important;box-sizing:border-box;}
:is(.gp-table-wrap,.aw-table-scroll,.cs-table-wrap,.fossil-table-wrap,.er-table-wrap,.wc-table-scroll,.schedwrap,.update-table).rt-host{overflow:visible!important;border:0!important;box-shadow:none!important;background:transparent!important;border-radius:0!important;}
:is(.artwrap,.article-layout,.paper,.resource-guide,.gp-panel,.aw-section):has(.rt-shell){min-width:0;max-width:100%;box-sizing:border-box;}
.rt-shell{overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;scrollbar-color:#9ba96b #102319;scrollbar-width:thin;}
.rt-shell:focus-visible{outline:2px solid var(--rt-gold);outline-offset:4px;}
body .rt-shell table.rt-table{display:table!important;border-collapse:separate!important;border-spacing:0!important;width:100%!important;min-width:0!important;max-width:none!important;table-layout:auto!important;margin:0!important;border:0!important;border-radius:0!important;overflow:visible!important;font-size:14px;line-height:1.55;font-variant-numeric:tabular-nums;background:transparent!important;color:var(--rt-text);}
body .rt-shell table.rt-table caption:not(.wc-sr-only){display:table-caption!important;caption-side:top;text-align:left;padding:16px 18px!important;margin:0!important;background:linear-gradient(115deg,#34432b,#1b3223)!important;color:var(--rt-gold);font-weight:700;font-size:15px;line-height:1.5;border:0!important;border-bottom:1px solid var(--rt-line)!important;border-radius:0!important;white-space:normal!important;}
body .rt-shell table.rt-table thead{display:table-header-group!important;position:static!important;width:auto!important;height:auto!important;clip-path:none!important;overflow:visible!important;}
body .rt-shell table.rt-table tbody{display:table-row-group!important;padding:0!important;}
body .rt-shell table.rt-table tfoot{display:table-footer-group!important;}
body .rt-shell table.rt-table tr{display:table-row!important;}
body .rt-shell table.rt-table tr>:is(th,td){display:table-cell!important;position:static;box-sizing:border-box;min-width:0!important;width:auto!important;max-width:none;white-space:normal!important;overflow-wrap:break-word;vertical-align:middle;padding:13px 14px!important;border:0!important;border-bottom:1px solid var(--rt-line)!important;background:transparent;line-height:1.6;}
body .rt-shell table.rt-table tr>:is(th,td)::before{content:none!important;}
body .rt-shell table.rt-table thead th{background:#283d2a!important;color:var(--rt-gold)!important;text-align:left;font-size:13px;font-weight:700;letter-spacing:0;text-transform:none;}
body .rt-shell table.rt-table tbody th{background:#172e21!important;color:var(--rt-gold)!important;text-align:left;}
body .rt-shell table.rt-table tbody tr:nth-child(even){background:#9cbc7210!important;}
body .rt-shell table.rt-table tbody tr:hover{background:#acc98016!important;}
body .rt-shell table.rt-table tbody tr:last-child>:is(td,th){border-bottom:0!important;}
body .rt-shell table.rt-table .pt-value{min-width:0!important;max-width:none!important;}
body .rt-shell table.rt-table :is(svg,.ico,.pt-icon){max-width:28px;max-height:28px;vertical-align:middle;}
body .rt-shell table.rt-table td img{max-width:44px;object-fit:contain;}
body .rt-shell table.rt-table .rt-group{background:#304129!important;color:var(--rt-gold)!important;font-weight:700;}
/* Numerical matrices retain column relationships, rather than hundreds of cards. */
body .rt-shell table.rt-scroll{min-width:var(--rt-min,640px)!important;}
body .rt-shell table.rt-scroll tr>:is(th,td):first-child:not([colspan]){position:sticky;left:0;z-index:2;min-width:var(--rt-first,110px)!important;width:var(--rt-first,110px)!important;max-width:180px!important;background:#1d3425!important;border-right:1px solid #c0bc7463!important;box-shadow:4px 0 8px #06130920;}
body .rt-shell table.rt-scroll thead th:first-child{z-index:3!important;background:#30422b!important;}
body .rt-shell table.rt-scroll .pt-value{display:inline!important;}
body .rt-shell table.rt-scroll td{text-align:right;}
body .rt-shell table.rt-scroll td.left,body .rt-shell table.rt-scroll td.gp-wrap{text-align:left;}
.rt-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:18px 0 -12px;padding:6px 2px;max-width:100%;box-sizing:border-box;font-size:12px;line-height:1.5;color:#c6d3bf;}
.rt-tools[hidden]{display:none!important;}
.rt-tools span{min-width:0;}
.rt-tool-buttons{display:flex;flex:none;gap:6px;}
.rt-tools .rt-move{display:grid;place-items:center;box-sizing:border-box;width:42px;height:42px;padding:0;border-radius:11px;border:1px solid #c6c28266;background:#223a29;color:#f2d992;font:700 19px/1 Arial,sans-serif;cursor:pointer;box-shadow:0 3px 8px #0002;}
.rt-tools .rt-move:disabled{opacity:.35;cursor:default;}
.rt-tools .rt-move:focus-visible{outline:2px solid #efd492;outline-offset:3px;}
@media(max-width:760px){
 .rt-shell{margin:18px 0;border-radius:14px;}
 body .rt-shell table.rt-table{font-size:14px!important;}
 body .rt-shell table.rt-table tr>:is(th,td){padding:11px 10px!important;}
 body .rt-shell table.rt-table thead th{font-size:12px!important;line-height:1.45;}
 body .rt-shell table.rt-compact{width:100%!important;table-layout:fixed!important;}
 body .rt-shell table.rt-compact tr>:is(th,td){overflow-wrap:anywhere;}
 body .rt-shell table.rt-compact td strong{white-space:normal!important;}
 body .rt-shell table.rt-compact .aw-muted{max-width:none!important;}
 .rt-shell[data-rt-shell=cards]{overflow:visible!important;border:0;background:transparent;box-shadow:none;}
 body .rt-shell table.rt-cards{display:block!important;width:100%!important;background:transparent!important;}
 body .rt-shell table.rt-cards caption{display:block!important;border-radius:13px!important;border:1px solid var(--rt-line)!important;margin:0 0 13px!important;}
 body .rt-shell table.rt-cards thead{position:absolute!important;display:table-header-group!important;clip-path:inset(50%)!important;width:1px!important;height:1px!important;overflow:hidden!important;white-space:nowrap!important;}
 body .rt-shell table.rt-cards thead th{padding:0!important;border:0!important;}
 body .rt-shell table.rt-cards tbody{display:grid!important;grid-template-columns:minmax(0,1fr);gap:12px;width:100%!important;}
 body .rt-shell table.rt-cards tbody tr{display:block!important;min-width:0!important;box-sizing:border-box;padding:0!important;border:1px solid var(--rt-line)!important;border-radius:14px!important;background:linear-gradient(135deg,#263b2a,#152c20)!important;box-shadow:0 8px 18px #030d0622;overflow:hidden!important;}
 body .rt-shell table.rt-cards tbody tr>:is(th,td){display:block!important;width:100%!important;margin:0!important;padding:13px 16px!important;text-align:left!important;font-size:15px!important;line-height:1.6!important;white-space:normal!important;overflow-wrap:anywhere;max-width:100%!important;background:transparent!important;}
 body .rt-shell table.rt-cards tbody tr>.rt-key{font-size:17px!important;font-weight:700!important;color:#f0d799!important;background:linear-gradient(110deg,#40503345,#152a2060)!important;border-bottom:1px solid #bac18b42!important;border-left:3px solid #c0af6c!important;padding-left:13px!important;}
 body .rt-shell table.rt-cards tbody tr>:is(th,td):not(.rt-key)::before{content:attr(data-rt-label)!important;display:block!important;margin:0 0 5px!important;max-width:none!important;font-size:11px!important;font-weight:700!important;line-height:1.45!important;text-transform:uppercase!important;letter-spacing:.045em!important;color:#b5cfa6!important;text-align:left!important;}
 body .rt-shell table.rt-cards tbody tr>:last-child{border-bottom:0!important;}
 body .rt-shell table.rt-cards .pt-value{display:block!important;width:100%!important;max-width:none!important;min-width:0!important;}
 body .rt-shell table.rt-cards a{white-space:normal!important;overflow-wrap:anywhere;text-underline-offset:4px;}
 body .rt-shell table.rt-cards td:nth-child(2){color:#ebd396;}
 body .rt-shell table.rt-cards .aw-muted{max-width:none!important;}
}
@media(prefers-reduced-motion:reduce){.rt-shell{scroll-behavior:auto;}}
@media print{
 .rt-tools{display:none!important;}.rt-shell{overflow:visible!important;box-shadow:none!important;border-color:#666;}
 body .rt-shell table.rt-table{display:table!important;min-width:0!important;width:100%!important;table-layout:fixed!important;background:white!important;color:#111!important;font-size:9pt!important;}
 body .rt-shell table.rt-table thead{display:table-header-group!important;position:static!important;clip-path:none!important;width:auto!important;height:auto!important;}
 body .rt-shell table.rt-table tbody{display:table-row-group!important;}body .rt-shell table.rt-table tr{display:table-row!important;}
 body .rt-shell table.rt-table tr>:is(th,td){display:table-cell!important;position:static!important;background:white!important;color:#111!important;font-size:9pt!important;padding:5px!important;width:auto!important;min-width:0!important;max-width:none!important;border:1px solid #bbb!important;}
 body .rt-shell table.rt-table tr>:is(th,td)::before{content:none!important;}
}
/* Preserve application-specific meaning: best values and selected star range. */
body .rt-shell table.rt-table td.wc-highest{background:#bba05116!important;color:#f4d391!important;font-weight:700;}
body .rt-shell table.rt-table td.wc-highest::before{content:'\2191'!important;display:inline!important;margin-right:5px;font-size:11px;color:#f4d391;}
body .rt-shell table.startab tr.inrange td{background:#33502b40!important;}
body .rt-shell table.startab tr.off{opacity:.42;}
body .rt-shell table.cmptab .win-a{color:#b4d994!important;}body .rt-shell table.cmptab .win-b{color:#f0af8c!important;}
@media screen and (max-width:760px){
 body .rt-shell table.rt-cards caption:not(.wc-sr-only){display:block!important;box-sizing:border-box!important;width:100%!important;max-width:100%!important;margin:0 0 13px!important;border:1px solid var(--rt-line)!important;border-radius:13px!important;}
}
