/* Cổng tra cứu kết quả khám — giao diện y tế: xanh dương lâm sàng + xanh ngọc, nền sáng, độ tương phản cao. */
:root {
    --tc-primary: #0b5394;
    --tc-primary-600: #0a4a85;
    --tc-primary-700: #083b6b;
    --tc-primary-50: #eaf2fa;
    --tc-teal: #0e9384;
    --tc-teal-50: #e6f6f3;
    --tc-text: #102a43;
    --tc-text-2: #334e68;
    --tc-muted: #627d98;
    --tc-border: #dbe4ee;
    --tc-border-2: #e9eff5;
    --tc-bg: #f4f7fb;
    --tc-surface: #ffffff;
    --tc-red: #c62828;
    --tc-red-50: #fdecec;
    --tc-green: #137a3f;
    --tc-green-50: #e7f6ec;
    --tc-amber: #b45309;
    --tc-amber-50: #fef3e2;
    --tc-violet: #5b3fc4;
    --tc-violet-50: #efebfc;
    --tc-rose: #c2185b;
    --tc-rose-50: #fdeaf1;
    --tc-radius: 14px;
    --tc-shadow: 0 1px 2px rgba(16, 42, 67, .05), 0 4px 16px rgba(16, 42, 67, .06);
    --tc-shadow-lg: 0 10px 40px rgba(8, 59, 107, .18);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--tc-text);
    background: var(--tc-bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
main { flex: 1; }
h1, h2, h3 { line-height: 1.3; margin: 0; color: var(--tc-text); }
p { margin: 0; }
a { color: var(--tc-primary); }
img { max-width: 100%; }
:focus-visible { outline: 3px solid rgba(11, 83, 148, .35); outline-offset: 2px; border-radius: 6px; }

.ic { width: 1.15em; height: 1.15em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }
.tc-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tc-skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 8px; }
.tc-skip:focus { left: 8px; }
.tc-container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.tc-narrow { max-width: 620px; }
.tc-muted { color: var(--tc-muted); }

/* Màu icon theo nhóm */
.tc-c-blue { background: var(--tc-primary-50); color: var(--tc-primary); }
.tc-c-teal { background: var(--tc-teal-50); color: var(--tc-teal); }
.tc-c-violet { background: var(--tc-violet-50); color: var(--tc-violet); }
.tc-c-rose { background: var(--tc-rose-50); color: var(--tc-rose); }
.tc-c-amber { background: var(--tc-amber-50); color: var(--tc-amber); }
.tc-c-green { background: var(--tc-green-50); color: var(--tc-green); }

/* ── Header ── */
.tc-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--tc-border); }
.tc-header-inner { max-width: 1140px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 20px; min-height: 64px; }
.tc-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--tc-text); min-width: 0; }
.tc-brand-mark { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(135deg, var(--tc-primary), var(--tc-teal)); color: #fff; flex-shrink: 0; }
.tc-brand-mark .ic { width: 24px; height: 24px; stroke-width: 2.2; }
.tc-brand-logo { background: #fff; border: 1px solid var(--tc-border); overflow: hidden; }
.tc-brand-logo img { width: 100%; height: 100%; object-fit: contain; }
.tc-brand-text { display: flex; flex-direction: column; min-width: 0; }
.tc-brand-text strong { font-size: 16px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-brand-text small { font-size: 12px; color: var(--tc-muted); }
.tc-nav { display: flex; gap: 4px; margin-left: auto; }
.tc-nav a { color: var(--tc-text-2); text-decoration: none; font-weight: 500; font-size: 14px; padding: 8px 12px; border-radius: 8px; }
.tc-nav a:hover { background: var(--tc-primary-50); color: var(--tc-primary); }
.tc-call { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: var(--tc-teal); color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; white-space: nowrap; }
.tc-nav + .tc-call { margin-left: 8px; }
.tc-call:hover { background: #0b7a6e; }

/* ── Nút ── */
.tc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 22px; border: 0; border-radius: 10px; background: var(--tc-primary); color: #fff; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, transform .15s; }
.tc-btn:hover { background: var(--tc-primary-700); }
.tc-btn:active { transform: translateY(1px); }
.tc-btn-lg { padding: 14px 26px; font-size: 16px; }
.tc-btn-light { background: #fff; color: var(--tc-primary); }
.tc-btn-light:hover { background: var(--tc-primary-50); }
.tc-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.tc-link:hover { text-decoration: underline; }

/* ── Ô tìm kiếm ── */
.tc-search { margin-top: 28px; }
.tc-search-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; color: rgba(255, 255, 255, .92); }
.tc-search-row { display: flex; gap: 10px; background: #fff; padding: 8px; border-radius: 14px; box-shadow: var(--tc-shadow-lg); }
.tc-search-input { flex: 1; display: flex; align-items: center; gap: 10px; padding: 0 12px; color: var(--tc-muted); min-width: 0; }
.tc-search-input input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 16px; color: var(--tc-text); padding: 10px 0; background: transparent; letter-spacing: .02em; }
.tc-search-inline { margin: 24px 0 18px; }
.tc-search-inline .tc-search-row { box-shadow: none; border: 1px solid var(--tc-border); }
.tc-search-inline .tc-search-row:focus-within { border-color: var(--tc-primary); box-shadow: 0 0 0 3px rgba(11, 83, 148, .12); }

/* ── Hero (trang chủ) ── */
.tc-hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(1000px 500px at 85% -10%, rgba(14, 147, 132, .55), transparent 60%), linear-gradient(135deg, #083b6b 0%, #0b5394 55%, #0b6a8f 100%); }
.tc-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .07; background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px); background-size: 36px 36px; }
.tc-hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding-top: 64px; padding-bottom: 72px; }
.tc-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); font-size: 13px; font-weight: 600; }
.tc-hero h1 { color: #fff; font-size: 42px; letter-spacing: -.02em; margin: 18px 0 14px; }
.tc-hero-lead { font-size: 17px; color: rgba(255, 255, 255, .88); max-width: 560px; }
.tc-hero-points { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; color: rgba(255, 255, 255, .9); }
.tc-hero-points li { display: inline-flex; align-items: center; gap: 6px; }
.tc-hero-points .ic { color: #6ee7d6; stroke-width: 2.6; }
.tc-hero-art { display: flex; justify-content: center; }
.tc-art { width: 100%; max-width: 360px; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .25)); }

