.tablet_version_popup .tablet_version_rows { display: grid; gap: 0.75rem; }
.tablet_version_popup .tablet_version_rows > div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 0.9rem;
    border: 1px solid #e5e8ec;
    border-radius: 0.5rem;
    background: #fafbfc;
    font-size: clamp(0.82rem, 2.8vw, 0.92rem);
}
.tablet_version_popup .tablet_version_rows strong { color: #222; text-align: right; overflow-wrap: anywhere; }
.tablet_version_popup .tablet_version_message {
    margin-top: 1rem;
    color: #5c6573;
    font-size: clamp(0.8rem, 2.7vw, 0.9rem);
    line-height: 1.5;
}
.tablet_version_popup #tablet_update_button[hidden] { display: none; }
.tablet_version_popup #tablet_update_button:disabled { opacity: 0.6; cursor: wait; }

/* 대기목록·보건일지 공용 방문기록 팝업 */
.popup_record_health .modal_body {
    max-height: 68vh;
    overflow-y: auto;
}

.popup_record_health .hx_timeline {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0;
}

.popup_record_health .hx_visit {
    display: flex;
    gap: 16px;
    padding: 17px;
    border: 1px solid #e5e8ec;
    border-radius: 8px;
    background: linear-gradient(151deg, #f2f4f7 0%, #fff 100%);
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.popup_record_health .hx_visit:hover {
    border-color: #ffc69d;
    background: #fffaf6;
}

.popup_record_health .hx_vdate {
    flex: 0 0 66px;
    border-right: 1px solid #e5e8ec;
    color: var(--main);
    font-size: 13px;
    font-weight: 700;
}

.popup_record_health .hx_vcontent {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 4px;
}

.popup_record_health .hx_vrow1 {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.popup_record_health .hx_syms,
.popup_record_health .hx_chips {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.popup_record_health .hx_syms b {
    color: #222;
    font-size: 16px;
    font-weight: 700;
}

.popup_record_health .hx_syms .sep {
    color: #d1d5db;
    font-size: 12px;
}

.popup_record_health .hx_status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.popup_record_health .hx_status .pt {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.popup_record_health .hx_status.done {
    background: #ecfdf5;
    color: var(--success);
}

.popup_record_health .hx_status.done .pt {
    background: var(--success);
}

.popup_record_health .hx_status.temp {
    background: #dbeafe;
    color: #3b82f6;
}

.popup_record_health .hx_status.temp .pt {
    background: #3b82f6;
}

.popup_record_health .hx_vrow2 {
    display: flex;
    align-items: center;
    gap: 12px;
}

.popup_record_health .hx_vlabel {
    flex: 0 0 auto;
    color: #9ca3af;
    font-size: 12px;
    font-weight: 700;
}

.popup_record_health .hx_chip {
    padding: 2px 6px;
    border-radius: 4px;
    background: #fff4ec;
    color: var(--main);
    font-size: 13px;
    font-weight: 500;
}

.popup_record_health .hx_vrow3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #5c6573;
    font-size: 11px;
}

.popup_record_health .hx_vrow3 i {
    margin-right: 2px;
    color: #9ca3af;
    font-size: 11px;
    vertical-align: middle;
}

.popup_record_health .hx_vrow3 .sep {
    color: #b9bec4;
}

@media (max-width: 420px) {
    .tablet_version_popup .tablet_version_rows > div { flex-direction: column; gap: 0.3rem; }
    .tablet_version_popup .tablet_version_rows strong { text-align: left; }

    .popup_record_health .hx_visit {
        gap: 10px;
        padding: 13px;
    }

    .popup_record_health .hx_vdate {
        flex-basis: 48px;
    }

    .popup_record_health .hx_vrow3 {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }

    .popup_record_health .hx_vrow3 .sep {
        display: none;
    }
}
