/* #87 Blood transfusion record (2-witness) */
.btx{ background:var(--ax-background-default); border:1px solid var(--ax-border-default); border-radius:var(--ax-radius-lg); overflow:hidden;}
.btx__head{ display:flex; justify-content:space-between; align-items:flex-start; padding:12px 16px; gap:12px; flex-wrap:wrap; border-bottom:1px solid var(--ax-border-default);}
.btx__brand{ display:flex; gap:10px; align-items:center;}
.btx__logo{ width:36px; height:36px; border-radius:7px; background:var(--ax-error-emphasis); color:var(--ax-text-inverted); display:grid; place-items:center; font-family:var(--ax-font-mono); font-size:11px; font-weight:700;}
.btx__title{ font-size:13px; font-weight:600; color:var(--ax-text-heading);}
.btx__sub{ font-size:11px; color:var(--ax-text-subtle); font-family:var(--ax-font-mono); margin-top:2px;}
.btx__meta{ font-family:var(--ax-font-mono); font-size:10px; color:var(--ax-text-subtle); text-align:right; line-height:1.55;}
.btx__meta strong{ color:var(--ax-text-heading);}

/* Big unit card */
.btx__unit{ display:grid; grid-template-columns: 1fr 1fr; gap:0; border-bottom:1px solid var(--ax-border-default);}
.btx__u{ padding:14px 16px; border-right:1px solid var(--ax-border-default);}
.btx__u:last-child{ border-right:none; background:var(--ax-background-subtle);}
.btx__u-cap{ font-family:var(--ax-font-mono); font-size:9px; text-transform:uppercase; letter-spacing:0.06em; color:var(--ax-text-subtle); font-weight:700;}
.btx__u-row{ display:flex; gap:10px; align-items:center; margin-top:6px;}
.btx__u-bag{ width:46px; height:54px; background:var(--ax-error-emphasis); border-radius:6px 6px 14px 14px; position:relative; flex-shrink:0;}
.btx__u-bag::before{ content:''; position:absolute; top:-3px; left:50%; transform:translateX(-50%); width:18px; height:5px; background:var(--ax-text-subtle); border-radius:2px;}
.btx__u-info{ display:flex; flex-direction:column; gap:2px;}
.btx__u-id{ font-family:var(--ax-font-mono); font-size:13px; font-weight:700; color:var(--ax-text-heading);}
.btx__u-type{ display:flex; gap:5px; align-items:center;}
.btx__u-pill{ font-family:var(--ax-font-mono); font-size:10px; padding:2px 8px; border-radius:4px; background:var(--ax-text-heading); color:var(--ax-background-default); font-weight:700; text-transform:uppercase;}
.btx__u-pill--abo{ background:var(--ax-error-emphasis);}
.btx__u-meta{ font-family:var(--ax-font-mono); font-size:10px; color:var(--ax-text-subtle); line-height:1.5;}

/* 2-witness check */
.btx__witness{ padding:14px 16px; background:var(--ax-warning-subtle); border-bottom:1px solid var(--ax-border-default);}
.btx__witness-h{ display:flex; justify-content:space-between; align-items:center; margin-bottom:10px;}
.btx__witness-t{ font-size:12px; font-weight:700; color:var(--ax-warning-emphasis); text-transform:uppercase; letter-spacing:0.04em; display:flex; gap:8px; align-items:center;}
.btx__witness-t::before{ content:'!'; width:20px; height:20px; border-radius:50%; background:var(--ax-warning-emphasis); color:var(--ax-text-inverted); display:grid; place-items:center; font-size:11px;}
.btx__witness-cap{ font-family:var(--ax-font-mono); font-size:10px; color:var(--ax-warning-emphasis); font-weight:600;}
.btx__match{ display:grid; grid-template-columns: 1fr 30px 1fr 70px; gap:8px; align-items:center; padding:6px 0; border-bottom:1px solid var(--ax-border-subtle);}
.btx__match:last-child{ border-bottom:none;}
.btx__match-l, .btx__match-r{ font-family:var(--ax-font-mono); font-size:11px; color:var(--ax-text-heading); font-weight:600;}
.btx__match-cap{ font-family:var(--ax-font-mono); font-size:9px; color:var(--ax-text-subtle); text-transform:uppercase; letter-spacing:0.04em; display:block; font-weight:600;}
.btx__match-eq{ display:grid; place-items:center; font-family:var(--ax-font-mono); color:var(--ax-success-emphasis); font-weight:700;}
.btx__match-tk{ display:grid; place-items:center; padding:3px 8px; border-radius:4px; background:var(--ax-success-emphasis); color:var(--ax-text-inverted); font-family:var(--ax-font-mono); font-size:10px; font-weight:700;}