/* ── Section trang chủ ── */
.tc-section { padding: 72px 0; }
.tc-section-alt { background: #fff; border-top: 1px solid var(--tc-border-2); border-bottom: 1px solid var(--tc-border-2); }
.tc-section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.tc-kicker { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--tc-teal); margin-bottom: 8px; }
.tc-section-head h2, .tc-security-copy h2 { font-size: 30px; letter-spacing: -.01em; }
.tc-section-head p, .tc-security-copy p { color: var(--tc-muted); margin-top: 10px; font-size: 16px; }

.tc-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; counter-reset: none; }
.tc-steps li { position: relative; background: #fff; border: 1px solid var(--tc-border); border-radius: var(--tc-radius); padding: 28px 24px 24px; box-shadow: var(--tc-shadow); }
.tc-step-no { position: absolute; top: 18px; right: 20px; font-size: 40px; font-weight: 800; line-height: 1; color: var(--tc-primary-50); }
.tc-step-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--tc-primary), var(--tc-teal)); color: #fff; margin-bottom: 16px; }
.tc-step-icon .ic { width: 26px; height: 26px; }
.tc-steps h3 { font-size: 18px; margin-bottom: 6px; }
.tc-steps p { color: var(--tc-text-2); }

.tc-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tc-feature { padding: 24px; border: 1px solid var(--tc-border); border-radius: var(--tc-radius); background: var(--tc-bg); transition: border-color .15s, box-shadow .15s, background .15s; }
.tc-feature:hover { background: #fff; border-color: #bcd3e8; box-shadow: var(--tc-shadow); }
.tc-feature-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px; }
.tc-feature-icon .ic { width: 24px; height: 24px; }
.tc-feature h3 { font-size: 17px; margin-bottom: 6px; }
.tc-feature p { color: var(--tc-text-2); font-size: 14.5px; }

.tc-security { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.tc-security-copy { position: sticky; top: 96px; }
.tc-security-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.tc-security-list li { display: flex; gap: 16px; padding: 20px; background: #fff; border: 1px solid var(--tc-border); border-radius: var(--tc-radius); box-shadow: var(--tc-shadow); }
.tc-sec-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--tc-teal-50); color: var(--tc-teal); flex-shrink: 0; }
.tc-sec-icon .ic { width: 22px; height: 22px; }
.tc-security-list h3 { font-size: 16px; margin-bottom: 4px; }
.tc-security-list p { color: var(--tc-text-2); font-size: 14.5px; }

