/* ============================================================
   Etappe cards — moderne weergave voor etappeblokken
   ============================================================ */

.ec-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    overflow: hidden;
    max-width: 100%;
    margin-bottom: 8px;
}

.ec-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f0a32e;
    color: #fff;
    padding: 10px 16px;
    font-family: Oswald, sans-serif;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0.03em;
}

.ec-card-header a {
    color: rgba(255,255,255,0.85);
    font-size: 12px;
    font-family: "Open Sans", sans-serif;
    font-weight: 400;
    white-space: nowrap;
}

.ec-card-header a:hover {
    color: #fff;
    text-decoration: underline;
}

.ec-card-title {
    font-size: 13px;
    font-family: "Open Sans", sans-serif;
    font-weight: 600;
    color: rgba(255,255,255,0.80);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 2px;
}

.ec-card-subtitle {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 18px;
    font-family: Oswald, sans-serif;
    font-weight: 400;
    color: #fff;
    line-height: 1.1;
}

.ec-card-body {
    padding: 0;
}

.ec-card-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-bottom: 1px solid #f0ece4;
    font-size: 14px;
    font-weight: 300;
}

.ec-card-row:last-child {
    border-bottom: none;
}

.ec-card-row:hover {
    background: #fdf8f0;
}

.ec-card-icon {
    flex-shrink: 0;
    width: 26px;
    text-align: center;
}

.ec-card-icon img {
    width: 20px;
    vertical-align: middle;
}

.ec-card-name {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 2px;
    min-width: 0;
}

.ec-col-spacer {
    flex-shrink: 0;
    width: 6px;
}

.ec-col-rugnr {
    font-size: 11px;
    color: #bbb;
    font-weight: 300;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}

.ec-card-name img.vlag + .ec-col-rugnr {
    margin-left: 2px;
}

.ec-vlag-placeholder {
    flex-shrink: 0;
    width: 20px;
}

.ec-card-name img.vlag {
    width: 20px;
    border: none;
    display: block;
    flex-shrink: 0;
}

