/* SUPERSTATS /STILLING/ – fælles stil v2
   Inspireret af /kort/: kompakt thead, afdæmpet zebra, note, footer og rundinger.
   Alle regler er afgrænset til .ss-stilling. */
.ss-stilling{width:100%;margin:0 0 16px;font:13px/18px Arial,Helvetica,sans-serif;color:#10315b}
.ss-stilling *{box-sizing:border-box}
.ss-stilling .ss-panel{overflow:hidden;border:1px solid #d9e1e6;border-radius:6px 6px 14px 14px;background:#fff}
.ss-stilling .ss-heading{display:block!important;width:100%!important;box-sizing:border-box!important;margin:0!important;padding:9px 12px!important;background:#104470!important;color:#fff!important;border:0!important;border-radius:6px 6px 0 0!important;font:700 18px/22px Arial,Helvetica,sans-serif!important;text-align:left!important;text-transform:uppercase!important}
.ss-stilling .ss-intro{padding:8px 10px;background:#f3f5f6;color:#5f6f7a;font:12px/18px Arial,Helvetica,sans-serif;border-bottom:1px solid #e1e6e9}
.ss-stilling .ss-table{width:100%;table-layout:fixed;border-collapse:collapse;border-spacing:0;margin:0;font:13px/18px Arial,Helvetica,sans-serif}
.ss-stilling .ss-table thead th{height:23px;padding:2px 4px;background:#cfe5f2;color:#10315b;border:0;border-bottom:1px solid #9db6c9;font:600 13px/18px Arial,Helvetica,sans-serif;text-align:center;vertical-align:middle;white-space:nowrap}
.ss-stilling .ss-table tbody td{padding:7px 4px;border:0;border-bottom:1px solid #e7ecef;text-align:center;vertical-align:middle;font-weight:400}
.ss-stilling .ss-table tbody tr:nth-child(even) td{background:#f7f9fa}
.ss-stilling .ss-table th.ss-club-head{text-align:left;padding-left:28px}
.ss-stilling .ss-table td.ss-club-cell{text-align:left}
.ss-stilling .ss-club{display:grid;grid-template-columns:18px minmax(0,1fr);gap:6px;align-items:center;min-width:0}
.ss-stilling .ss-club img{position:static;float:none;display:block;width:18px;height:18px;object-fit:contain;margin:0}
.ss-stilling .ss-club span{min-width:0;overflow-wrap:break-word}
.ss-stilling .ss-rank{color:#54718b}
.ss-stilling .ss-rank.ss-gold{color:#a67b00;font-weight:600}
.ss-stilling .ss-rank.ss-silver{color:#71818d;font-weight:600}
.ss-stilling .ss-rank.ss-bronze{color:#a46841;font-weight:600}
.ss-stilling .ss-points{color:#104470;font-weight:600}
.ss-stilling .ss-table tbody tr.ss-current td{background:#fff8dc!important}
.ss-stilling .ss-table tbody tr.ss-current td:first-child{box-shadow:inset 4px 0 0 #f2b705}
/* Fælles afslutning: /kort/ bruger 3px, og vi følger denne reference. */
.ss-stilling .ss-bottom-line{height:3px;min-height:3px;background:#104470;clear:both}
.ss-stilling .ss-footnote{padding:8px 10px;background:#f3f5f6;border-top:1px solid #e1e6e9;color:#5f6f7a;font:12px/18px Arial,Helvetica,sans-serif}
.ss-stilling .ss-footnote p{margin:0}
.ss-stilling .ss-footnote p+p{margin-top:3px}
.ss-stilling .ss-footer{padding:10px 18px;background:#f7f9fa;border-top:1px solid #e1e6e9;font:12px/18px Arial,Helvetica,sans-serif}
.ss-stilling .ss-footer-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:29px}
.ss-stilling .ss-links{display:flex;align-items:center;flex-wrap:wrap;gap:6px 18px;margin:0;padding:0}
.ss-stilling .ss-footnote a,.ss-stilling .ss-links a{color:#104470;text-decoration:none;font-weight:400}
.ss-stilling .ss-footnote a:hover,.ss-stilling .ss-links a:hover{text-decoration:underline}
.ss-stilling .ss-footer-select{margin-left:auto;flex:none}
.ss-stilling .ss-footer-select select{height:29px;padding:4px 7px;border:1px solid #b8c2c9;border-radius:3px;background:#fff;color:#10315b;font:12px/18px Arial,Helvetica,sans-serif}
@media(max-width:700px){.ss-stilling .ss-heading{padding:8px 10px!important;font-size:16px!important;line-height:20px!important}.ss-stilling .ss-table thead th{font-size:11px;line-height:16px;padding:3px 2px}.ss-stilling .ss-table tbody td{font-size:11px;padding:6px 2px}.ss-stilling .ss-table th.ss-club-head{padding-left:24px}.ss-stilling .ss-club{grid-template-columns:16px minmax(0,1fr);gap:4px}.ss-stilling .ss-club img{width:16px;height:16px}.ss-stilling .ss-footer{padding:9px 12px}.ss-stilling .ss-footer-controls{flex-wrap:wrap}.ss-stilling .ss-footer-select select{font-size:16px}}

/* /stilling/ – klub-links, pointkolonne, klubantal og bundseparator */
.ss-stilling .ss-club a{color:#10315b;text-decoration:none;font-weight:400;min-width:0;overflow-wrap:break-word}
.ss-stilling .ss-club a:hover{color:#104470;text-decoration:underline}
.ss-stilling .ss-table tbody td.ss-points{background-color:#edf4f9;color:#104470;font-weight:600}
.ss-stilling .ss-table tbody tr:nth-child(even) td.ss-points{background-color:#e6f0f7}
.ss-stilling .ss-club-count{margin:0 0 4px;color:#5f6f7a;font-size:12px;line-height:18px}
.ss-stilling .ss-links{gap:6px 10px}
.ss-stilling .ss-link-separator{color:#9ca8b0;font-size:12px;line-height:18px}

/* Overskriftens højrestillede toptal – fælles /stilling/-standard. */
.ss-stilling .ss-heading{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important}
.ss-stilling .ss-heading-title{min-width:0}
.ss-stilling .ss-heading-stat{flex:0 0 auto;color:#d9e8f4;font:400 12px/18px Arial,Helvetica,sans-serif;text-transform:none;white-space:nowrap}
@media(max-width:700px){.ss-stilling .ss-heading{gap:8px!important}.ss-stilling .ss-heading-stat{font-size:11px;line-height:16px}}

/* /stilling/ – fælles valg af pointberegning */
.ss-stilling .ss-mode-nav{display:flex;gap:6px;padding:8px 10px;background:#f7f9fa;border-bottom:1px solid #d9e1e6}
.ss-stilling .ss-mode-nav a{padding:5px 12px;border:1px solid #d8e3ec;border-radius:3px;background:#fff;color:#104470;text-decoration:none;font:12px/18px Arial,Helvetica,sans-serif}
.ss-stilling .ss-mode-nav a.active{background:#104470;border-color:#104470;color:#fff}

/* /stilling/fra-til – intervalvælger i fælles bundsektion */
.ss-stilling .ss-range-form{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:6px;margin:9px 0 0;padding:9px 0 0;border-top:1px solid #e1e6e9;font:12px/18px Arial,Helvetica,sans-serif}
.ss-stilling .ss-range-form label{margin:0 2px 0 8px;color:#5f6f7a}
.ss-stilling .ss-range-form select{height:29px;min-height:29px;padding:4px 6px;border:1px solid #b8c2c9;border-radius:3px;background:#fff;color:#10315b;font:12px/18px Arial,Helvetica,sans-serif}
.ss-stilling .ss-range-form select[name^="runde"]{width:55px}
.ss-stilling .ss-range-form button{height:29px;margin-left:6px;padding:4px 11px;border:1px solid #104470;border-radius:3px;background:#104470;color:#fff;cursor:pointer;font:12px/18px Arial,Helvetica,sans-serif}
.ss-stilling .ss-range-form button:hover{background:#0c3558}
@media(max-width:700px){.ss-stilling .ss-range-form{justify-content:flex-start}.ss-stilling .ss-range-form select{font-size:16px}.ss-stilling .ss-range-form label{margin-left:2px}.ss-stilling-range .ss-heading{flex-wrap:wrap!important}.ss-stilling-range .ss-heading-stat{margin-left:auto}}

/* Øst/Vest – diskrete klubstatusser (O), (M), (P), (MP) */
.ss-stilling .ss-status-badge{color:#9aa2a8;font:400 11px/18px Arial,Helvetica,sans-serif;white-space:nowrap;margin-left:4px}

/* Seneste kampe – fælles CSS-prikker på stillingssider */
.ss-stilling .ss-table td.stilling_seneste_dot{white-space:nowrap}
.ss-stilling .ss-result-dot{display:inline-block!important;width:10px!important;height:10px!important;min-width:10px!important;min-height:10px!important;border-radius:50%!important;vertical-align:middle!important;margin:0 1px!important;padding:0!important;border:0!important;float:none!important;line-height:10px!important}
.ss-stilling .ss-result-dot-w{background:#29963e!important}
.ss-stilling .ss-result-dot-d{background:#f7b47c!important}
.ss-stilling .ss-result-dot-l{background:#e34248!important}

/* Halvtid/fuldtid: læsbar skrift; kun de brede tabeller kan rulles på små skærme */
.ss-stilling-hf .ss-hf-scroll{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.ss-stilling-hf .ss-hf-table{table-layout:fixed;width:100%;min-width:720px}
.ss-stilling-hf .ss-hf-clubcol{width:25%}
.ss-stilling-hf .ss-hf-rankcol{width:4%}
.ss-stilling-hf .ss-hf-kcol{width:5%}
.ss-stilling-hf .ss-hf-table thead th{padding:4px 2px;font-size:13px;line-height:18px}
.ss-stilling-hf .ss-hf-table tbody td{padding:7px 2px;font-size:13px;line-height:18px}
.ss-stilling-hf .ss-hf-table .ss-club{gap:4px;grid-template-columns:17px minmax(0,1fr)}
.ss-stilling-hf .ss-hf-table .ss-club img{width:17px;height:17px}
.ss-stilling-hf .ss-hf-table th.ss-club-head{padding-left:22px}
@media(max-width:700px){
.ss-stilling-hf .ss-hf-table{min-width:720px}
.ss-stilling-hf .ss-hf-table thead th{font-size:12px;padding:4px 2px}
.ss-stilling-hf .ss-hf-table tbody td{font-size:12px;padding:6px 2px}
.ss-stilling-hf .ss-hf-table .ss-club{grid-template-columns:16px minmax(0,1fr);gap:3px}
.ss-stilling-hf .ss-hf-table .ss-club img{width:16px;height:16px}
.ss-stilling-hf .ss-hf-table th.ss-club-head{padding-left:20px}
}

/* v12: Forkortede klubnavne og tættere kolonner på halvtid/fuldtid */
.ss-stilling-hf .ss-hf-clubcol{width:14%}
.ss-stilling-hf .ss-hf-rankcol{width:3%}
.ss-stilling-hf .ss-hf-kcol{width:4%}
.ss-stilling-hf .ss-hf-table{min-width:0}
.ss-stilling-hf .ss-hf-table th.ss-club-head{padding-left:6px}
.ss-stilling-hf .ss-hf-table .ss-club{gap:3px;grid-template-columns:17px minmax(0,1fr)}
.ss-stilling-hf .ss-hf-table .ss-club span{overflow-wrap:normal;white-space:nowrap}
.ss-stilling-hf .ss-hf-table tbody td{padding-left:1px;padding-right:1px}
@media(max-width:700px){
.ss-stilling-hf .ss-hf-table{min-width:650px}
.ss-stilling-hf .ss-hf-table th.ss-club-head{padding-left:4px}
.ss-stilling-hf .ss-hf-table .ss-club{grid-template-columns:16px minmax(0,1fr);gap:2px}
}

/* v13: Mere luft omkring placering, logo og klubforkortelse */
.ss-stilling-hf .ss-hf-table tbody td.ss-club-cell{padding-left:8px}
.ss-stilling-hf .ss-hf-table tbody td.ss-rank{padding-left:6px}
.ss-stilling-hf .ss-hf-table th.ss-club-head{padding-left:12px}
@media(max-width:700px){
.ss-stilling-hf .ss-hf-table tbody td.ss-club-cell{padding-left:6px}
.ss-stilling-hf .ss-hf-table tbody td.ss-rank{padding-left:4px}
.ss-stilling-hf .ss-hf-table th.ss-club-head{padding-left:10px}
}

/* v14: Den sidste tabel og bundsektionen er ét samlet panel. */
.ss-stilling-hf .ss-panel{border-radius:6px 6px 6px 6px}
.ss-stilling-hf .ss-bottom-line{border-radius:0!important}
.ss-stilling-hf .ss-footnote{border-top:0}
.ss-stilling-hf .ss-footer{border-radius:0 0 6px 6px}
