﻿/* Custom CSS cho trang Kết quả khám sức khỏe */
body {
    background-color: #f0f7f7;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
}

.card-custom {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e1e8ed;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    margin-bottom: 20px;
}

.header-banner {
    background-color: #005aac;
    border-radius: 8px;
    padding: 10px 16px;
}

.search-input-wrap {
    position: relative;
    width: 220px;
}

    .search-input-wrap input {
        border-radius: 20px;
        padding-left: 32px;
        border: 1px solid #ddd;
        font-size: 0.85rem;
    }

    .search-input-wrap .fa-search {
        position: absolute;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
        color: #888;
        font-size: 0.85rem;
    }

.info-label {
    color: #555;
    font-size: 0.95rem;
}

.info-value {
    font-weight: 700;
    color: #111;
    font-size: 0.95rem;
}

.gauge-wrap {
    position: relative;
    width: 110px;
    height: 55px;
    margin: 0 auto;
    overflow: hidden;
}

.gauge-bg {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: conic-gradient(from 270deg, #ff5252 0deg 60deg, #ffc107 60deg 120deg, #4caf50 120deg 180deg);
}

.gauge-inner {
    width: 80px;
    height: 80px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 15px;
    left: 15px;
}

.gauge-pointer {
    width: 3px;
    height: 45px;
    background: #333;
    position: absolute;
    bottom: 0;
    left: 53.5px;
    transform-origin: bottom center;
    border-radius: 2px;
}

.clinical-box {
    border-radius: 8px;
    padding: 12px;
    min-height: 72px;
    display: flex;
    align-items: center;
    height: 100%;
}

.bg-teal-light {
    background-color: #e2f3f3;
}

.bg-yellow-light {
    background-color: #fff6d6;
}

.clinical-icon {
    width: 42px;
    text-align: center;
    font-size: 1.8rem;
    margin-right: 12px;
    flex-shrink: 0;
}

.status-ok {
    color: #2e7d32;
    font-weight: 600;
    font-size: 0.88rem;
}

.status-warn {
    color: #d84315;
    font-weight: 600;
    font-size: 0.88rem;
}

/* Ép trình duyệt hiển thị màu nền & dải màu gradient khi in */
* {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    color-adjust: exact !important;
}

/* Tối ưu riêng khi bấm In (Ẩn thanh tìm kiếm & nút bấm) */
@media print {
    .header-banner {
        background-color: transparent !important;
        padding: 0 !important;
    }

        .search-input-wrap,
        .header-banner button {
            display: none !important;
        }

    .gauge-wrap, .gauge-bg, .gauge-inner, .gauge-pointer {
        display: block !important;
        visibility: visible !important;
    }
}
