.hlr-portal{font-family:tahoma,Arial,sans-serif;line-height:1.8}.hlr-login-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:18px}.hlr-login-card,.hlr-register-box,.hlr-client-dashboard,.hlr-report-print{background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:20px;box-shadow:0 6px 22px rgba(0,0,0,.06)}.hlr-login-card h2{margin-top:0}.hlr-login-card label,.hlr-register-form label{display:block;margin-bottom:12px;font-weight:700}.hlr-login-card input,.hlr-register-form input,.hlr-register-form select,.hlr-register-form textarea{width:100%;box-sizing:border-box;border:1px solid #d1d5db;border-radius:10px;padding:10px;margin-top:6px}.hlr-login-card button,.hlr-register-form button,.hlr-report-print button{border:0;border-radius:10px;padding:10px 18px;background:#1d4ed8;color:#fff;cursor:pointer}.hlr-muted{color:#6b7280;font-size:13px}.hlr-register-box{margin-top:18px}.hlr-form-grid,.hlr-report-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}.hlr-front-table{width:100%;border-collapse:collapse;margin:16px 0}.hlr-front-table th,.hlr-front-table td{border:1px solid #e5e7eb;padding:10px;text-align:right}.hlr-front-table tr:nth-child(even){background:#f9fafb}.hlr-notice{border-radius:12px;padding:12px 14px;margin:12px 0}.hlr-notice-success{background:#ecfdf5;border:1px solid #10b981}.hlr-notice-error{background:#fef2f2;border:1px solid #ef4444}.hlr-client-header{display:flex;justify-content:space-between;align-items:center;gap:16px}.hlr-report-print header{text-align:center;border-bottom:2px solid #111827;margin-bottom:18px}@page{size:A4;margin:10mm}@media print{body *{visibility:hidden}.hlr-report-print,.hlr-report-print *{visibility:visible}.hlr-report-print{position:absolute;inset:0;box-shadow:none;border:0;border-radius:0;width:190mm;max-width:190mm;margin:0;padding:0;font-size:11.5px}.hlr-report-print button{display:none}.hlr-front-table tr,.hlr-report-print section{break-inside:avoid}.hlr-front-table th,.hlr-front-table td{padding:5px}}
.hlr-report-header{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;border-bottom:2px solid #222;padding-bottom:12px;margin-bottom:18px}.hlr-qr{text-align:center;min-width:150px}.hlr-qr img{display:block;width:140px;height:140px;margin:auto;border:1px solid #ddd;padding:4px;background:#fff}.hlr-qr span{display:block;font-size:12px;margin-top:4px}.hlr-muted{color:#666;font-size:13px}@media print{.hlr-portal a,.hlr-report-print footer{display:none!important}.hlr-report-header{break-inside:avoid}.hlr-qr img{print-color-adjust:exact;-webkit-print-color-adjust:exact}}
.hlr-report-print{max-width:980px;margin:0 auto}.hlr-report-print section{break-inside:avoid;margin-bottom:18px}.hlr-report-print footer{border-top:1px solid #d1d5db;margin-top:18px;padding-top:12px}.hlr-register-box summary{cursor:pointer;font-weight:700}.hlr-client-info{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px}
@media print{.hlr-report-print footer{display:block!important}.hlr-report-print footer button{display:none!important}.hlr-report-print{font-size:12px}.hlr-front-table th,.hlr-front-table td{padding:6px}.hlr-report-header{padding-bottom:8px;margin-bottom:10px}.hlr-qr img{width:110px;height:110px}}

/* v0.6.0 - Staff portal outside WordPress dashboard */
.hlr-staff-nav{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0 20px;padding:10px;background:#f6f7f7;border:1px solid #dcdcde;border-radius:14px}
.hlr-staff-nav a{display:inline-flex;padding:9px 14px;border-radius:10px;text-decoration:none;background:#fff;border:1px solid #dcdcde;color:#1d2327;font-weight:600}
.hlr-staff-nav a.active,.hlr-staff-nav a:hover{background:#135e96;color:#fff;border-color:#135e96}
.hlr-staff-portal .hlr-panel{background:#fff;border:1px solid #dcdcde;border-radius:14px;padding:18px;margin:16px 0;box-shadow:0 8px 24px rgba(0,0,0,.04)}
.hlr-staff-portal pre{direction:ltr;text-align:left;background:#f6f7f7;border:1px solid #dcdcde;border-radius:10px;padding:12px;overflow:auto}
.hlr-staff-portal textarea{min-height:72px}

/* Phase 7 staff operations */
.hlr-staff-nav{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 18px}.hlr-staff-nav a{padding:9px 12px;border:1px solid var(--hlr-border,#dcdcde);border-radius:10px;text-decoration:none;background:#fff}.hlr-staff-nav a.active{font-weight:700;background:#f0f6fc;border-color:#72aee6}.hlr-button,.hlr-actions a.hlr-button{display:inline-block;padding:9px 12px;border:1px solid #2271b1;border-radius:8px;background:#2271b1;color:#fff!important;text-decoration:none;margin:3px}.hlr-search{display:flex;gap:8px;align-items:center;margin:12px 0}.hlr-search input[type=search]{flex:1;min-width:240px}.hlr-front-table input,.hlr-front-table select,.hlr-front-table textarea{max-width:100%;box-sizing:border-box}.hlr-front-table form{margin:0}.hlr-grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.hlr-actions{display:flex;flex-wrap:wrap;gap:6px}.hlr-muted{color:#646970}@media(max-width:760px){.hlr-grid-2{grid-template-columns:1fr}.hlr-search{display:block}.hlr-search input[type=search]{width:100%;margin-bottom:8px}.hlr-staff-nav a{flex:1 1 auto;text-align:center}}

/* v0.8.14 - Customer portal themes. Scoped to [helium_lab_portal] only. */
.hlr-portal.hlr-theme-lab-blue{--hlr-bg:#f5f8fb;--hlr-surface:#fff;--hlr-surface-2:#eef4f9;--hlr-text:#162231;--hlr-muted:#667487;--hlr-primary:#1266f1;--hlr-primary-2:#0b4db7;--hlr-accent:#17a2b8;--hlr-success:#17a56b;--hlr-warning:#d98c00;--hlr-border:#dce5ef;--hlr-shadow:0 18px 45px rgba(22,34,49,.10)}
.hlr-portal.hlr-theme-orange-blue{--hlr-bg:#fff8ef;--hlr-surface:#fff;--hlr-surface-2:#f1f7ff;--hlr-text:#182333;--hlr-muted:#6f6b67;--hlr-primary:#d97706;--hlr-primary-2:#92400e;--hlr-accent:#1d4ed8;--hlr-success:#138a66;--hlr-warning:#b45309;--hlr-border:#ead8bf;--hlr-shadow:0 18px 45px rgba(29,78,216,.10)}
.hlr-portal.hlr-theme-warm-orange{--hlr-bg:#fff7ed;--hlr-surface:#fff;--hlr-surface-2:#ffedd5;--hlr-text:#2b1a0d;--hlr-muted:#80634d;--hlr-primary:#ea580c;--hlr-primary-2:#9a3412;--hlr-accent:#f59e0b;--hlr-success:#16875d;--hlr-warning:#c2410c;--hlr-border:#fed7aa;--hlr-shadow:0 18px 45px rgba(234,88,12,.16)}
.hlr-portal.hlr-theme-persian-indigo{--hlr-bg:#f6f4ee;--hlr-surface:#fff;--hlr-surface-2:#ebe6d8;--hlr-text:#181f36;--hlr-muted:#676b7a;--hlr-primary:#243c8f;--hlr-primary-2:#172554;--hlr-accent:#c47f2c;--hlr-success:#14795a;--hlr-warning:#b7791f;--hlr-border:#ddd6c4;--hlr-shadow:0 18px 45px rgba(36,60,143,.14)}
.hlr-portal.hlr-theme-medical-green{--hlr-bg:#f3faf7;--hlr-surface:#fff;--hlr-surface-2:#e7f5ef;--hlr-text:#10251d;--hlr-muted:#61756d;--hlr-primary:#09865f;--hlr-primary-2:#056142;--hlr-accent:#2c9fa3;--hlr-success:#079455;--hlr-warning:#b7791f;--hlr-border:#d4e8df;--hlr-shadow:0 18px 45px rgba(9,134,95,.12)}
.hlr-portal.hlr-theme-industrial-gray{--hlr-bg:#f4f5f7;--hlr-surface:#fff;--hlr-surface-2:#eceff3;--hlr-text:#171a20;--hlr-muted:#69717d;--hlr-primary:#303846;--hlr-primary-2:#171d26;--hlr-accent:#6b7c93;--hlr-success:#16875d;--hlr-warning:#bf7a13;--hlr-border:#d9dee6;--hlr-shadow:0 18px 45px rgba(23,26,32,.12)}
.hlr-portal.hlr-theme-modern-cyan{--hlr-bg:#f3fbff;--hlr-surface:#fff;--hlr-surface-2:#e6f7fb;--hlr-text:#102033;--hlr-muted:#5c6f82;--hlr-primary:#0891b2;--hlr-primary-2:#155e75;--hlr-accent:#4f46e5;--hlr-success:#059669;--hlr-warning:#d97706;--hlr-border:#cdebf3;--hlr-shadow:0 18px 48px rgba(8,145,178,.14)}
.hlr-portal[class*="hlr-theme-"]{box-sizing:border-box;max-width:1180px;margin:0 auto;padding:22px;color:var(--hlr-text);background:radial-gradient(circle at top left,color-mix(in srgb,var(--hlr-primary) 13%,transparent),transparent 34rem),linear-gradient(180deg,var(--hlr-bg),#fff 105%);border-radius:18px}
.hlr-portal[class*="hlr-theme-"] *{box-sizing:border-box}
.hlr-portal[class*="hlr-theme-"] .hlr-login-grid{gap:18px}
.hlr-portal[class*="hlr-theme-"] .hlr-login-card,.hlr-portal[class*="hlr-theme-"] .hlr-register-box,.hlr-portal[class*="hlr-theme-"] .hlr-client-dashboard,.hlr-portal[class*="hlr-theme-"] .hlr-report-print,.hlr-portal[class*="hlr-theme-"] .hlr-panel{background:color-mix(in srgb,var(--hlr-surface) 96%,transparent);border:1px solid var(--hlr-border);border-radius:12px;box-shadow:var(--hlr-shadow)}
.hlr-portal[class*="hlr-theme-"] .hlr-login-card h2,.hlr-portal[class*="hlr-theme-"] .hlr-client-dashboard h2,.hlr-portal[class*="hlr-theme-"] .hlr-report-print h2,.hlr-portal[class*="hlr-theme-"] h3{color:var(--hlr-text)}
.hlr-portal[class*="hlr-theme-"] .hlr-muted{color:var(--hlr-muted)}
.hlr-portal[class*="hlr-theme-"] .hlr-client-header{padding:14px 16px;margin:-6px -6px 16px;border-radius:12px;background:linear-gradient(135deg,var(--hlr-primary),var(--hlr-primary-2));color:#fff}
.hlr-portal[class*="hlr-theme-"] .hlr-client-header h2,.hlr-portal[class*="hlr-theme-"] .hlr-client-header a{color:#fff}
.hlr-portal[class*="hlr-theme-"] .hlr-client-info{padding:14px;border:1px solid var(--hlr-border);border-radius:12px;background:linear-gradient(135deg,var(--hlr-surface-2),#fff);margin-bottom:16px}
.hlr-portal[class*="hlr-theme-"] input,.hlr-portal[class*="hlr-theme-"] select,.hlr-portal[class*="hlr-theme-"] textarea{border:1px solid var(--hlr-border);border-radius:10px;color:var(--hlr-text);background:#fff}
.hlr-portal[class*="hlr-theme-"] input:focus,.hlr-portal[class*="hlr-theme-"] select:focus,.hlr-portal[class*="hlr-theme-"] textarea:focus{outline:0;border-color:var(--hlr-primary);box-shadow:0 0 0 3px color-mix(in srgb,var(--hlr-primary) 16%,transparent)}
.hlr-portal[class*="hlr-theme-"] button,.hlr-portal[class*="hlr-theme-"] .hlr-button{border:1px solid var(--hlr-primary);background:var(--hlr-primary);color:#fff;border-radius:10px;font-weight:700}
.hlr-portal[class*="hlr-theme-"] button:hover,.hlr-portal[class*="hlr-theme-"] .hlr-button:hover{background:var(--hlr-primary-2);border-color:var(--hlr-primary-2)}
.hlr-portal[class*="hlr-theme-"] a{color:var(--hlr-primary)}
.hlr-portal[class*="hlr-theme-"] .hlr-front-table{background:#fff;border-radius:12px;overflow:hidden;border:1px solid var(--hlr-border)}
.hlr-portal[class*="hlr-theme-"] .hlr-front-table th{background:var(--hlr-surface-2);color:var(--hlr-muted);border-color:var(--hlr-border)}
.hlr-portal[class*="hlr-theme-"] .hlr-front-table td{border-color:var(--hlr-border)}
.hlr-portal[class*="hlr-theme-"] .hlr-front-table tr:nth-child(even){background:color-mix(in srgb,var(--hlr-surface-2) 48%,#fff)}
.hlr-portal[class*="hlr-theme-"] .hlr-notice-success{background:color-mix(in srgb,var(--hlr-success) 10%,#fff);border-color:color-mix(in srgb,var(--hlr-success) 45%,#fff);color:var(--hlr-text)}
.hlr-portal[class*="hlr-theme-"] .hlr-notice-error{background:#fff1f2;border-color:#fb7185;color:#7f1d1d}
.hlr-portal[class*="hlr-theme-"] .hlr-register-box summary{padding:4px 0;color:var(--hlr-primary)}
@media(max-width:760px){.hlr-portal[class*="hlr-theme-"]{padding:12px;border-radius:12px}.hlr-portal[class*="hlr-theme-"] .hlr-client-header{display:block}}
@media print{.hlr-portal[class*="hlr-theme-"]{max-width:none;margin:0;padding:0;background:#fff;border-radius:0}.hlr-portal[class*="hlr-theme-"] .hlr-report-print{box-shadow:none}}

/* v0.8.16 - Staff portal uses the same selected theme. */
.hlr-portal.hlr-staff-portal[class*="hlr-theme-"]{max-width:1280px}
.hlr-portal.hlr-staff-portal[class*="hlr-theme-"] .hlr-staff-nav{padding:10px;background:color-mix(in srgb,var(--hlr-surface-2) 70%,#fff);border:1px solid var(--hlr-border);border-radius:14px;box-shadow:var(--hlr-shadow)}
.hlr-portal.hlr-staff-portal[class*="hlr-theme-"] .hlr-staff-nav a{background:#fff;border:1px solid var(--hlr-border);color:var(--hlr-text);border-radius:10px}
.hlr-portal.hlr-staff-portal[class*="hlr-theme-"] .hlr-staff-nav a.active,.hlr-portal.hlr-staff-portal[class*="hlr-theme-"] .hlr-staff-nav a:hover{background:var(--hlr-primary);border-color:var(--hlr-primary);color:#fff}
.hlr-portal.hlr-staff-portal[class*="hlr-theme-"] .hlr-panel{background:color-mix(in srgb,var(--hlr-surface) 96%,transparent);border:1px solid var(--hlr-border);border-radius:12px;padding:18px;margin:16px 0;box-shadow:var(--hlr-shadow)}
.hlr-portal.hlr-staff-portal[class*="hlr-theme-"] .hlr-panel h3,.hlr-portal.hlr-staff-portal[class*="hlr-theme-"] .hlr-panel h4{color:var(--hlr-text)}
.hlr-portal.hlr-staff-portal[class*="hlr-theme-"] .hlr-button,.hlr-portal.hlr-staff-portal[class*="hlr-theme-"] .hlr-actions a.hlr-button{background:var(--hlr-primary);border-color:var(--hlr-primary);color:#fff!important}
.hlr-portal.hlr-staff-portal[class*="hlr-theme-"] .hlr-button:hover,.hlr-portal.hlr-staff-portal[class*="hlr-theme-"] .hlr-actions a.hlr-button:hover{background:var(--hlr-primary-2);border-color:var(--hlr-primary-2)}
.hlr-portal.hlr-staff-portal[class*="hlr-theme-"] pre{background:var(--hlr-surface-2);border:1px solid var(--hlr-border);border-radius:10px;color:var(--hlr-text)}
.hlr-portal.hlr-staff-portal[class*="hlr-theme-"] .hlr-search{padding:10px;background:color-mix(in srgb,var(--hlr-surface-2) 52%,#fff);border:1px solid var(--hlr-border);border-radius:12px}
.hlr-portal.hlr-staff-portal[class*="hlr-theme-"] .hlr-grid-2>.hlr-panel{margin:0}
.hlr-portal.hlr-staff-portal[class*="hlr-theme-"] .hlr-report-readonly{background:#fff}
@media(max-width:760px){.hlr-portal.hlr-staff-portal[class*="hlr-theme-"]{padding:12px}.hlr-portal.hlr-staff-portal[class*="hlr-theme-"] .hlr-staff-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.hlr-portal.hlr-staff-portal[class*="hlr-theme-"] .hlr-staff-nav a{justify-content:center}}

/* v0.8.17 - Professional customer and staff portal layout. */
.hlr-portal[class*="hlr-theme-"]{font-size:14px;line-height:1.85;border:1px solid color-mix(in srgb,var(--hlr-border) 72%,#fff);box-shadow:0 24px 70px rgba(15,23,42,.08)}
.hlr-portal[class*="hlr-theme-"] h2{font-size:22px;line-height:1.6;margin:0}
.hlr-portal[class*="hlr-theme-"] h3{font-size:17px;line-height:1.7;margin:0 0 14px}
.hlr-portal[class*="hlr-theme-"] p{margin-top:0}
.hlr-portal[class*="hlr-theme-"] .hlr-client-dashboard{background:transparent;border:0;box-shadow:none;padding:0;display:grid;gap:18px}
.hlr-portal[class*="hlr-theme-"] .hlr-client-header{position:relative;overflow:hidden;padding:20px 22px;margin:0;border-radius:16px;background:linear-gradient(135deg,var(--hlr-primary),var(--hlr-primary-2));box-shadow:var(--hlr-shadow)}
.hlr-portal[class*="hlr-theme-"] .hlr-client-header:after{content:"";position:absolute;inset-inline-start:-42px;bottom:-60px;width:170px;height:170px;border-radius:999px;border:30px solid color-mix(in srgb,var(--hlr-accent) 38%,transparent)}
.hlr-portal[class*="hlr-theme-"] .hlr-client-header>*{position:relative;z-index:1}
.hlr-portal[class*="hlr-theme-"] .hlr-client-header a{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:7px 12px;border:1px solid rgba(255,255,255,.52);border-radius:10px;text-decoration:none;background:rgba(255,255,255,.12)}
.hlr-portal[class*="hlr-theme-"] .hlr-client-header .hlr-muted{color:rgba(255,255,255,.78)}
.hlr-portal[class*="hlr-theme-"] .hlr-client-info{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:0;background:transparent;border:0;margin:0}
.hlr-portal[class*="hlr-theme-"] .hlr-client-info p{min-height:74px;margin:0;padding:13px 14px;border:1px solid var(--hlr-border);border-radius:12px;background:linear-gradient(135deg,#fff,color-mix(in srgb,var(--hlr-surface-2) 55%,#fff));box-shadow:0 8px 22px rgba(15,23,42,.04)}
.hlr-portal[class*="hlr-theme-"] .hlr-client-info strong{display:block;color:var(--hlr-muted);font-size:12px;margin-bottom:4px}
.hlr-portal[class*="hlr-theme-"] .hlr-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0}
.hlr-portal[class*="hlr-theme-"] .hlr-card{min-height:104px;padding:15px;border:1px solid var(--hlr-border);border-radius:14px;background:#fff;box-shadow:0 10px 28px rgba(15,23,42,.05)}
.hlr-portal[class*="hlr-theme-"] .hlr-card span{display:block;color:var(--hlr-muted);font-size:12px;margin-bottom:9px}
.hlr-portal[class*="hlr-theme-"] .hlr-card strong{display:block;color:var(--hlr-primary);font-size:24px;line-height:1.2;word-break:break-word}
.hlr-portal[class*="hlr-theme-"] .hlr-panel,.hlr-portal[class*="hlr-theme-"] .hlr-login-card,.hlr-portal[class*="hlr-theme-"] .hlr-register-box{padding:18px;border-radius:14px}
.hlr-portal[class*="hlr-theme-"] .hlr-dashboard-section{margin:0}
.hlr-portal[class*="hlr-theme-"] .hlr-front-table{margin:0;border-collapse:separate;border-spacing:0;box-shadow:0 8px 24px rgba(15,23,42,.04)}
.hlr-portal[class*="hlr-theme-"] .hlr-front-table th{font-size:12px;font-weight:800;padding:12px 10px}
.hlr-portal[class*="hlr-theme-"] .hlr-front-table td{padding:12px 10px;background:transparent}
.hlr-portal[class*="hlr-theme-"] .hlr-front-table a{display:inline-flex;align-items:center;justify-content:center;padding:6px 10px;border:1px solid color-mix(in srgb,var(--hlr-primary) 28%,#fff);border-radius:9px;text-decoration:none;background:color-mix(in srgb,var(--hlr-primary) 8%,#fff);font-weight:700}
.hlr-portal[class*="hlr-theme-"] details.hlr-register-box{margin-top:0}
.hlr-portal[class*="hlr-theme-"] details.hlr-register-box summary{list-style:none;cursor:pointer;font-weight:800;font-size:15px;margin:-4px 0 14px}
.hlr-portal[class*="hlr-theme-"] details.hlr-register-box summary::-webkit-details-marker{display:none}
.hlr-portal[class*="hlr-theme-"] .hlr-form-grid{gap:14px}
.hlr-portal[class*="hlr-theme-"] label{color:var(--hlr-muted);font-size:12px}
.hlr-portal[class*="hlr-theme-"] input,.hlr-portal[class*="hlr-theme-"] select,.hlr-portal[class*="hlr-theme-"] textarea{min-height:42px;margin-top:6px}
.hlr-portal[class*="hlr-theme-"] textarea{min-height:96px}
.hlr-portal[class*="hlr-theme-"] button{min-height:42px;padding:10px 16px}
.hlr-portal[class*="hlr-theme-"] .hlr-login-grid{align-items:stretch}
.hlr-portal[class*="hlr-theme-"] .hlr-login-card{display:flex;flex-direction:column;justify-content:space-between}
.hlr-portal.hlr-staff-portal[class*="hlr-theme-"]{display:block}
.hlr-portal.hlr-staff-portal[class*="hlr-theme-"] .hlr-staff-nav{position:sticky;top:10px;z-index:3;gap:8px;margin:16px 0 18px}
.hlr-portal.hlr-staff-portal[class*="hlr-theme-"] .hlr-staff-nav a{min-height:40px;align-items:center;font-weight:800}
.hlr-portal.hlr-staff-portal[class*="hlr-theme-"] .hlr-panel{margin:0 0 18px}
.hlr-portal.hlr-staff-portal[class*="hlr-theme-"] .hlr-actions{gap:8px;margin:10px 0}
.hlr-portal.hlr-staff-portal[class*="hlr-theme-"] .hlr-search{margin:0 0 14px}
.hlr-portal.hlr-staff-portal[class*="hlr-theme-"] .hlr-grid-2{gap:18px}
@media(max-width:980px){.hlr-portal[class*="hlr-theme-"] .hlr-client-info,.hlr-portal[class*="hlr-theme-"] .hlr-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.hlr-portal[class*="hlr-theme-"]{padding:12px;border-radius:14px}.hlr-portal[class*="hlr-theme-"] .hlr-client-header{display:block;padding:18px}.hlr-portal[class*="hlr-theme-"] .hlr-client-header a{margin-top:10px}.hlr-portal[class*="hlr-theme-"] .hlr-client-info,.hlr-portal[class*="hlr-theme-"] .hlr-cards{grid-template-columns:1fr}.hlr-portal[class*="hlr-theme-"] .hlr-front-table{display:block;overflow-x:auto;white-space:nowrap}.hlr-portal.hlr-staff-portal[class*="hlr-theme-"] .hlr-staff-nav{position:static;grid-template-columns:1fr 1fr}}

/* v0.8.18 - Font stack, right sidebar menu and sharper buttons. */
.hlr-portal[class*="hlr-theme-"]{font-family:IRANSansX,IRANSans,Vazirmatn,Vazir,Tahoma,Arial,sans-serif}
.hlr-portal[class*="hlr-theme-"] input,.hlr-portal[class*="hlr-theme-"] select,.hlr-portal[class*="hlr-theme-"] textarea,.hlr-portal[class*="hlr-theme-"] button{font-family:inherit}
.hlr-portal[class*="hlr-theme-"] button,.hlr-portal[class*="hlr-theme-"] .hlr-button,.hlr-portal[class*="hlr-theme-"] .hlr-front-table a,.hlr-portal[class*="hlr-theme-"] .hlr-client-header a,.hlr-portal.hlr-staff-portal[class*="hlr-theme-"] .hlr-staff-nav a{border-radius:6px}
.hlr-portal[class*="hlr-theme-"] input,.hlr-portal[class*="hlr-theme-"] select,.hlr-portal[class*="hlr-theme-"] textarea{border-radius:7px}
.hlr-portal.hlr-staff-portal[class*="hlr-theme-"] .hlr-staff-shell{display:grid;grid-template-columns:220px minmax(0,1fr);gap:18px;align-items:start;direction:rtl}
.hlr-portal.hlr-staff-portal[class*="hlr-theme-"] .hlr-staff-shell>.hlr-staff-nav{grid-column:1;grid-row:1 / span 40;position:sticky;top:12px;display:flex;flex-direction:column;align-self:start;margin:0;padding:10px}
.hlr-portal.hlr-staff-portal[class*="hlr-theme-"] .hlr-staff-shell>.hlr-staff-nav a{width:100%;min-height:38px;justify-content:flex-start;padding:8px 10px}
.hlr-portal.hlr-staff-portal[class*="hlr-theme-"] .hlr-staff-shell>:not(.hlr-staff-nav){grid-column:2;min-width:0}
.hlr-portal.hlr-staff-portal[class*="hlr-theme-"] .hlr-staff-shell>.hlr-panel,.hlr-portal.hlr-staff-portal[class*="hlr-theme-"] .hlr-staff-shell>.hlr-grid-2{margin-top:0}
@media(max-width:860px){.hlr-portal.hlr-staff-portal[class*="hlr-theme-"] .hlr-staff-shell{grid-template-columns:1fr}.hlr-portal.hlr-staff-portal[class*="hlr-theme-"] .hlr-staff-shell>.hlr-staff-nav{grid-column:1;grid-row:auto;position:static;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.hlr-portal.hlr-staff-portal[class*="hlr-theme-"] .hlr-staff-shell>:not(.hlr-staff-nav){grid-column:1}}

/* v0.8.19 - Customer portal right sidebar navigation. */
.hlr-portal[class*="hlr-theme-"] .hlr-client-shell{display:grid;grid-template-columns:220px minmax(0,1fr);gap:18px;align-items:start;direction:rtl}
.hlr-portal[class*="hlr-theme-"] .hlr-client-nav{grid-column:1;position:sticky;top:12px;display:flex;flex-direction:column;gap:8px;padding:10px;border:1px solid var(--hlr-border);border-radius:10px;background:color-mix(in srgb,var(--hlr-surface-2) 70%,#fff);box-shadow:0 12px 32px rgba(15,23,42,.06)}
.hlr-portal[class*="hlr-theme-"] .hlr-client-nav a{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:39px;padding:8px 10px;border:1px solid var(--hlr-border);border-radius:6px;background:#fff;color:var(--hlr-text);text-decoration:none;font-weight:800}
.hlr-portal[class*="hlr-theme-"] .hlr-client-nav a:hover,.hlr-portal[class*="hlr-theme-"] .hlr-client-nav a.active{background:var(--hlr-primary);border-color:var(--hlr-primary);color:#fff}
.hlr-portal[class*="hlr-theme-"] .hlr-client-nav a strong{display:inline-flex;align-items:center;justify-content:center;min-width:26px;height:24px;padding:0 7px;border-radius:999px;background:color-mix(in srgb,var(--hlr-primary) 10%,#fff);color:var(--hlr-primary);font-size:12px;line-height:1}
.hlr-portal[class*="hlr-theme-"] .hlr-client-nav a.active strong,.hlr-portal[class*="hlr-theme-"] .hlr-client-nav a:hover strong{background:rgba(255,255,255,.22);color:#fff}
.hlr-portal[class*="hlr-theme-"] .hlr-client-main{grid-column:2;min-width:0}
.hlr-portal[class*="hlr-theme-"] .hlr-client-main>.hlr-panel,.hlr-portal[class*="hlr-theme-"] .hlr-client-main>.hlr-register-box{margin:0}
.hlr-portal[class*="hlr-theme-"] .hlr-client-overview{display:grid;gap:16px}
.hlr-portal[class*="hlr-theme-"] .hlr-client-main .hlr-register-box{border-radius:10px}
@media(max-width:860px){.hlr-portal[class*="hlr-theme-"] .hlr-client-shell{grid-template-columns:1fr}.hlr-portal[class*="hlr-theme-"] .hlr-client-nav{grid-column:1;position:static;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.hlr-portal[class*="hlr-theme-"] .hlr-client-main{grid-column:1}.hlr-portal[class*="hlr-theme-"] .hlr-client-nav a{min-height:38px}}

/* v0.8.20 - Cleaner staff portal spacing and modern theme refinements. */
.hlr-portal.hlr-staff-portal[class*="hlr-theme-"] .hlr-staff-shell{grid-template-columns:236px minmax(0,1fr);gap:22px}
.hlr-portal.hlr-staff-portal[class*="hlr-theme-"] .hlr-staff-shell>.hlr-staff-nav{gap:9px;padding:12px;border-radius:10px}
.hlr-portal.hlr-staff-portal[class*="hlr-theme-"] .hlr-staff-shell>.hlr-staff-nav a{min-height:40px;padding:9px 12px}
.hlr-portal.hlr-staff-portal[class*="hlr-theme-"] .hlr-panel{padding:20px;margin:0 0 20px;border-radius:10px}
.hlr-portal.hlr-staff-portal[class*="hlr-theme-"] .hlr-panel h2,.hlr-portal.hlr-staff-portal[class*="hlr-theme-"] .hlr-panel h3,.hlr-portal.hlr-staff-portal[class*="hlr-theme-"] .hlr-panel h4{margin-top:0;margin-bottom:14px}
.hlr-portal.hlr-staff-portal[class*="hlr-theme-"] .hlr-grid-2{gap:20px}
.hlr-portal.hlr-staff-portal[class*="hlr-theme-"] .hlr-search{margin:0 0 16px;padding:12px}
.hlr-portal.hlr-staff-portal[class*="hlr-theme-"] .hlr-actions{gap:9px;margin:12px 0}
.hlr-portal.hlr-staff-portal[class*="hlr-theme-"] .hlr-form-grid{gap:16px}
.hlr-portal.hlr-staff-portal[class*="hlr-theme-"] .hlr-front-table{margin-top:12px}
.hlr-portal.hlr-staff-portal[class*="hlr-theme-"] .hlr-front-table th,.hlr-portal.hlr-staff-portal[class*="hlr-theme-"] .hlr-front-table td{padding:13px 11px}
.hlr-portal.hlr-theme-modern-cyan{background:radial-gradient(circle at top right,color-mix(in srgb,var(--hlr-accent) 14%,transparent),transparent 30rem),radial-gradient(circle at bottom left,color-mix(in srgb,var(--hlr-primary) 12%,transparent),transparent 32rem),linear-gradient(180deg,var(--hlr-bg),#fff 108%)}
.hlr-portal.hlr-theme-modern-cyan .hlr-client-header{background:linear-gradient(135deg,#0891b2,#4f46e5)}
@media(max-width:860px){.hlr-portal.hlr-staff-portal[class*="hlr-theme-"] .hlr-staff-shell{grid-template-columns:1fr;gap:16px}.hlr-portal.hlr-staff-portal[class*="hlr-theme-"] .hlr-staff-shell>.hlr-staff-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.hlr-portal.hlr-staff-portal[class*="hlr-theme-"] .hlr-panel{padding:16px}}

/* v0.8.21 - Match staff header spacing with customer portal. */
.hlr-portal.hlr-staff-portal[class*="hlr-theme-"]>.hlr-client-header{margin-bottom:18px}
.hlr-portal.hlr-staff-portal[class*="hlr-theme-"]>.hlr-staff-shell{margin-top:0}
@media(max-width:860px){.hlr-portal.hlr-staff-portal[class*="hlr-theme-"]>.hlr-client-header{margin-bottom:14px}}

/* v0.8.23 - Align inputs, selects and buttons with consistent spacing. */
.hlr-portal[class*="hlr-theme-"] button,.hlr-portal[class*="hlr-theme-"] .hlr-button,.hlr-portal[class*="hlr-theme-"] .hlr-button-secondary,.hlr-portal[class*="hlr-theme-"] .hlr-front-table a{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:40px;margin:0;line-height:1.2;vertical-align:middle;white-space:nowrap}
.hlr-portal[class*="hlr-theme-"] .hlr-button-secondary{padding:6px 10px;border:1px solid color-mix(in srgb,var(--hlr-primary) 28%,#fff);border-radius:6px;background:color-mix(in srgb,var(--hlr-primary) 8%,#fff);color:var(--hlr-primary);text-decoration:none;font-weight:700}
.hlr-portal[class*="hlr-theme-"] .hlr-button-secondary:hover{background:var(--hlr-primary);border-color:var(--hlr-primary);color:#fff}
.hlr-portal[class*="hlr-theme-"] .hlr-search{display:flex!important;align-items:center!important;gap:10px!important;flex-wrap:wrap}
.hlr-portal[class*="hlr-theme-"] .hlr-search input[type="hidden"]{display:none}
.hlr-portal[class*="hlr-theme-"] .hlr-search input[type="search"]{flex:1 1 260px;width:auto;min-width:220px;margin:0!important}
.hlr-portal[class*="hlr-theme-"] .hlr-search select{flex:0 0 auto;width:auto;min-width:110px;margin:0!important}
.hlr-portal[class*="hlr-theme-"] .hlr-search button{flex:0 0 auto;margin:0!important}
.hlr-portal[class*="hlr-theme-"] .hlr-front-table th,.hlr-portal[class*="hlr-theme-"] .hlr-front-table td{vertical-align:middle}
.hlr-portal[class*="hlr-theme-"] .hlr-front-table td form{display:inline-flex!important;align-items:center;gap:8px;flex-wrap:wrap;margin:3px 4px!important;vertical-align:middle}
.hlr-portal[class*="hlr-theme-"] .hlr-front-table td form input[type="hidden"]{display:none}
.hlr-portal[class*="hlr-theme-"] .hlr-front-table td form input:not([type="hidden"]),.hlr-portal[class*="hlr-theme-"] .hlr-front-table td form select,.hlr-portal[class*="hlr-theme-"] .hlr-front-table td form textarea{width:auto;min-width:112px;margin:0!important}
.hlr-portal[class*="hlr-theme-"] .hlr-front-table td form textarea{min-width:180px;min-height:42px}
.hlr-portal[class*="hlr-theme-"] .hlr-front-table td form button{margin:0!important}
.hlr-portal[class*="hlr-theme-"] .hlr-front-table td>a{margin:3px 4px}
.hlr-portal[class*="hlr-theme-"] input[type="file"]{display:block;width:100%;min-height:42px;margin:8px 0 12px!important;padding:8px;border:1px dashed var(--hlr-border);border-radius:7px;background:#fff}
.hlr-portal[class*="hlr-theme-"] .hlr-panel form>button,.hlr-portal[class*="hlr-theme-"] .hlr-register-form>button{margin-top:12px}
@media(max-width:680px){.hlr-portal[class*="hlr-theme-"] .hlr-search{display:grid!important;grid-template-columns:1fr}.hlr-portal[class*="hlr-theme-"] .hlr-search input[type="search"],.hlr-portal[class*="hlr-theme-"] .hlr-search select,.hlr-portal[class*="hlr-theme-"] .hlr-search button{width:100%;min-width:0}.hlr-portal[class*="hlr-theme-"] .hlr-front-table td form{display:flex!important}.hlr-portal[class*="hlr-theme-"] .hlr-front-table td form select,.hlr-portal[class*="hlr-theme-"] .hlr-front-table td form textarea,.hlr-portal[class*="hlr-theme-"] .hlr-front-table td form button{width:100%}}

/* v0.8.25 - Cleaner Sync and notification settings page. */
.hlr-portal[class*="hlr-theme-"] .hlr-sync-page{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,.8fr);gap:20px;align-items:start}
.hlr-portal[class*="hlr-theme-"] .hlr-sync-side{display:grid;gap:18px}
.hlr-portal[class*="hlr-theme-"] .hlr-settings-block{padding:16px;margin:0 0 16px;border:1px solid var(--hlr-border);border-radius:10px;background:linear-gradient(135deg,#fff,color-mix(in srgb,var(--hlr-surface-2) 45%,#fff))}
.hlr-portal[class*="hlr-theme-"] .hlr-settings-block h4{margin:0 0 12px;font-size:14px;color:var(--hlr-text)}
.hlr-portal[class*="hlr-theme-"] .hlr-settings-block label{margin-bottom:0}
.hlr-portal[class*="hlr-theme-"] .hlr-settings-block>label{display:flex;align-items:center;gap:8px;margin-top:12px;padding:10px;border:1px solid color-mix(in srgb,var(--hlr-border) 70%,#fff);border-radius:8px;background:#fff;color:var(--hlr-text)}
.hlr-portal[class*="hlr-theme-"] .hlr-settings-block input[type="checkbox"]{width:18px;min-height:18px;margin:0}
.hlr-portal[class*="hlr-theme-"] .hlr-form-footer{display:flex;justify-content:flex-start;padding-top:2px}
.hlr-portal[class*="hlr-theme-"] .hlr-quick-actions{display:grid;gap:10px}
.hlr-portal[class*="hlr-theme-"] .hlr-quick-actions form{margin:0}
.hlr-portal[class*="hlr-theme-"] .hlr-quick-actions button,.hlr-portal[class*="hlr-theme-"] .hlr-sms-test-form button{width:100%}
.hlr-portal[class*="hlr-theme-"] .hlr-sms-test-form label{display:block;margin-bottom:12px}
.hlr-portal[class*="hlr-theme-"] .hlr-system-info code{display:block;direction:ltr;text-align:left;white-space:normal;word-break:break-all;padding:10px 12px;border:1px solid var(--hlr-border);border-radius:8px;background:color-mix(in srgb,var(--hlr-surface-2) 62%,#fff);color:var(--hlr-text)}
.hlr-portal[class*="hlr-theme-"] .hlr-info-divider{height:1px;margin:16px 0;background:var(--hlr-border)}
@media(max-width:980px){.hlr-portal[class*="hlr-theme-"] .hlr-sync-page{grid-template-columns:1fr}.hlr-portal[class*="hlr-theme-"] .hlr-sync-side{grid-template-columns:1fr}}

/* v0.8.29 - Login page spacing polish. */
.hlr-portal[class*="hlr-theme-"] .hlr-login-grid{align-items:stretch;margin-bottom:18px}
.hlr-portal[class*="hlr-theme-"] .hlr-login-grid .hlr-login-card{justify-content:flex-start!important;gap:12px;min-height:0}
.hlr-portal[class*="hlr-theme-"] .hlr-login-grid .hlr-login-card h2{margin:0 0 8px!important;line-height:1.45}
.hlr-portal[class*="hlr-theme-"] .hlr-login-grid .hlr-login-card form{display:grid;gap:12px;margin:0}
.hlr-portal[class*="hlr-theme-"] .hlr-login-grid .hlr-login-card label{margin-bottom:0}
.hlr-portal[class*="hlr-theme-"] .hlr-login-grid .hlr-login-card button{margin-top:4px;align-self:flex-start}
.hlr-portal[class*="hlr-theme-"]>details.hlr-register-box{margin-top:20px!important}
.hlr-portal[class*="hlr-theme-"]>details.hlr-register-box summary{padding:0 0 12px!important;margin:0 0 14px!important;border-bottom:1px solid var(--hlr-border)}
@media(max-width:680px){.hlr-portal[class*="hlr-theme-"] .hlr-login-grid{margin-bottom:14px}.hlr-portal[class*="hlr-theme-"]>details.hlr-register-box{margin-top:16px!important}}


/* v0.8.31 - Professional A4 certificate/report layout fixes */
.hlr-report-print{box-sizing:border-box;width:min(100%,194mm);max-width:194mm;margin:18px auto!important;padding:8mm!important;background:#fff;border:1px solid #d6dde8;border-radius:8px;box-shadow:0 12px 34px rgba(15,23,42,.08);font-size:12px;line-height:1.6;color:#111827;overflow:hidden}
.hlr-report-print .hlr-report-header{display:grid;grid-template-columns:minmax(0,1fr) 32mm;align-items:start;gap:7mm;margin:0 0 5mm;padding:0 0 4mm;border-bottom:2px solid var(--hlr-primary,#0f766e)}
.hlr-report-print .hlr-report-title h2{margin:0 0 2mm;font-size:19px;line-height:1.35;color:var(--hlr-primary,#0f766e)}
.hlr-report-print .hlr-report-title p{margin:1mm 0;overflow-wrap:anywhere}
.hlr-report-print .hlr-verify-url{font-size:10.5px;line-height:1.5;direction:ltr;text-align:left;unicode-bidi:plaintext}
.hlr-report-print .hlr-qr{width:32mm;min-width:32mm;text-align:center;font-size:10px;color:#64748b}
.hlr-report-print .hlr-qr-svg{width:27mm;height:27mm;margin:0 auto 1.5mm;padding:1.4mm;border:1px solid #cbd5e1;background:#fff;border-radius:3px}
.hlr-report-print .hlr-qr-svg svg{display:block;width:100%;height:100%;shape-rendering:crispEdges}
.hlr-report-print .hlr-qr img{display:block;width:27mm!important;height:27mm!important;margin:0 auto 1.5mm;padding:1.4mm;border:1px solid #cbd5e1;background:#fff;border-radius:3px;object-fit:contain}
.hlr-report-print .hlr-report-section,.hlr-report-print section{margin:0 0 4mm;padding:3.2mm;border:1px solid #d6dde8;border-radius:5px;background:#fff;break-inside:avoid}
.hlr-report-print .hlr-report-section h3,.hlr-report-print section h3{margin:0 0 2.5mm;padding-right:2.2mm;border-right:3px solid var(--hlr-primary,#0f766e);font-size:13px;line-height:1.35;color:#0f172a}
.hlr-report-print .hlr-report-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.5mm 5mm;margin:0}
.hlr-report-print .hlr-report-grid p,.hlr-report-print .hlr-report-address,.hlr-report-print .hlr-report-section p{margin:.8mm 0;overflow-wrap:anywhere;word-break:break-word}
.hlr-report-print .hlr-report-table-wrap{width:100%;overflow-x:auto}
.hlr-report-print .hlr-report-table,.hlr-report-print .hlr-front-table{width:100%;table-layout:fixed;border-collapse:collapse;margin:0;font-size:11px}
.hlr-report-print .hlr-report-table th,.hlr-report-print .hlr-report-table td,.hlr-report-print .hlr-front-table th,.hlr-report-print .hlr-front-table td{padding:1.6mm 1.2mm;border:1px solid #b7c2d0;text-align:center;vertical-align:middle;overflow-wrap:anywhere;word-break:break-word;line-height:1.45}
.hlr-report-print .hlr-report-table th,.hlr-report-print .hlr-front-table th{background:#f1f7f8;color:#0f172a;font-weight:700}
.hlr-report-print footer{margin-top:4mm;padding-top:3mm;border-top:1px solid #d6dde8;text-align:center}
.hlr-report-print footer button{margin-top:2mm}
@page{size:A4;margin:8mm}
@media print{html,body{background:#fff!important}.hlr-report-print{width:100%!important;max-width:194mm!important;margin:0 auto!important;padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;font-size:10.2px!important;line-height:1.42!important;overflow:visible!important}.hlr-report-print .hlr-report-header{grid-template-columns:minmax(0,1fr) 29mm!important;gap:5mm!important;margin-bottom:3mm!important;padding-bottom:3mm!important}.hlr-report-print .hlr-report-title h2{font-size:16px!important}.hlr-report-print .hlr-verify-url{font-size:9px!important}.hlr-report-print .hlr-qr{width:29mm!important;min-width:29mm!important}.hlr-report-print .hlr-qr-svg,.hlr-report-print .hlr-qr img{width:24mm!important;height:24mm!important;padding:1mm!important}.hlr-report-print .hlr-report-section,.hlr-report-print section{padding:2mm!important;margin-bottom:2.5mm!important;border-radius:2px!important}.hlr-report-print .hlr-report-section h3,.hlr-report-print section h3{font-size:11px!important;margin-bottom:1.5mm!important}.hlr-report-print .hlr-report-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:.8mm 3mm!important}.hlr-report-print .hlr-front-table,.hlr-report-print .hlr-report-table{font-size:9.4px!important}.hlr-report-print .hlr-front-table th,.hlr-report-print .hlr-front-table td,.hlr-report-print .hlr-report-table th,.hlr-report-print .hlr-report-table td{padding:.9mm .7mm!important}.hlr-report-print footer{font-size:9px!important;margin-top:2mm!important;padding-top:1.5mm!important}.hlr-report-print footer button{display:none!important}}
@media (max-width:720px){.hlr-report-print{padding:16px!important}.hlr-report-print .hlr-report-header{grid-template-columns:1fr}.hlr-report-print .hlr-qr{width:100%;min-width:0}.hlr-report-print .hlr-report-grid{grid-template-columns:1fr}.hlr-report-print .hlr-report-table-wrap{overflow-x:auto}.hlr-report-print .hlr-front-table{min-width:680px}}

.hlr-equipment-picker{grid-column:1/-1;padding:12px;border:1px solid var(--hlr-border,#d7dde7);border-radius:10px;background:rgba(248,250,252,.9);margin:4px 0 10px}
.hlr-equipment-picker-grid{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:12px;align-items:end}
.hlr-equipment-picker .hlr-muted{margin:8px 0 0;color:var(--hlr-muted,#64748b);font-size:12px}
@media (max-width:900px){.hlr-equipment-picker-grid{grid-template-columns:1fr 1fr}}
@media (max-width:560px){.hlr-equipment-picker-grid{grid-template-columns:1fr}}
