/* Compact Wide Emergency Blood Request Card — dashboard only (.ehc-*). */
.ehc-section{display:flex;flex-direction:column}.ehc-section-head{margin-bottom:10px}.ehc-section-head h2{font-size:15.5px;font-weight:800;color:var(--text);margin:0;font-family:'Hind Siliguri',var(--font-bn,sans-serif);line-height:1.3}
.ehc-card{position:relative;width:100%;max-width:1280px;margin:0 auto 16px;padding:14px 16px 10px;border:1px solid rgba(209,38,78,.14);border-radius:26px;overflow:hidden;box-sizing:border-box;color:#241614;background:linear-gradient(125deg,#fff8f8 0%,#fcecec 45%,#fff7f2 100%);box-shadow:0 10px 28px rgba(174,25,53,.14);display:flex;flex-direction:column;gap:8px;opacity:0;animation:ehcFadeIn .25s ease forwards}
.ehc-card:before,.ehc-card:after{content:"";position:absolute;pointer-events:none}.ehc-card:before{left:-8%;right:-8%;height:82px;bottom:-42px;background:linear-gradient(100deg,rgba(255,91,105,.82),rgba(209,38,78,.58),rgba(255,140,151,.68));border-radius:50% 45% 0 0/70% 75% 0 0;transform:rotate(-2deg)}.ehc-card:after{width:110px;height:110px;right:-24px;top:-34px;border-radius:50%;background:radial-gradient(circle,rgba(209,38,78,.13),rgba(209,38,78,0) 68%)}
@keyframes ehcFadeIn{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
.ehc-radial-glow{position:absolute;inset:0;background:radial-gradient(circle at 80% 24%,rgba(255,255,255,.9),transparent 34%);pointer-events:none}.ehc-light-glow{position:absolute;width:42%;height:80%;left:8%;top:-40%;background:radial-gradient(circle,rgba(255,255,255,.95),transparent 70%);pointer-events:none}.ehc-ecg{display:none}.ehc-drop-watermark{position:absolute;right:4%;bottom:2%;width:90px;height:90px;color:#d1264e;opacity:.035;pointer-events:none}.ehc-particles{position:absolute;inset:0;pointer-events:none;opacity:.12}.ehc-particles span{position:absolute;width:3px;height:3px;border-radius:50%;background:#d1264e}
.ehc-topbar{position:relative;z-index:2;display:flex;justify-content:flex-end;min-height:0}.ehc-status-pill{display:inline-flex;align-items:center;padding:3px 9px;border-radius:999px;font-weight:800;font-size:10px;color:#fff}.ehc-status-new,.ehc-status-done{background:#35a853}.ehc-status-hot{background:#ef7d00}.ehc-status-expired{background:#888}
.ehc-body{position:relative;z-index:2;display:grid;grid-template-columns:104px minmax(0,1fr);align-items:center;gap:14px}.ehc-blood-badge{width:96px;height:96px;border-radius:50%;background:linear-gradient(180deg,#ef1837,#9b061b);border:3px solid #fff;box-shadow:0 7px 18px rgba(160,8,31,.22),inset 0 0 18px rgba(255,255,255,.14);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#fff}.ehc-bg-value{font-size:36px;font-weight:900;line-height:1}.ehc-bg-label{font-size:9px;font-weight:700;margin-top:4px;color:#fff}
.ehc-center{min-width:0;display:flex;flex-direction:column;gap:7px}.ehc-notice-banner{align-self:flex-start;max-width:100%;padding:5px 12px;border-radius:999px;background:linear-gradient(90deg,#d1264e,#ef1837);color:#fff;font-size:12.5px;font-weight:800;line-height:1.25;box-sizing:border-box;white-space:normal}.ehc-info-grid{display:grid;grid-template-columns:1.25fr 1fr 1fr;gap:0;border-top:1px solid rgba(122,15,25,.09)}.ehc-info-card,.ehc-info-card-wide{grid-column:auto;min-width:0;padding:7px 10px;border-right:1px solid rgba(122,15,25,.09);box-sizing:border-box}.ehc-info-card:nth-child(3n){border-right:0}.ehc-info-head{display:flex;align-items:center;gap:5px;min-width:0}.ehc-info-head svg{width:14px;height:14px;flex:none;color:#d1264e}.ehc-info-label{font-size:9.5px;color:#7c6b68;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ehc-info-value{margin-top:2px;font-size:12.5px;font-weight:800;color:#241614;line-height:1.2;white-space:normal;overflow:visible;word-break:break-word}.ehc-side{display:none}
.ehc-bottom{position:relative;z-index:2;display:flex;flex-direction:column;gap:5px}.ehc-actions{display:grid;grid-template-columns:1fr 1.2fr;gap:8px;margin-left:118px}.ehc-btn{min-width:0;height:42px;padding:0 12px;border-radius:11px;display:inline-flex;align-items:center;justify-content:center;gap:6px;text-decoration:none;font-weight:800;font-size:12.5px;box-sizing:border-box;white-space:nowrap}.ehc-btn svg{width:16px;height:16px;flex:none}.ehc-btn-view{background:#fff;color:#9c1024;box-shadow:0 4px 12px rgba(122,15,25,.12)}.ehc-btn-call{background:linear-gradient(90deg,#f02b49,#d10f2f);color:#fff;box-shadow:0 5px 13px rgba(209,38,78,.22)}.ehc-more-link{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:24px;color:#9a6811;background:rgba(255,244,213,.72);font-size:11.5px;font-weight:800;text-decoration:none;margin:0 -16px -10px;padding:4px 16px}.ehc-more-link svg{width:14px;height:14px;color:#d1264e}
@media(min-width:760px){.ehc-card{padding:15px 20px 10px}.ehc-body{grid-template-columns:118px minmax(0,1fr)}.ehc-blood-badge{width:106px;height:106px}.ehc-bg-value{font-size:40px}.ehc-info-grid{grid-template-columns:1.35fr 1fr 1fr 1fr 1fr}.ehc-info-card,.ehc-info-card-wide{padding:8px 12px;border-right:1px solid rgba(122,15,25,.09)}.ehc-info-card:last-child{border-right:0}.ehc-actions{position:absolute;right:20px;top:50%;transform:translateY(-50%);width:170px;display:flex;flex-direction:column;margin:0}.ehc-body{padding-right:190px}.ehc-btn{height:40px}.ehc-more-link{margin:2px -20px -10px}}
@media(max-width:560px){.ehc-section-head{margin-bottom:8px}.ehc-card{border-radius:20px;padding:10px 10px 7px;gap:5px}.ehc-topbar{position:absolute;right:10px;top:8px}.ehc-body{grid-template-columns:74px minmax(0,1fr);gap:8px;align-items:start}.ehc-blood-badge{width:68px;height:68px;border-width:2px;margin-top:16px}.ehc-bg-value{font-size:25px}.ehc-bg-label{font-size:7.5px;margin-top:2px}.ehc-center{gap:4px}.ehc-notice-banner{padding:4px 8px;font-size:10.5px;padding-right:10px;line-height:1.2}.ehc-info-grid{grid-template-columns:1fr 1fr}.ehc-info-card,.ehc-info-card-wide{grid-column:auto;padding:5px 6px}.ehc-info-card:nth-child(odd){border-right:1px solid rgba(122,15,25,.09)}.ehc-info-card:nth-child(even){border-right:0}.ehc-info-card:first-child{grid-column:1/2}.ehc-info-card:nth-child(2){grid-column:2/3}.ehc-info-card:last-child{grid-column:1/-1;border-right:0;padding-bottom:4px}.ehc-info-head{gap:3px}.ehc-info-head svg{width:11px;height:11px}.ehc-info-label{font-size:8px}.ehc-info-value{font-size:10.5px;line-height:1.15;margin-top:1px}.ehc-actions{margin-left:0;grid-template-columns:1fr 1.25fr;gap:6px}.ehc-btn{height:36px;padding:0 8px;border-radius:9px;font-size:10.5px;gap:4px}.ehc-btn svg{width:13px;height:13px}.ehc-more-link{font-size:10.5px;min-height:21px;margin:0 -10px -7px;padding:3px 10px}.ehc-drop-watermark{width:64px;height:64px}}
@media(max-width:350px){.ehc-body{grid-template-columns:64px minmax(0,1fr);gap:6px}.ehc-blood-badge{width:58px;height:58px}.ehc-bg-value{font-size:21px}.ehc-info-card,.ehc-info-card-wide{padding:4px}.ehc-info-value{font-size:9.8px}.ehc-btn{font-size:9.8px}}
@media(prefers-reduced-motion:reduce){.ehc-card{animation:none!important}}
.ehc-btn-completed{background:#e9f8ef!important;color:#18794e!important;border:1px solid #b7e4c7!important;cursor:default!important;box-shadow:none!important}
\n\n/* Reference-match polish: clean Android-style emergency card */
.ehc-card{background:#fffdfd;border:1.5px solid #e20d24;box-shadow:0 9px 24px rgba(194,0,25,.16);border-radius:24px;padding:14px 16px 10px}
.ehc-card:before{display:none}.ehc-card:after{opacity:.35}.ehc-radial-glow{background:radial-gradient(circle at 12% 38%,rgba(225,0,28,.055),transparent 28%)}.ehc-light-glow,.ehc-drop-watermark,.ehc-particles{display:none}
.ehc-topbar{display:flex;align-items:center;justify-content:space-between;padding-left:118px;min-height:31px;margin-bottom:2px}.ehc-managed-pill,.ehc-status-pill{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;font-weight:800;color:#fff;line-height:1;box-shadow:none}.ehc-managed-pill{background:linear-gradient(90deg,#e30b27,#ef1738);padding:7px 15px;font-size:12px}.ehc-status-pill{padding:7px 14px;font-size:11px}.ehc-status-done{background:#22a94f}
.ehc-body{grid-template-columns:118px minmax(0,1fr);gap:14px;align-items:center}.ehc-blood-badge{width:104px;height:104px;background:linear-gradient(145deg,#f10d2e 0%,#a90018 75%);border:4px solid #fff;box-shadow:0 7px 18px rgba(180,0,25,.24),0 0 0 1px rgba(218,13,39,.12)}.ehc-bg-value{font-size:39px}.ehc-bg-label{font-size:10px}
.ehc-center{gap:4px}.ehc-info-grid{grid-template-columns:1fr 1fr;border-top:1px solid rgba(205,21,48,.14)}.ehc-info-card,.ehc-info-card-wide{padding:7px 10px;border-right:1px solid rgba(205,21,48,.14)}.ehc-info-card:nth-child(even){border-right:0}.ehc-info-card:last-child{grid-column:1/2}.ehc-info-head svg{color:#d70d2b}.ehc-info-label{font-size:10px;color:#777}.ehc-info-value{font-size:13px;color:#161616}
.ehc-actions{margin-left:0;grid-template-columns:1fr 1.08fr;gap:10px;margin-top:7px}.ehc-btn{height:44px;border-radius:13px;font-size:13px}.ehc-btn-view{border:1.5px solid #e20d24;color:#bc0c24;background:#fff;box-shadow:none}.ehc-btn-completed{background:#effbf3!important;border:1.5px solid #52be7b!important;color:#16834c!important}.ehc-more-link{margin:2px -16px -10px;border-top:1px solid #f3d8dc;background:#fffafa;color:#c10b25;min-height:31px;font-size:12px}
@media(max-width:560px){.ehc-card{padding:10px 10px 7px;border-radius:20px}.ehc-topbar{position:relative;right:auto;top:auto;padding-left:82px;min-height:27px;margin-bottom:2px}.ehc-managed-pill{padding:6px 9px;font-size:10px}.ehc-status-pill{padding:6px 9px;font-size:9.5px}.ehc-body{grid-template-columns:78px minmax(0,1fr);gap:8px}.ehc-blood-badge{width:72px;height:72px;margin-top:3px;border-width:3px}.ehc-bg-value{font-size:27px}.ehc-bg-label{font-size:8px}.ehc-info-card,.ehc-info-card-wide{padding:5px 6px}.ehc-info-label{font-size:8px}.ehc-info-value{font-size:10.5px}.ehc-actions{margin-top:5px;gap:6px}.ehc-btn{height:37px;font-size:10.5px}.ehc-more-link{margin:2px -10px -7px;min-height:25px;font-size:10.5px}}
@media(min-width:760px){.ehc-topbar{padding-left:132px}.ehc-actions{position:static;transform:none;width:auto;display:grid;grid-template-columns:1fr 1.08fr;margin:8px 0 0}.ehc-body{padding-right:0}.ehc-info-grid{grid-template-columns:1.25fr 1fr 1fr 1fr 1fr}.ehc-info-card:last-child{grid-column:auto}}

/* FIX: keep a clearly visible continuous red outline on all four sides. */
.ehc-card{
  border:2px solid #d90b24 !important;
  box-shadow:0 8px 22px rgba(190,0,28,.14), inset 0 0 0 1px rgba(217,11,36,.05) !important;
  background:#fffdfd !important;
  background-clip:padding-box !important;
}
@media(max-width:560px){
  .ehc-card{border:2px solid #d90b24 !important;}
}
html.dark .ehc-card,
body.dark .ehc-card,
[data-theme="dark"] .ehc-card{
  border-color:#ef334e !important;
}