.tc-faq-wrap { max-width: 820px; }
.tc-faq { display: grid; gap: 10px; }
.tc-faq details { border: 1px solid var(--tc-border); border-radius: 12px; background: #fff; }
.tc-faq details[open] { border-color: #bcd3e8; box-shadow: var(--tc-shadow); }
.tc-faq summary { list-style: none; cursor: pointer; padding: 16px 20px; font-weight: 600; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.tc-faq summary::-webkit-details-marker { display: none; }
.tc-faq summary .ic { color: var(--tc-muted); transition: transform .2s; }
.tc-faq details[open] summary .ic { transform: rotate(180deg); color: var(--tc-primary); }
.tc-faq details p { padding: 0 20px 18px; color: var(--tc-text-2); }

.tc-cta { background: linear-gradient(120deg, var(--tc-primary-700), var(--tc-primary) 60%, var(--tc-teal)); color: #fff; }
.tc-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 44px; padding-bottom: 44px; }
.tc-cta h2 { color: #fff; font-size: 26px; }
.tc-cta p { color: rgba(255, 255, 255, .85); margin-top: 6px; }

/* ── Footer ── */
.tc-footer { background: #0b2239; color: #b6c6d6; font-size: 13.5px; }
.tc-footer-inner { max-width: 1140px; margin: 0 auto; padding: 26px 20px; display: flex; gap: 24px; align-items: center; justify-content: space-between; }
.tc-footer-note { display: flex; gap: 12px; max-width: 760px; }
.tc-footer-note .ic { color: #6ee7d6; margin-top: 3px; }
.tc-footer strong { color: #fff; }
.tc-footer-brand { white-space: nowrap; }

/* ── Trang kết quả ── */
.tc-page { padding: 28px 0 56px; }
.tc-patient { background: linear-gradient(135deg, #083b6b 0%, #0b5394 60%, #0b6a8f 100%); color: #fff; }
.tc-patient-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 28px; padding-bottom: 28px; flex-wrap: wrap; }
.tc-patient-main { display: flex; align-items: center; gap: 18px; min-width: 0; }
.tc-avatar { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; font-weight: 700; background: rgba(255, 255, 255, .16); border: 2px solid rgba(255, 255, 255, .35); flex-shrink: 0; }
.tc-patient-label { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #9fe4da; }
.tc-patient h1 { color: #fff; font-size: 26px; margin: 2px 0 6px; }
.tc-patient-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: rgba(255, 255, 255, .8); }
.tc-patient-meta strong { color: #fff; margin-left: 4px; }
.tc-clinic { display: flex; gap: 12px; padding: 14px 18px; border-radius: 12px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); max-width: 420px; }
.tc-clinic-icon .ic { width: 26px; height: 26px; color: #9fe4da; }
.tc-clinic div { display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; color: rgba(255, 255, 255, .85); }
.tc-clinic strong { color: #fff; font-size: 15px; }
.tc-clinic span { display: flex; gap: 6px; align-items: baseline; }
.tc-clinic span .ic { width: 14px; height: 14px; }

.tc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.tc-main { display: grid; gap: 18px; min-width: 0; }
.tc-side { display: grid; gap: 18px; position: sticky; top: 84px; }
.tc-anchor { scroll-margin-top: 140px; height: 0; margin-bottom: -18px; }
.tc-panel { scroll-margin-top: 140px; background: var(--tc-surface); border: 1px solid var(--tc-border); border-radius: var(--tc-radius); box-shadow: var(--tc-shadow); padding: 22px; min-width: 0; }
.tc-panel-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.tc-panel-icon { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0; }
.tc-panel-icon .ic { width: 22px; height: 22px; }
.tc-panel-head h2 { font-size: 18px; }
.tc-panel-head p { color: var(--tc-muted); font-size: 13.5px; }

.tc-tabs { position: sticky; top: 72px; z-index: 10; display: flex; gap: 6px; overflow-x: auto; padding: 6px; background: #fff; border: 1px solid var(--tc-border); border-radius: 12px; box-shadow: var(--tc-shadow); scrollbar-width: none; }
.tc-tabs::-webkit-scrollbar { display: none; }
.tc-tabs a, .tc-tab-print { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 8px; color: var(--tc-text-2); text-decoration: none; font: inherit; font-size: 14px; font-weight: 500; white-space: nowrap; background: none; border: 0; cursor: pointer; }
.tc-tabs a:hover, .tc-tab-print:hover { background: var(--tc-primary-50); color: var(--tc-primary); }
.tc-tab-print { margin-left: auto; color: var(--tc-primary); font-weight: 600; }

.tc-info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 0; border: 1px solid var(--tc-border-2); border-radius: 10px; overflow: hidden; }
.tc-info > div { padding: 12px 16px; border-bottom: 1px solid var(--tc-border-2); }
.tc-info > div:nth-child(odd):not(.tc-info-wide) { border-right: 1px solid var(--tc-border-2); }
.tc-info-wide { grid-column: 1 / -1; }
.tc-info dt { font-size: 12.5px; font-weight: 600; color: var(--tc-muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 2px; }
.tc-info dd { margin: 0; font-weight: 500; }
.tc-info-compact { margin-bottom: 16px; }
.tc-diagnosis { background: var(--tc-primary-50); }
.tc-diagnosis dd { font-size: 16px; font-weight: 600; color: var(--tc-primary-700); }
.tc-code { display: inline-block; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 13.5px; padding: 1px 8px; border-radius: 6px; background: var(--tc-bg); border: 1px solid var(--tc-border); }

.tc-callout { margin-top: 16px; padding: 14px 16px; border-radius: 10px; background: var(--tc-bg); border-left: 4px solid var(--tc-muted); }
.tc-callout strong { display: block; font-size: 14px; margin-bottom: 2px; }
.tc-callout p { color: var(--tc-text-2); white-space: pre-line; }
.tc-callout-blue { background: var(--tc-primary-50); border-color: var(--tc-primary); }
.tc-callout-teal { background: var(--tc-teal-50); border-color: var(--tc-teal); }
.tc-callout-violet { background: var(--tc-violet-50); border-color: var(--tc-violet); }
.tc-loi-nhan { margin: 0 0 16px; }

.tc-vitals { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.tc-vital { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--tc-border-2); background: linear-gradient(180deg, #fff, var(--tc-bg)); display: flex; flex-direction: column; }
.tc-vital span { font-size: 13px; color: var(--tc-muted); font-weight: 500; }
.tc-vital strong { font-size: 24px; line-height: 1.2; color: var(--tc-text); margin-top: 4px; font-variant-numeric: tabular-nums; }
.tc-vital small { font-size: 12px; color: var(--tc-muted); }

.tc-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14.5px; border: 1px solid var(--tc-border-2); border-radius: 10px; overflow: hidden; }
.tc-table th { background: var(--tc-bg); color: var(--tc-muted); font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--tc-border-2); }
.tc-table td { padding: 12px; border-bottom: 1px solid var(--tc-border-2); vertical-align: top; }
.tc-table tbody tr:last-child td { border-bottom: 0; }
.tc-col-stt { width: 52px; text-align: center !important; color: var(--tc-muted); }
.tc-col-sl { width: 110px; white-space: nowrap; }
.tc-col-cd { width: 36%; }
.tc-rx-name strong { display: block; }
.tc-rx-name small { display: block; color: var(--tc-muted); font-size: 13px; }
.tc-rx-note { font-style: italic; }

.tc-report { padding: 16px; border: 1px solid var(--tc-border-2); border-radius: 10px; overflow-x: auto; }
.tc-report img { height: auto; }
.tc-report table { max-width: 100%; }

.tc-files { margin-top: 16px; }
.tc-files-title { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; margin-bottom: 10px; }
.tc-files-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.tc-file-img { display: block; width: 150px; height: 112px; border-radius: 10px; overflow: hidden; border: 1px solid var(--tc-border); }
.tc-file-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.tc-file-img:hover img { transform: scale(1.04); }
.tc-file-pdf { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--tc-border); text-decoration: none; color: var(--tc-text); max-width: 280px; }
.tc-file-pdf .ic { width: 24px; height: 24px; color: var(--tc-red); }
.tc-file-pdf span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.tc-file-pdf small { margin-left: auto; font-weight: 700; font-size: 11px; color: var(--tc-red); background: var(--tc-red-50); padding: 2px 6px; border-radius: 4px; }
.tc-file-pdf:hover { border-color: var(--tc-primary); }

.tc-results { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tc-results li { padding: 14px 16px; border: 1px solid var(--tc-border-2); border-left: 4px solid var(--tc-green); border-radius: 10px; }
.tc-results li.tc-result-bad { border-left-color: var(--tc-red); background: #fffafa; }
.tc-result-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tc-results p { color: var(--tc-text-2); margin-top: 6px; white-space: pre-line; }
.tc-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.tc-badge .ic { width: 14px; height: 14px; stroke-width: 2.5; }
.tc-badge-red { background: var(--tc-red-50); color: var(--tc-red); }
.tc-badge-green { background: var(--tc-green-50); color: var(--tc-green); }

.tc-pending { display: flex; gap: 14px; padding: 18px 20px; border-radius: var(--tc-radius); background: var(--tc-amber-50); border: 1px solid #f6d9ae; }
.tc-pending-icon .ic { width: 26px; height: 26px; color: var(--tc-amber); }
.tc-pending strong { color: #7c3d06; }
.tc-pending p { color: #8a5a1f; font-size: 14.5px; }

.tc-timeline { list-style: none; margin: 0; padding: 0; position: relative; max-height: 520px; overflow-y: auto; }
.tc-timeline li { position: relative; padding-left: 24px; }
.tc-timeline li::before { content: ""; position: absolute; left: 6px; top: 0; bottom: 0; width: 2px; background: var(--tc-border); }
.tc-timeline li:first-child::before { top: 18px; }
.tc-timeline li:last-child::before { bottom: calc(100% - 18px); }
.tc-timeline li::after { content: ""; position: absolute; left: 1px; top: 13px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid #9fb3c8; }
.tc-timeline li.tc-active::after { background: var(--tc-primary); border-color: var(--tc-primary); box-shadow: 0 0 0 4px var(--tc-primary-50); }
.tc-timeline a { display: flex; flex-direction: column; padding: 8px 12px; margin-bottom: 4px; border-radius: 10px; text-decoration: none; color: var(--tc-text); }
.tc-timeline a:hover { background: var(--tc-bg); }
.tc-timeline li.tc-active a { background: var(--tc-primary-50); }
.tc-tl-date { font-size: 12.5px; font-weight: 600; color: var(--tc-primary); }
.tc-tl-title { font-weight: 600; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tc-tl-meta { font-size: 12.5px; color: var(--tc-muted); }
.tc-empty { font-size: 14px; }

.tc-help { display: flex; gap: 12px; padding: 18px; border-radius: var(--tc-radius); background: var(--tc-teal-50); border: 1px solid #bfe6df; font-size: 13.5px; color: var(--tc-text-2); }
.tc-help > .ic { width: 22px; height: 22px; color: var(--tc-teal); margin-top: 2px; }
.tc-help strong { display: block; color: var(--tc-text); font-size: 14.5px; margin-bottom: 2px; }

/* ── Trạng thái (không tìm thấy / lỗi) ── */
.tc-state { text-align: center; background: #fff; border: 1px solid var(--tc-border); border-radius: 18px; box-shadow: var(--tc-shadow); padding: 44px 32px; margin-top: 24px; }
.tc-state-plain { margin-top: 0; padding: 36px 24px; }
.tc-state-icon { width: 72px; height: 72px; border-radius: 50%; display: inline-grid; place-items: center; margin-bottom: 16px; }
.tc-state-icon .ic { width: 34px; height: 34px; }
.tc-state-code { display: block; font-size: 13px; font-weight: 600; color: var(--tc-muted); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; }
.tc-state h1, .tc-state h2 { font-size: 24px; margin-bottom: 10px; }
.tc-state p { color: var(--tc-text-2); }
.tc-state p + p { margin-top: 6px; }
.tc-state .tc-btn { margin-top: 24px; }
.tc-state .tc-search-inline { text-align: left; }

/* ── Tài khoản bệnh nhân (cổng tên miền riêng) ── */
.tc-auth { max-width: 460px; }
.tc-auth-card { background: #fff; border: 1px solid var(--tc-border); border-radius: 18px; box-shadow: var(--tc-shadow); padding: 36px 32px; margin-top: 24px; text-align: center; }
.tc-auth-card h1 { font-size: 24px; margin-bottom: 8px; }
.tc-form { margin-top: 24px; text-align: left; display: grid; gap: 16px; }
.tc-field { display: grid; gap: 6px; }
.tc-field label { font-size: 14px; font-weight: 600; color: var(--tc-text-2); }
.tc-field input { width: 100%; border: 1px solid var(--tc-border); border-radius: 10px; padding: 11px 14px; font: inherit; font-size: 16px; color: var(--tc-text); background: #fff; }
.tc-field input:focus { outline: 0; border-color: var(--tc-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tc-primary) 15%, transparent); }
.tc-field small { font-size: 13px; color: var(--tc-muted); }
.tc-btn-block { width: 100%; margin-top: 4px; }
.tc-auth-help { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--tc-border-2); text-align: left; display: grid; gap: 10px; }
.tc-auth-help p { display: flex; gap: 10px; font-size: 14px; color: var(--tc-text-2); }
.tc-auth-help .ic { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--tc-primary); }
.tc-alert { margin-top: 18px; padding: 11px 14px; border-radius: 10px; font-size: 14px; text-align: left; border: 1px solid transparent; }
.tc-alert-error { background: var(--tc-red-50); border-color: color-mix(in srgb, var(--tc-red) 30%, #fff); color: var(--tc-red); }
.tc-alert-info { background: var(--tc-primary-50); border-color: color-mix(in srgb, var(--tc-primary) 25%, #fff); color: var(--tc-primary-700); }
.tc-alert-success { margin: 0 0 16px; background: var(--tc-green-50); border-color: color-mix(in srgb, var(--tc-green) 25%, #fff); color: var(--tc-green); }
.tc-account { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.tc-call + .tc-account, .tc-nav + .tc-account { margin-left: 8px; }
.tc-account form { margin: 0; }
.tc-account-link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--tc-border); border-radius: 999px; background: #fff; color: var(--tc-text-2); font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; }
.tc-account-link:hover { border-color: var(--tc-primary); color: var(--tc-primary); }
.tc-account-link .ic { width: 16px; height: 16px; }

/* ── Responsive ── */
/* Thông báo chung do admin đặt (bảo trì, nghỉ lễ...) */
.tc-thong-bao { background: #fff7e6; border-bottom: 1px solid #ffd591; color: #874d00; }
.tc-thong-bao-inner { display: flex; align-items: flex-start; gap: 10px; padding-top: 10px; padding-bottom: 10px; }
.tc-thong-bao .ic { flex: none; width: 20px; height: 20px; margin-top: 2px; }
.tc-thong-bao p { margin: 0; font-size: 15px; }
.tc-footer-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.tc-footer-brand a { color: inherit; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.tc-footer-brand a:hover { text-decoration: underline; }
.tc-footer-brand .ic { width: 16px; height: 16px; }


/* ===== Khối HTML trang chủ (admin soạn bằng CKEditor) =====
   Icon viết dạng <span class="tc-step-icon tc-i-file">&nbsp;</span> — HTML đã lọc bỏ SVG nên vẽ bằng CSS mask;
   &nbsp; giữ cho CKEditor không xóa span rỗng, font-size:0 ẩn ký tự đó. */
[class*="tc-i-"]::before { content: ""; display: block; width: 24px; height: 24px; background: currentColor;
    -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
.tc-step-icon, .tc-feature-icon, .tc-sec-icon { font-size: 0; line-height: 0; }
.tc-step-icon::before { width: 26px; height: 26px; }
.tc-sec-icon::before { width: 22px; height: 22px; }
.tc-i-file { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6M8 13h8M8 17h5'/%3E%3C/svg%3E"); }
.tc-i-scan { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7V5a2 2 0 0 1 2-2h2M17 3h2a2 2 0 0 1 2 2v2M21 17v2a2 2 0 0 1-2 2h-2M7 21H5a2 2 0 0 1-2-2v-2M7 12h10'/%3E%3C/svg%3E"); }
.tc-i-pulse { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 12h-4l-3 9L9 3l-3 9H2'/%3E%3C/svg%3E"); }
.tc-i-qr { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7' rx='1'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1'/%3E%3Cpath d='M14 14h3v3h-3zM20 14v.01M14 20h.01M17 20h4v-3'/%3E%3C/svg%3E"); }
.tc-i-eye-off { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9.9 4.2A10 10 0 0 1 12 4c7 0 10 8 10 8a17 17 0 0 1-2.2 3.2M6.6 6.6A17 17 0 0 0 2 12s3 8 10 8a9.7 9.7 0 0 0 5.4-1.6M2 2l20 20M9.9 9.9a3 3 0 0 0 4.2 4.2'/%3E%3C/svg%3E"); }
.tc-i-clock { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
.tc-i-lock { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E"); }
.tc-i-steth { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 3v6a5 5 0 0 0 10 0V3M5 3H3M15 3h2M10 14v2a5 5 0 0 0 10 0v-2'/%3E%3Ccircle cx='20' cy='12' r='2'/%3E%3C/svg%3E"); }
.tc-i-pill { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m10.5 20.5 10-10a4.95 4.95 0 1 0-7-7l-10 10a4.95 4.95 0 1 0 7 7Z'/%3E%3Cpath d='m8.5 8.5 7 7'/%3E%3C/svg%3E"); }
.tc-i-flask { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 3h6M10 3v6L4.5 18.5A1.7 1.7 0 0 0 6 21h12a1.7 1.7 0 0 0 1.5-2.5L14 9V3M7 15h10'/%3E%3C/svg%3E"); }
.tc-i-history { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12a9 9 0 1 0 3-6.7L3 8'/%3E%3Cpath d='M3 3v5h5M12 7v5l3 2'/%3E%3C/svg%3E"); }
.tc-i-phone { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L8 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E"); }
.tc-i-shield { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E"); }
.tc-i-check { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.tc-i-search { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E"); }
.tc-i-alert { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.3 3.9 1.8 18a2 2 0 0 0 1.7 3h17a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0z'/%3E%3Cpath d='M12 9v4M12 17h.01'/%3E%3C/svg%3E"); }
.tc-i-hospital { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21h18M5 21V7l7-4 7 4v14M10 9h4M12 7v4M9 21v-4h6v4'/%3E%3C/svg%3E"); }
.tc-i-map { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s7-6.2 7-12a7 7 0 0 0-14 0c0 5.8 7 12 7 12z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E"); }
.tc-i-user { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E"); }
.tc-i-printer { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9V2h12v7M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2'/%3E%3Crect x='6' y='14' width='12' height='8'/%3E%3C/svg%3E"); }
.tc-i-paperclip { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21 11-8.6 8.6a5.5 5.5 0 0 1-7.8-7.8l8.6-8.6a3.7 3.7 0 0 1 5.2 5.2l-8.6 8.6a1.8 1.8 0 0 1-2.6-2.6l8-8'/%3E%3C/svg%3E"); }
.tc-i-arrow { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E"); }

.tc-hero-html p { margin: 0; }
.tc-hero-html a { color: #fff; text-decoration: underline; }
.tc-hero-points li::before { content: ""; width: 16px; height: 16px; flex-shrink: 0; background: #6ee7d6;
    -webkit-mask: var(--ic-check) center / contain no-repeat; mask: var(--ic-check) center / contain no-repeat; }
.tc-hero-points { --ic-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }

.tc-khoi-noi-dung > :first-child { margin-top: 0; }
.tc-khoi-noi-dung img { max-width: 100%; height: auto; border-radius: 12px; }
.tc-khoi-noi-dung table { width: 100%; border-collapse: collapse; }
.tc-khoi-noi-dung td, .tc-khoi-noi-dung th { border: 1px solid var(--tc-border); padding: 8px 12px; }
.tc-step { position: relative; background: #fff; border: 1px solid var(--tc-border); border-radius: var(--tc-radius); padding: 28px 24px 24px; box-shadow: var(--tc-shadow); }
.tc-step h3 { font-size: 18px; margin-bottom: 6px; }
.tc-step p { color: var(--tc-text-2); margin: 0; }
.tc-sec-item { display: flex; gap: 16px; padding: 20px; background: #fff; border: 1px solid var(--tc-border); border-radius: var(--tc-radius); box-shadow: var(--tc-shadow); }
.tc-sec-item h3 { font-size: 16px; margin-bottom: 4px; }
.tc-sec-item p { color: var(--tc-text-2); font-size: 14.5px; margin: 0; }
.tc-security-list { display: grid; gap: 14px; }
.tc-faq { max-width: 820px; margin: 0 auto; }
.tc-faq-item { border: 1px solid var(--tc-border); border-radius: 12px; background: #fff; padding: 16px 20px; }
.tc-faq-item h3 { font-size: 16px; margin-bottom: 6px; }
.tc-faq-item p { color: var(--tc-text-2); margin: 0; }
.tc-khoi-nhan { padding: 0; background: linear-gradient(120deg, var(--tc-primary-700), var(--tc-primary) 60%, var(--tc-teal)); color: #fff; }
.tc-khoi-nhan h2, .tc-khoi-nhan h3 { color: #fff; }
.tc-khoi-nhan p { color: rgba(255, 255, 255, .85); }
.tc-khoi-nhan a:not(.tc-btn) { color: #fff; }
.tc-khoi-nhan > .tc-container:not(:has(.tc-cta-inner)) { padding-top: 44px; padding-bottom: 44px; }
.tc-cta-inner > div { min-width: 0; }
.tc-cta h2, .tc-khoi-nhan h2 { font-size: 26px; }
.tc-brand-text small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-brand-text small .ic { width: 12px; height: 12px; margin-right: 3px; }

/* Trang tĩnh /trang/{ma} */
.tc-trang-head { background: linear-gradient(120deg, var(--tc-primary-700), var(--tc-primary)); color: #fff; padding: 40px 0 36px; }
.tc-trang-head h1 { color: #fff; font-size: 30px; letter-spacing: -.01em; margin-top: 6px; }
.tc-trang-back { color: rgba(255, 255, 255, .8); font-size: 14px; text-decoration: none; }
.tc-trang-back::before { content: "90  "; }
.tc-trang-back:hover { color: #fff; }
.tc-trang-tinh { padding: 48px 0 64px; }
.tc-trang-tinh .tc-khoi-noi-dung { max-width: 860px; }

@media (max-width: 960px) {
    .tc-nav { display: none; }
    .tc-hero-inner { grid-template-columns: 1fr; padding-top: 44px; padding-bottom: 52px; }
    .tc-hero-art { display: none; }
    .tc-features { grid-template-columns: repeat(2, 1fr); }
    .tc-security { grid-template-columns: 1fr; gap: 28px; }
    .tc-security-copy { position: static; }
    .tc-layout { grid-template-columns: 1fr; }
    .tc-side { position: static; }
    .tc-timeline { max-height: none; }
}

@media (max-width: 640px) {
    body { font-size: 15px; }
    .tc-container { padding: 0 16px; }
    .tc-header-inner { padding: 8px 16px; gap: 12px; min-height: 58px; }
    .tc-brand-mark { width: 36px; height: 36px; }
    .tc-brand-text small { font-size: 11px; }
    .tc-brand-text small:not(.tc-dia-chi) { display: none; }
    .tc-call { padding: 9px 12px; }
    .tc-call span { display: none; }
    .tc-account-link { padding: 8px 10px; }
    .tc-account-link span { display: none; }
    .tc-auth-card { padding: 28px 20px; }
    .tc-hero h1 { font-size: 30px; }
    .tc-hero-lead { font-size: 16px; }
    .tc-search-row { flex-direction: column; }
    .tc-search-input { padding: 4px 10px; }
    .tc-search-row .tc-btn { width: 100%; }
    .tc-section { padding: 52px 0; }
    .tc-section-head { margin-bottom: 28px; }
    .tc-section-head h2, .tc-security-copy h2 { font-size: 24px; }
    .tc-steps, .tc-features { grid-template-columns: 1fr; }
    .tc-cta-inner { flex-direction: column; align-items: stretch; text-align: center; }
    .tc-footer-inner { flex-direction: column; align-items: flex-start; }

    .tc-page { padding: 18px 0 40px; }
    .tc-patient-inner { padding-top: 22px; padding-bottom: 22px; }
    .tc-avatar { width: 52px; height: 52px; font-size: 22px; }
    .tc-patient h1 { font-size: 21px; }
    .tc-clinic { max-width: none; width: 100%; }
    .tc-tabs { top: 62px; }
    .tc-panel { padding: 16px; }
    .tc-info { grid-template-columns: 1fr; }
    .tc-info > div:nth-child(odd):not(.tc-info-wide) { border-right: 0; }
    .tc-vitals { grid-template-columns: repeat(2, 1fr); }
    .tc-vital strong { font-size: 21px; }

    /* Đơn thuốc: bảng → thẻ từng thuốc */
    .tc-rx, .tc-rx tbody, .tc-rx tr, .tc-rx td { display: block; width: auto; }
    .tc-rx thead { display: none; }
    .tc-rx { border: 0; }
    .tc-rx tr { position: relative; border: 1px solid var(--tc-border-2); border-radius: 10px; padding: 12px 14px 12px 46px; margin-bottom: 10px; }
    .tc-rx td { border: 0; padding: 2px 0; }
    .tc-rx td.tc-col-stt { position: absolute; left: 12px; top: 12px; width: 24px; height: 24px; padding: 0; border-radius: 50%; background: var(--tc-teal-50); color: var(--tc-teal); font-size: 12.5px; font-weight: 700; line-height: 24px; }
    .tc-rx td[data-label]:not(.tc-col-stt)::before { content: attr(data-label) ": "; color: var(--tc-muted); font-size: 13px; }
    .tc-rx td.tc-col-sl, .tc-rx td.tc-col-cd { font-size: 14px; }
    .tc-state { padding: 32px 20px; }
}

/* ── In / Lưu PDF ── */
@media print {
    @page { margin: 14mm; }
    body { background: #fff; font-size: 12.5px; }
    .tc-header, .tc-tabs, .tc-side .tc-help, .tc-skip, .tc-call, .tc-account, .tc-alert { display: none !important; }
    .tc-patient { background: none; color: var(--tc-text); border-bottom: 2px solid var(--tc-text); }
    .tc-patient h1, .tc-patient-meta strong, .tc-clinic strong { color: var(--tc-text); }
    .tc-patient-meta, .tc-clinic div, .tc-patient-label { color: var(--tc-text-2); }
    .tc-avatar, .tc-clinic-icon { display: none; }
    .tc-clinic { background: none; border: 0; padding: 0; }
    .tc-layout { display: block; }
    .tc-side { position: static; margin-top: 18px; }
    .tc-panel { box-shadow: none; break-inside: avoid; margin-bottom: 12px; }
    .tc-panel, .tc-info, .tc-table { border-color: #ccc; }
    .tc-footer { background: none; color: #555; border-top: 1px solid #ccc; }
    .tc-footer strong { color: #000; }
    .tc-footer-note .ic { display: none; }
    a { color: inherit; text-decoration: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