/* Sec/list shared */
.btx__sec{ padding:12px 16px; border-bottom:1px solid var(--ax-border-default);}
.btx__sec:last-child{ border-bottom:none;}
.btx__sec-h{ font-size:11px; font-weight:700; color:var(--ax-text-heading); text-transform:uppercase; letter-spacing:0.04em; margin-bottom:8px; display:flex; justify-content:space-between; align-items:center;}
.btx__sec-cap{ font-family:var(--ax-font-mono); font-size:10px; color:var(--ax-text-subtle); padding:1px 6px; background:var(--ax-background-subtle); border-radius:3px; font-weight:600;}

/* Vital strip table during transfusion */
.btx__vit{ width:100%; border-collapse:collapse; font-size:11px;}
.btx__vit th, .btx__vit td{ padding:5px 8px; border:1px solid var(--ax-border-subtle); text-align:center; font-family:var(--ax-font-mono);}
.btx__vit th{ background:var(--ax-background-subtle); color:var(--ax-text-subtle); font-size:9px; text-transform:uppercase; letter-spacing:0.04em; font-weight:600;}
.btx__vit td.lbl, .btx__vit th.lbl{ text-align:left; font-weight:600; background:var(--ax-background-subtle); color:var(--ax-text-heading);}
.btx__vit td.now{ background:var(--ax-info-subtle);}
.btx__vit td.future{ background:var(--ax-background-subtle); color:var(--ax-text-subtle); opacity:0.5;}
.btx__vit td.alert{ background:var(--ax-error-subtle); color:var(--ax-error-emphasis); font-weight:700;}

/* Reaction watch checklist */
.btx__rx{ display:grid; grid-template-columns: repeat(2,1fr); gap:6px;}
.btx__rxi{ display:grid; grid-template-columns: 18px 1fr; gap:8px; align-items:center; padding:6px 8px; background:var(--ax-background-subtle); border-radius:4px; font-size:11px;}
.btx__rxi-tk{ width:18px; height:18px; border-radius:4px; background:var(--ax-success-emphasis); color:var(--ax-text-inverted); display:grid; place-items:center; font-family:var(--ax-font-mono); font-weight:700; font-size:11px;}
.btx__rxi-tk--off{ background:var(--ax-background-default); color:var(--ax-text-subtle); border:1px solid var(--ax-border-default);}
.btx__rxi-text strong{ color:var(--ax-text-heading);}

/* Rate / volume bar */
.btx__rate{ display:grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap:10px;}
.btx__r{ background:var(--ax-background-subtle); border-radius:6px; padding:8px 10px; display:flex; flex-direction:column; gap:1px;}
.btx__r-cap{ font-family:var(--ax-font-mono); font-size:9px; text-transform:uppercase; letter-spacing:0.06em; color:var(--ax-text-subtle); font-weight:600;}
.btx__r-val{ font-family:var(--ax-font-mono); font-size:14px; font-weight:700; color:var(--ax-text-heading);}
.btx__r-meta{ font-family:var(--ax-font-mono); font-size:10px; color:var(--ax-text-subtle);}
.btx__r-bar{ height:5px; background:var(--ax-background-default); border-radius:999px; overflow:hidden; margin-top:4px;}
.btx__r-bar-fill{ height:100%; background:var(--ax-error-emphasis); border-radius:999px;}

.btx__sign{ display:grid; grid-template-columns: repeat(3,1fr); gap:10px; padding:12px 16px; background:var(--ax-background-subtle); border-top:1px solid var(--ax-border-default);}
.btx__sig{ background:var(--ax-background-default); border:1px solid var(--ax-border-default); border-radius:6px; padding:9px 11px; display:flex; flex-direction:column; gap:2px;}
.btx__sig-cap{ font-family:var(--ax-font-mono); font-size:9px; text-transform:uppercase; letter-spacing:0.06em; color:var(--ax-text-subtle); font-weight:600;}
.btx__sig-name{ font-size:11px; font-weight:600; color:var(--ax-text-heading);}
.btx__sig-meta{ font-family:var(--ax-font-mono); font-size:10px; color:var(--ax-text-subtle);}

.btx__foot{ display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap; padding:10px 16px; border-top:1px solid var(--ax-border-default);}
.btx__foot-meta{ font-family:var(--ax-font-mono); font-size:10px; color:var(--ax-text-subtle);}
.btx__btn{ padding:5px 10px; font-size:11px; font-family:var(--ax-font-mono); font-weight:600; border-radius:5px; border:1px solid var(--ax-border-default); background:var(--ax-background-default); color:var(--ax-text-default); cursor:default;}
.btx__btn--primary{ background:var(--ax-text-heading); color:var(--ax-background-default); border-color:var(--ax-text-heading);}
.btx__btn--danger{ background:var(--ax-error-emphasis); color:var(--ax-text-inverted); border-color:transparent;}

@media (max-width:780px){ .btx__unit{ grid-template-columns:1fr;} .btx__rate{ grid-template-columns:1fr 1fr;} .btx__rx{ grid-template-columns:1fr;} .btx__sign{ grid-template-columns:1fr;} .btx__match{ grid-template-columns:1fr;} }
