.elc-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 20px 22px;
    /* Breedte aanpasbaar via Extra CSS, bv.: :root { --elc-card-width: 340px; } */
    width: 100%;
    max-width: var(--elc-card-width, 300px);
    display: inline-block;
    flex: 0 0 auto;
    align-self: flex-start;
    justify-self: start;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1d2327;
    box-sizing: border-box;
}

.elc-card-more-body {
    padding-top: 12px;
}

.elc-card * {
    box-sizing: border-box;
}

.elc-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #3a3f47;
}

.elc-card-title {
    font-size: 17px;
    font-weight: 700;
    color: #1d2327;
}

.elc-card-info-wrap {
    position: relative;
    display: inline-block;
    line-height: 0;
}

.elc-card-info {
    width: 20px;
    height: 20px;
    line-height: 18px;
    border-radius: 50%;
    border: 1px solid #c7cad1;
    background: #f7f7f7;
    color: #6a6f78;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

.elc-card-info:hover {
    background: #eceef0;
}

/* Popover zweeft onder de "?"-knop: verschijnt bij hover (muis), bij
   focus (toetsenbord) en via .is-open (klik/touch, geregeld in card.js). */
.elc-card-info-popover {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 260px;
    max-width: min(260px, calc(100vw - 32px));
    background: #ffffff;
    border: 1px solid #eceef0;
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
    padding: 12px 14px;
    font-size: 12px;
    line-height: 1.5;
    color: #3a3f47;
    text-align: left;
    z-index: 30;
}

.elc-card-info-wrap:hover .elc-card-info-popover,
.elc-card-info-wrap:focus-within .elc-card-info-popover,
.elc-card-info-wrap.is-open .elc-card-info-popover {
    display: block;
}

.elc-card-info-popover::before {
    content: "";
    position: absolute;
    top: -6px;
    right: 8px;
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-left: 1px solid #eceef0;
    border-top: 1px solid #eceef0;
    transform: rotate(45deg);
}

.elc-card-info-popover strong {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    color: #1d2327;
}

.elc-card-info-popover p {
    margin: 0;
}

.elc-card-badge-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

.elc-card-badge {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 21px;
    font-weight: 700;
    background: #9aa0a8; /* overschreven per status via inline style */
}

.elc-card-badge-text {
    min-width: 0;
}

.elc-card-sub {
    font-size: 11.5px;
    color: #8a8f98;
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.elc-card-status {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 2px;
}

.elc-card-desc {
    font-size: 13px;
    color: #4a4f57;
    line-height: 1.4;
}

.elc-card-updated {
    font-size: 11px;
    color: #b0b4bb;
    text-align: center;
    margin-top: 2px;
}

.elc-card-divider {
    border: none;
    border-top: 1px solid #eceef0;
    margin: 16px 0;
}

.elc-card-mini-wrap {
    position: relative;
}

.elc-card-mini-days {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 600;
    color: #8a8f98;
    margin-bottom: 4px;
}

.elc-card-mini-chart {
    width: 100%;
    display: block;
}

.elc-card-mini-legend {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    font-size: 11px;
    color: #8a8f98;
    margin-top: 4px;
}

.elc-card-mini-minmax {
    color: #8a8f98;
}

.elc-card-mini-today {
    display: flex;
    align-items: center;
    gap: 6px;
}

.elc-card-legend-dot {
    width: 9px;
    height: 9px;
    border-radius: 2px;
    background: #fde9b0;
    display: inline-block;
}

.elc-card-stats-row {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    gap: 8px;
}

.elc-card-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.elc-card-stat-label {
    font-size: 11px;
    color: #8a8f98;
    margin-bottom: 2px;
    text-align: center;
}

.elc-card-stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #1d2327;
}

.elc-card-link-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6em;
    margin: 14px 0 0;
    padding: 10px 16px;
    border-radius: 999px;
    background: #f0f1f3;
    color: #222222;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    transition: background 0.15s ease;
}

.elc-card-link-btn:hover,
.elc-card-link-btn:focus-visible {
    background: #e4e6e9;
    color: #222222;
    text-decoration: none;
}

.elc-card-footer {
    text-align: center;
    font-size: 11px;
    color: #b0b4bb;
}
