/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */
.ho-a1c-calc{max-width:640px;margin:24px auto;padding:24px;background:#ffffff;border:1px solid #cde4dd;border-radius:14px;box-shadow:0 6px 20px rgba(15,61,62,0.07);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;color:#0f3d3e;box-sizing:border-box;}.ho-calc-header h3{margin:0 0 6px;font-size:1.25rem;color:#0f3d3e;}.ho-calc-header p{margin:0 0 16px;font-size:0.92rem;color:#466869;}.ho-formula-toggle{display:flex;gap:8px;background:#eaf5f2;padding:5px;border-radius:10px;margin-bottom:18px;}.ho-tab{flex:1;padding:9px 12px;border:none;border-radius:7px;background:transparent;color:#2c5758;font-weight:600;font-size:0.88rem;cursor:pointer;transition:all 0.2s ease;}.ho-tab.active{background:#0f3d3e;color:#ffffff;box-shadow:0 2px 6px rgba(15,61,62,0.2);}.ho-calc-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:18px;}.ho-input-group{display:flex;flex-direction:column;}.ho-input-group label{font-size:0.85rem;font-weight:700;margin-bottom:6px;color:#0f3d3e;}.ho-input-group input{width:100%;padding:11px 12px;font-size:1.1rem;font-weight:700;color:#0f3d3e;background:#f7fbfa;border:2px solid #b8d8cf;border-radius:9px;box-sizing:border-box;transition:border-color 0.2s,box-shadow 0.2s;}.ho-input-group input:focus{outline:none;border-color:#0f3d3e;background:#ffffff;box-shadow:0 0 0 3px rgba(15,61,62,0.12);}.ho-status-box{padding:14px 16px;border-radius:10px;display:flex;flex-direction:column;gap:4px;transition:background-color 0.25s ease;}.ho-status-badge{font-weight:700;font-size:0.98rem;}.ho-status-note{font-size:0.86rem;opacity:0.92;}.ho-status-box.status-normal{background:#e3f6ea;color:#155734;border-left:5px solid #2e9e5b;}.ho-status-box.status-prediabetes{background:#fff6df;color:#7a5200;border-left:5px solid #e6a817;}.ho-status-box.status-diabetes{background:#fde8e4;color:#8a2315;border-left:5px solid #e0523c;}.ho-calc-footer{margin-top:12px;text-align:right;color:#5b7c7d;font-size:0.8rem;}@media (max-width:540px){.ho-calc-grid{grid-template-columns:1fr;}}
:root{--bg-surface:#ffffff;--bg-header:#f3f4f6;--bg-row-hover:#f9fafb;--text-primary:#111827;--text-secondary:#374151;--border-color:#e5e7eb;--header-border:#d1d5db;--shadow-color:rgba(0,0,0,0.08);--badge-normal-bg:#dcfce7;--badge-normal-text:#166534;--badge-prediabetes-bg:#fef3c7;--badge-prediabetes-text:#92400e;--badge-diabetes-bg:#ffedd5;--badge-diabetes-text:#9a3412;--badge-high-bg:#fee2e2;--badge-high-text:#991b1b;--thresh-5-7-bg:#fffbeb;--thresh-5-7-border:#f59e0b;--thresh-6-5-bg:#fff7ed;--thresh-6-5-border:#f97316;--thresh-7-0-bg:#fef2f2;--thresh-7-0-border:#ef4444;}@media (prefers-color-scheme:dark){:root{--bg-surface:#111827;--bg-header:#1f2937;--bg-row-hover:#1e293b;--text-primary:#f9fafb;--text-secondary:#d1d5db;--border-color:#374151;--header-border:#4b5563;--shadow-color:rgba(0,0,0,0.4);--badge-normal-bg:rgba(22,101,52,0.35);--badge-normal-text:#86efac;--badge-prediabetes-bg:rgba(146,64,14,0.35);--badge-prediabetes-text:#fcd34d;--badge-diabetes-bg:rgba(154,52,18,0.35);--badge-diabetes-text:#fdba74;--badge-high-bg:rgba(153,27,27,0.35);--badge-high-text:#fca5a5;--thresh-5-7-bg:rgba(245,158,11,0.14);--thresh-5-7-border:#d97706;--thresh-6-5-bg:rgba(249,115,22,0.14);--thresh-6-5-border:#ea580c;--thresh-7-0-bg:rgba(239,68,68,0.14);--thresh-7-0-border:#dc2626;}}.a1c-table-wrapper{width:100%;max-width:720px;max-height:520px;overflow-y:auto;overflow-x:auto;background-color:var(--bg-surface);border:1px solid var(--border-color);border-radius:10px;box-shadow:0 4px 12px var(--shadow-color);}.a1c-table{width:100%;border-collapse:separate;border-spacing:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;font-size:0.95rem;color:var(--text-secondary);}.a1c-table thead th{position:sticky;top:0;z-index:10;background-color:var(--bg-header);color:var(--text-primary);font-weight:600;font-size:0.78rem;text-transform:uppercase;letter-spacing:0.05em;text-align:left;padding:14px 16px;border-bottom:2px solid var(--header-border);white-space:nowrap;}.a1c-table td{padding:11px 16px;border-bottom:1px solid var(--border-color);white-space:nowrap;}.a1c-table tbody tr:last-child td{border-bottom:none;}.a1c-table tbody tr:hover{background-color:var(--bg-row-hover);}.a1c-table tbody td:first-child{font-weight:700;color:var(--text-primary);}.badge{display:inline-block;padding:4px 10px;font-size:0.76rem;font-weight:600;border-radius:9999px;line-height:1.2;}.badge-normal{background-color:var(--badge-normal-bg);color:var(--badge-normal-text);}.badge-prediabetes{background-color:var(--badge-prediabetes-bg);color:var(--badge-prediabetes-text);}.badge-diabetes{background-color:var(--badge-diabetes-bg);color:var(--badge-diabetes-text);}.badge-high{background-color:var(--badge-high-bg);color:var(--badge-high-text);}.a1c-table tr.threshold-highlight td{font-weight:600;}.a1c-table tr.threshold-5-7 td{background-color:var(--thresh-5-7-bg);border-top:2px solid var(--thresh-5-7-border);border-bottom:2px solid var(--thresh-5-7-border);}.a1c-table tr.threshold-6-5 td{background-color:var(--thresh-6-5-bg);border-top:2px solid var(--thresh-6-5-border);border-bottom:2px solid var(--thresh-6-5-border);}.a1c-table tr.threshold-7-0 td{background-color:var(--thresh-7-0-bg);border-top:2px solid var(--thresh-7-0-border);border-bottom:2px solid var(--thresh-7-0-border);}
