﻿/*.coverage-wrapper {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    background: #fff;
}*/

/* Fix height alignment: use table layout */
/*.coverage-row {
    display: table;
    width: 100%;
    table-layout: fixed;
}*/

    /* Each cell behaves like table-cell on desktop */
    /*.coverage-row > div {
        display: table-cell;
        vertical-align: middle;
        padding: 6px 10px;
    }*/

/* Label style */
/*.coverage-label {
    font-weight: bold;
    white-space: nowrap;
}*/

/* Input container must be relative for dropdown */
/*.coverage-input {
    position: relative;
}*/

/* Status style */
/*.coverage-status {
    text-align: center;
    min-width: 120px;
    font-size: 14px;
    line-height: 20px;
}*/

/* Responsive: stack on mobile */
/*@media (max-width: 767px) {

    .coverage-row {
        display: block;
    }

        .coverage-row > div {
            display: block;
            width: 100% !important;
        }

    .coverage-status {
        margin-top: 8px;
    }
}*/


.coverage-wrapper {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    background: #fff;
}

/* DESKTOP: inline + vertical center */
.coverage-row {
    display: flex;
    align-items: center; /* ← vertical centering FIX */
    flex-wrap: wrap;
}

    /* Override Bootstrap floats so flex can control alignment */
    .coverage-row > [class*="col-"] {
        float: none !important;
        padding: 6px 10px;
    }

/* Center image vertically + horizontally */
.coverage-label {
    display: flex;
    align-items: center; /* vertical center inside its column */
    justify-content: center; /* horizontal center */
}

/* Input dropdown anchor */
.coverage-input {
    position: relative;
}

/* Status display */
.coverage-status {
    text-align: center;
    min-width: 120px;
    font-size: 14px;
}

/* MOBILE: stack everything top → bottom */
@media (max-width: 767px) {

    .coverage-row {
        flex-direction: column;
        align-items: stretch;
    }

        .coverage-row > [class*="col-"] {
            width: 100% !important;
            padding: 8px 0;
        }

    .coverage-status {
        margin-top: 10px;
    }

    .coverage-label img {
        max-width: 50%; /* smaller width on mobile */
        height: auto;
        margin: 0 auto; /* center it */
        display: block;
    }
}


.coverage-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    gap: 6px;
    white-space: nowrap;
}

.coverage-status-covered {
    background-color: #4caf50; /* green */
    color: white;
}

.coverage-status-notcovered {
    background-color: #d9534f; /* red (Bootstrap danger) */
    color: white;
}

.coverage-status-badge i {
    font-size: 14px;
}


.clear-input-btn {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #aaa;
    cursor: pointer;
    user-select: none;
}

    .clear-input-btn:hover {
        color: #888;
    }


