#tv-rankings-panel { color: #103d44; margin-top: 1rem; }
#tv-rankings-panel[hidden], .rk-filters label[hidden] { display:none!important }
#tv-rankings-panel h2 { margin:1.2rem 0 .65rem; font-size:1.3rem; }
.rk-filters {display:flex;flex-wrap:wrap;align-items:end;gap:.7rem;padding:1rem;background:#fff;border:1px solid #cce1da;border-radius:12px}
.rk-filters label {display:grid;gap:.3rem;font-size:.8rem;font-weight:650}
.rk-filters :is(input,select,button) {min-height:2.45rem;border:1px solid #afd4c7;border-radius:7px;padding:0 .55rem;background:#fff;color:inherit;font:inherit}
.rk-filters button {cursor:pointer;background:#08765c;color:white;font-weight:700}
#tv-rankings-panel :is([data-rk=stamp],[data-rk=message],.rk-legend){font-size:.83rem;color:#466668}
.rk-boards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,27rem),1fr));gap:.9rem;align-items:start}
.rk-board,.rk-matrix,.rk-team{min-width:0;border:1px solid #cbded9;border-radius:10px;background:#fff;overflow:hidden}
.rk-board h3,.rk-matrix h3{margin:0;padding:.8rem 1rem;background:#0c4d50;color:#fff;font-size:1rem}
.rk-sales h3 {background:#51456f}
.rk-board footer,.rk-board>p {padding:.7rem .8rem;font-size:.82rem}
.rk-scroll{overflow:auto;max-width:100%}
#tv-rankings-panel table {width:100%;border-collapse:separate;border-spacing:0;font-size:.83rem;line-height:1.35;font-variant-numeric:tabular-nums}
#tv-rankings-panel :is(th,td){padding:.38rem .55rem;border-bottom:1px solid #e1ebe8;text-align:right;vertical-align:middle}
#tv-rankings-panel thead th{background:#e2eeeb;color:#244a4d}
#tv-rankings-panel th[scope=row],.rk-board thead th:nth-child(2){text-align:left}
.rk-board th small{display:block;font-weight:400;color:#56716f}
.rk-position{display:inline-grid;place-items:center;min-width:1.65rem;min-height:1.65rem;border-radius:50%;font-weight:700}
.rk-p1{background:#f6dd8a;color:#493906}.rk-p2{background:#e0e5eb;color:#39414a}.rk-p3{background:#ead1be;color:#663819}
.rk-team,.rk-matrix,.rk-legend{margin:.65rem 0}.rk-team summary,.rk-legend summary{padding:.65rem;cursor:pointer;font-weight:700}.rk-team>div{padding:.65rem}
.rk-matrix td,.rk-matrix thead th{min-width:3.65rem}
.rk-matrix tbody th[scope=row],.rk-matrix thead th:first-child[rowspan]{position:sticky;left:0;background:#fff;max-width:15rem;min-width:10.5rem}
.rk-matrix .rk-phase th{background:#e2efeb;text-align:left!important;color:#184849}
.rk-matrix tr:nth-child(even):not(.rk-phase) td{background:#f6f9f8}
.rk-matrix td:nth-child(odd){color:#006858}
.rk-legend p{margin:.5rem .65rem}
.rk-mobile{display:none}
@media(max-width:700px){
  .rk-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:.65rem}
  .rk-filters :is(select,input){width:100%;min-width:0}
  #tv-rankings-panel .rk-board :is(td,th){padding:.32rem .25rem}
  .rk-boards{grid-template-columns:1fr}
  .rk-wide{display:none}.rk-mobile{display:block}
  .rk-mobile>details{margin:.4rem 0;background:#fff;border:1px solid #ccdeda;border-radius:7px;padding:.5rem}
  .rk-mobile summary{cursor:pointer;font-weight:650}
}
