/* VPIK inspection offices — card layout */
.vpik-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.vpik-card {
    background: #fff;
    border: 1px solid #e0e4e8;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.vpik-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.vpik-card__header {
    background: #eef0f3 !important;
    color: #2d5ca6 !important;
    padding: 14px 20px !important;
    font-family: ProbaPro, sans-serif !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    border-bottom: 3px solid #2d5ca6 !important;
}

.vpik-card__body {
    padding: 16px 20px;
}

.vpik-card__row {
    display: flex;
    flex-direction: column;
    padding: 8px 0;
    border-bottom: 1px solid #eef0f3;
}

.vpik-card__row:last-child {
    border-bottom: none;
}

.vpik-card__divider {
    border: none;
    border-top: 2px dashed #dee2e6;
    margin: 14px 0;
}

.vpik-card__label {
    font-size: 12px;
    font-weight: 600;
    color: #2d5ca6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    font-family: ProbaPro, sans-serif;
}

.vpik-card__value {
    font-size: 15px;
    color: #1D1D1B;
    line-height: 1.5;
    font-family: ProbaPro, sans-serif;
}

@media (max-width: 767px) {
    .vpik-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* City filter bar */
.vpik-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 24px;
    padding: 0;
}

.vpik-filter__btn {
    display: inline-block;
    padding: 6px 16px;
    border: 2px solid #dee2e6;
    border-radius: 20px;
    background: #fff;
    color: #495057;
    font-family: ProbaPro, sans-serif;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    line-height: 1.4;
}

.vpik-filter__btn:hover {
    border-color: #2d5ca6;
    color: #2d5ca6;
}

.vpik-filter__btn--active {
    background: #2d5ca6;
    border-color: #2d5ca6;
    color: #fff;
}

.vpik-filter__btn--active:hover {
    background: #1e4a8a;
    border-color: #1e4a8a;
    color: #fff;
}

@media (max-width: 767px) {
    .vpik-filter {
        gap: 6px;
        margin-bottom: 16px;
    }
    .vpik-filter__btn {
        padding: 5px 12px;
        font-size: 14px;
    }
}

/* Collapsible city group */
.vpik-group {
    margin-bottom: 16px;
}

.vpik-group__header {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    background: #2d5ca6;
    color: #ffffff;
    font-family: ProbaPro, sans-serif;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s ease;
    line-height: 1.3;
}

.vpik-group__header:hover {
    background: #1e4a8a;
}

.vpik-group__arrow {
    font-size: 14px;
    flex-shrink: 0;
    width: 16px;
    text-align: center;
}

.vpik-group__count {
    font-size: 14px;
    font-weight: 400;
    opacity: 0.7;
    margin-left: auto;
}

.vpik-group__body {
    margin-top: 12px;
}

@media (max-width: 767px) {
    .vpik-group__header {
        padding: 10px 14px;
        font-size: 17px;
        gap: 8px;
    }
    .vpik-group__count {
        font-size: 12px;
    }
}

/* Extension number buttons with live presence indicator */
.ext-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    margin: 4px 6px 4px 0;
    border: 2px solid #2d5ca6;
    border-radius: 6px;
    background: #ffffff;
    color: #2d5ca6;
    font-size: 17px;
    font-weight: 700;
    font-family: ProbaPro, sans-serif;
    line-height: 1.2;
    letter-spacing: 0.3px;
    cursor: help;
    box-shadow: 0 2px 4px rgba(45, 92, 166, 0.12);
    transition: box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease;
    user-select: all;
    -webkit-user-select: all;
}

.ext-badge:hover {
    background: #2d5ca6;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(45, 92, 166, 0.28);
    transform: translateY(-1px);
}

/* Status dot, sits to the LEFT of the number, separated by gap */
.ext-badge::before {
    content: "";
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #9ca3af; /* unknown / fallback */
    box-shadow: 0 0 0 2px rgba(45, 92, 166, 0.15);
}

.ext-badge--unknown::before { background: #9ca3af; }   /* light gray — initial / no signal */
.ext-badge--offline::before { background: #9ca3af; }   /* light gray — SIP offline, no forward */
.ext-badge--closed::before  { background: #64748b; }   /* slate — outside working hours */
.ext-badge--online::before  { background: #2ecc71; }   /* green — reachable now */
.ext-badge--busy::before    { background: #e74c3c; }   /* red   — in a call / DND */
.ext-badge--away::before    { background: #f39c12; }   /* amber — temporarily away */

/* On mobile, slightly tighter so 3-4 buttons fit per line */
@media (max-width: 767px) {
    .ext-badge {
        padding: 7px 12px;
        font-size: 16px;
        gap: 7px;
    }
}