.ec-renner-tekst {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.ec-renner-naam, .ec-overige-naam, a.ec-renner-naam {
    color: #222;
    font-weight: 400;
    text-decoration: none;
}
a.ec-renner-naam {
    font-weight: 700;
}

.ec-renner-naam:hover,
a.ec-renner-naam:hover {
    text-decoration: underline;
    color: #222;
}

.ec-card-row--uitgevallen .ec-renner-naam,
.ec-card-row--uitgevallen .ec-col-rugnr {
    color: #999;
    text-decoration: line-through double;
}

.ec-renner-ploeg {
    font-size: 11px;
    color: #444;
    font-weight: 300;
}

.ec-card-info {
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.9;
    color: #444;
    border-bottom: 1px solid #f0ece4;
}

.ec-card-info a {
    color: #f0a32e;
}

.ec-card-info a:hover {
    text-decoration: underline;
}

.ec-card-footer {
    padding: 8px 14px;
    font-size: 11px;
    color: #999;
    background: #fafaf8;
}

.ec-card-footer--totaal {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    color: #444;
    font-size: 14px;
}

.ec-card-footer a {
    color: #bbb;
}

.ec-card-uitvallers {
    border-top: 1px solid #f0ece4;
    margin-top: 12px;
    background: #fff;
}

.ec-uitvallers-titel {
    padding: 6px 14px 2px;
    font-size: 11px;
    font-weight: 600;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: solid 1px #f0ece4;
}

.ec-card-uitvallers .ec-card-row:hover {
    background: #fdf8f0;
}

.ec-card-row--clickable {
    cursor: pointer;
}

.ec-subleague-row {
    justify-content: space-between;
}

.ec-subleague-count {
    color: #999;
    font-size: 12px;
    white-space: nowrap;
}

.ec-rang-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ec-rang-pos {
    flex-shrink: 0;
    width: 28px;
    text-align: center;
    font-size: 12px;
    color: #666;
    font-weight: 300;
}

.ec-rang-naam {
    flex: 1;
    min-width: 0;
    font-size: 14px;
}

.ec-col-actief {
    flex-shrink: 0;
    width: 28px;
    text-align: center;
}

.ec-rang-score {
    flex-shrink: 0;
    font-weight: 600;
    font-size: 14px;
    color: #444;
    min-width: 40px;
    text-align: right;
}
.ec-card-row:nth-child(odd) {
    background: #ffffff;
}

.ec-card-row:nth-child(even) {
    background: #f3f3f3;
}
.ec-mijnteam, tr.ec-mijnteam td {
    background: #fdf4e6 !important;
}

.ec-mijnteam:hover {
    background: #fbecd4 !important;
}

/* Sticky kolommen voor brede tabellen (punten per renner per etappe) */
thead .sticky-col-1, thead .sticky-col-2, thead .sticky-col-3,
thead .sticky-col-last, thead .sticky-col-r2, thead .sticky-col-r3, thead .sticky-col-r4, thead .sticky-col-r5 {
    background: #eee;
}
.sticky-col-1 {
    position: sticky;
    left: 0;
    background: #fff;
    z-index: 1;
}
.sticky-col-2 {
    position: sticky;
    left: 33px;
    background: #fff;
    z-index: 1;
}
.sticky-col-3 {
    position: sticky;
    left: 67px;
    background: #fff;
    z-index: 1;
}
.sticky-col-4 {
    position: sticky;
    left: 231px;
    background: #fff;
    z-index: 1;
}
.sticky-col-5 {
    position: sticky;
    left: 261px;
    background: #fff;
    z-index: 1;
}
.sticky-col-last {
    position: sticky;
    right: 0;
    background: #fff;
    z-index: 1;
}
.sticky-col-1, .sticky-col-2, .sticky-col-3, .sticky-col-4, .sticky-col-5,
.sticky-col-last, .sticky-col-r2, .sticky-col-r3, .sticky-col-r4, .sticky-col-r5 {
    border: solid 1px #bbb;
}
.sticky-col-r2 {
    position: sticky;
    right: 46px;
    background: #fff;
    z-index: 1;
}
.sticky-col-r3 {
    position: sticky;
    right: 92px;
    background: #fff;
    z-index: 1;
}
.sticky-col-r4 {
    position: sticky;
    right: 138px;
    background: #fff;
    z-index: 1;
}
.sticky-col-r5 {
    position: sticky;
    right: 184px;
    background: #fff;
    z-index: 1;
}
tr.mijnteam .sticky-col-1,
tr.mijnteam .sticky-col-2,
tr.mijnteam .sticky-col-3,
tr.mijnteam .sticky-col-4,
tr.mijnteam .sticky-col-5,
tr.mijnteam .sticky-col-last,
tr.mijnteam .sticky-col-r2,
tr.mijnteam .sticky-col-r3,
tr.mijnteam .sticky-col-r4,
tr.mijnteam .sticky-col-r5 {
    background: #fdf4e6;
}
tr.mijnteam:hover .sticky-col-1,
tr.mijnteam:hover .sticky-col-2,
tr.mijnteam:hover .sticky-col-3,
tr.mijnteam:hover .sticky-col-4,
tr.mijnteam:hover .sticky-col-5,
tr.mijnteam:hover .sticky-col-last,
tr.mijnteam:hover .sticky-col-r2,
tr.mijnteam:hover .sticky-col-r3,
tr.mijnteam:hover .sticky-col-r4,
tr.mijnteam:hover .sticky-col-r5 {
    background: #fbecd4;
}

.ec-card-body table.data td {
    padding: 3px 6px;
}
.ec-bold
{
	font-weight: bold;
}
.ec-row-bottom
{
	border-bottom-color: #999;
}
/* Manager-specifieke accentkleuren */
body.manager-giro .ec-card-header {
    background: #e95380;
}

/* Variant: etappe vandaag — accentkleur iets anders */
.ec-card--vandaag .ec-card-header {
    background: #5c617b;
}

@media screen and (max-width: 768px) {
    .ec-rang-score--mobiel-verborgen,
    .ec-hide-mobile {
        display: none !important;
    }
	.ec-sub-teamnaam
	{
		min-width: 200px;
	}
}

@media screen and (min-width: 769px) {
    .ec-hide-desktop {
        display: none !important;
    }
	.ec-sub-teamnaam
	{
		min-width: 250px;
	}
	
}
