/* HSS Business Suite customer portal v0.6.0 */
.hss-portal{box-sizing:border-box;font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif;color:#17212e;background:#f5f6f9;border:1px solid #e6e8ed;border-radius:18px;max-width:1280px;margin:24px auto;overflow:hidden;box-shadow:0 16px 50px rgba(18,27,43,.08)}
.hss-portal *{box-sizing:border-box}.hss-portal-v6{display:grid;grid-template-columns:240px minmax(0,1fr);align-items:stretch}.hss-side{background:#111827;color:#fff;padding:26px 16px;display:flex;flex-direction:column;gap:22px}.hss-identity{display:flex;align-items:center;gap:11px;font-size:12px;letter-spacing:.05em;font-weight:800;line-height:1.4}.hss-identity img{width:54px;height:54px;object-fit:contain}.hss-identity small{display:block;color:#b9c1cd;font-size:10px}.hss-side-label{color:#9ca3af;font-size:10px;font-weight:700;letter-spacing:.15em;padding-left:12px}.hss-nav{display:flex;flex-direction:column;gap:4px}.hss-portal .hss-nav a,.hss-portal .hss-signout{display:block;color:#d5dbe5;text-decoration:none;padding:11px 13px;border-radius:9px;font-size:13px;font-weight:600}.hss-portal .hss-nav a:hover,.hss-portal .hss-nav a:focus{background:#263346;color:#fff}.hss-portal .hss-nav a:first-child{background:#b91c1c;color:#fff}.hss-signout{margin-top:auto}.hss-main{min-width:0;padding:clamp(18px,3vw,36px)}.hss-top{display:flex;justify-content:space-between;align-items:flex-start;gap:15px;margin-bottom:25px}.hss-eyebrow{font-size:11px;font-weight:800;letter-spacing:.12em;color:#b91c1c}.hss-portal h2{font-size:clamp(23px,2.5vw,32px);line-height:1.2;color:#111827;margin:8px 0}.hss-top p{color:#64748b;margin:6px 0}.hss-id{background:#fff;border:1px solid #e2e8f0;border-radius:8px;padding:8px 12px;font-size:12px;color:#475569;white-space:nowrap}.hss-quicklinks{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:24px}.hss-quicklinks a{display:flex;flex-direction:column;gap:9px;padding:17px 14px;background:#fff;border:1px solid #e5e7eb;border-top:3px solid #c51f2b;border-radius:12px;text-decoration:none!important;min-width:0}.hss-quicklinks strong{color:#182334;font-size:14px}.hss-quicklinks span{color:#6b7280;font-size:12px}.hss-sections{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}.hss-panel{background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:clamp(15px,2vw,23px);min-width:0;scroll-margin-top:22px;overflow-wrap:anywhere}.hss-panel.hss-wide{grid-column:1/-1}.hss-portal h3{font-size:18px;font-weight:750;color:#111827;margin:0 0 16px;padding-bottom:12px;border-bottom:1px solid #edf0f3}.hss-portal p,.hss-portal li{color:#475569;line-height:1.6}.hss-portal a:not(.hss-nav a):not(.hss-signout):not(.hss-quicklinks a){color:#b91c1c}.hss-portal input:not([type=checkbox]):not([type=radio]),.hss-portal select,.hss-portal textarea{max-width:100%;border:1px solid #cbd5e1;border-radius:8px;padding:9px;background:#fff;color:#111827}.hss-portal button,.hss-portal input[type=submit]{border-radius:8px;padding:10px 14px;cursor:pointer}.hss-portal table{display:block;max-width:100%;overflow-x:auto}.hss-portal img{max-width:100%}.hss-portal .leaflet-container{max-width:100%}
@media(max-width:1050px){.hss-quicklinks{grid-template-columns:repeat(2,minmax(0,1fr))}.hss-portal-v6{grid-template-columns:205px minmax(0,1fr)}}
@media(max-width:760px){.hss-portal-v6{display:block;margin:10px auto;border-radius:12px}.hss-side{padding:14px;gap:10px}.hss-identity img{width:43px;height:43px}.hss-side-label{display:none}.hss-nav{display:flex;flex-direction:row;overflow-x:auto;gap:5px;padding-bottom:3px;scrollbar-width:thin}.hss-portal .hss-nav a{flex:0 0 auto;padding:9px 12px;white-space:nowrap;font-size:12px}.hss-signout{display:none!important}.hss-main{padding:16px}.hss-top{display:block}.hss-id{display:inline-block;margin-top:8px}.hss-sections{grid-template-columns:1fr}.hss-panel{grid-column:1/-1!important}.hss-quicklinks{gap:9px}.hss-quicklinks a{padding:13px 11px}.hss-quicklinks strong{font-size:12px}.hss-quicklinks span{font-size:11px}}
@media(max-width:380px){.hss-quicklinks{grid-template-columns:1fr 1fr}}

/* v0.6.1 single-section navigation and customer dashboard */
.hss-portal.hss-tabs-ready [data-hss-view],.hss-portal.hss-tabs-ready .hss-sections>.hss-panel{display:none!important}
.hss-portal.hss-tabs-ready [data-hss-view].hss-current{display:block!important}
.hss-portal.hss-tabs-ready .hss-sections>.hss-panel.hss-current{display:block!important}
.hss-portal .hss-nav a.hss-active{background:#b91c1c!important;color:#fff!important}
.hss-portal .hss-nav a:first-child:not(.hss-active){background:transparent;color:#d5dbe5}
.hss-dashboard-view{padding:4px 0}.hss-dashboard-view h3{margin:0 0 6px;border:0;padding:0}.hss-dashboard-subtitle{margin:0 0 18px!important}
.hss-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:20px 0 24px}
.hss-portal .hss-stats .hss-stat{background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:21px;display:flex;flex-direction:column;gap:8px;text-decoration:none;color:#111827;box-shadow:0 3px 14px rgba(17,24,39,.04)}
.hss-stats .hss-stat span{font-size:13px;font-weight:650;color:#64748b}.hss-stats .hss-stat strong{font-size:38px;color:#b91c1c;line-height:1.1}.hss-stats .hss-stat small{font-size:12px;color:#64748b}
.hss-overview-bottom{display:grid;grid-template-columns:1.4fr 1fr;gap:16px}.hss-overview-bottom>div{background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:22px}.hss-meter{height:12px;background:#fee2e2;border-radius:999px;overflow:hidden;margin:20px 0}.hss-meter span{display:block;background:#b91c1c;height:100%;border-radius:999px}.hss-overview-bottom a{color:#b91c1c;font-weight:650}
@media(max-width:760px){.hss-stats{gap:10px}.hss-portal .hss-stats .hss-stat{padding:14px}.hss-stats .hss-stat strong{font-size:30px}.hss-overview-bottom{grid-template-columns:1fr}}

/* v0.6.2 circular completion indicator */
.hss-ring-wrap{display:flex;align-items:center;gap:28px;flex-wrap:wrap;margin-top:18px}
.hss-progress-ring{width:174px;height:174px;border-radius:50%;background:conic-gradient(var(--hss-ring-color) var(--hss-progress),#e5e7eb 0);display:grid;place-items:center;flex-shrink:0}
.hss-ring-center{width:135px;height:135px;border-radius:50%;background:#fff;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px}
.hss-ring-center strong{font-size:34px;color:#111827;line-height:1.2}.hss-ring-center span{font-size:12px;color:#64748b}
.hss-ring-details{display:flex;flex-direction:column;gap:8px;color:#475569}.hss-ring-details>strong{font-size:20px;color:#111827}.hss-ring-details>span,.hss-ring-details>small{font-size:13px}
.hss-ring-legend{display:flex;gap:11px;flex-wrap:wrap;margin-top:8px;font-size:11px}.hss-ring-legend span{display:inline-flex;align-items:center;gap:5px}.hss-dot{display:inline-block;width:9px;height:9px;border-radius:50%}.hss-red{background:#dc2626}.hss-orange{background:#f59e0b}.hss-green{background:#16a34a}
@media(max-width:760px){.hss-ring-wrap{justify-content:center;gap:18px}.hss-ring-details{text-align:center}.hss-ring-legend{justify-content:center}}

/* v0.6.3 mobile app-style navigation; desktop unchanged */
.hss-mobile-bottom,.hss-mobile-more{display:none}
@media(max-width:760px){
 .hss-portal-v6{overflow:visible!important;margin:0 auto 80px!important;border-radius:14px!important}
 .hss-side{padding:14px 16px!important;background:#111827!important}
 .hss-side .hss-nav,.hss-side .hss-side-label{display:none!important}
 .hss-main{padding:16px 14px 28px!important}
 .hss-top{margin-bottom:16px}.hss-top h2{font-size:23px}
 .hss-mobile-bottom{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));position:fixed;bottom:0;left:0;right:0;z-index:99990;background:#fff;border-top:1px solid #e5e7eb;box-shadow:0 -8px 30px rgba(17,24,39,.09);padding:7px max(8px,env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));gap:2px}
 .hss-portal .hss-mobile-bottom a,.hss-portal .hss-mobile-bottom button{min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;text-decoration:none!important;border:0;background:transparent;color:#64748b!important;font-size:10px;font-weight:650;line-height:1.2;padding:7px 1px;border-radius:11px;cursor:pointer}
 .hss-mobile-bottom .hss-mobile-icon{font-size:23px;line-height:1.1;font-weight:700}
 .hss-portal .hss-mobile-bottom .hss-active{color:#b91c1c!important;background:#fff1f2!important}
 .hss-mobile-more:not([hidden]){display:block;position:fixed;z-index:99991;bottom:calc(73px + env(safe-area-inset-bottom));left:12px;right:12px;max-height:65vh;overflow:auto;padding:16px;background:#fff;border:1px solid #e5e7eb;border-radius:20px;box-shadow:0 15px 55px rgba(17,24,39,.24)}
 .hss-mobile-more-heading{display:flex;justify-content:space-between;align-items:center;padding:0 4px 12px;color:#111827}
 .hss-mobile-more-close{font-size:26px!important;border:0!important;background:transparent!important;padding:0 8px!important}
 .hss-portal .hss-mobile-more>a{display:block;padding:13px 10px;text-decoration:none!important;border-top:1px solid #f1f5f9;color:#17212e!important;font-size:14px;font-weight:600}
 .hss-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .hss-overview-bottom{grid-template-columns:1fr!important}
 .hss-portal .hss-panel{padding:16px!important}
 .hss-portal input,.hss-portal select,.hss-portal textarea{font-size:16px!important}
}

/* v0.6.4: enforce section switching and native hidden state even with theme CSS */
.hss-portal-v6 .hss-mobile-more[hidden]{display:none!important}
.hss-portal-v6.hss-tabs-ready .hss-sections>.hss-panel:not(.hss-current),.hss-portal-v6.hss-tabs-ready [data-hss-view]:not(.hss-current){display:none!important}
.hss-portal-v6 .hss-nav a.hss-active{background:#b91c1c!important;color:#fff!important}
.hss-portal-v6 .hss-nav a:first-child:not(.hss-active){background:transparent!important;color:#d5dbe5!important}
@media(max-width:760px){.hss-portal-v6 .hss-mobile-more:not([hidden]){display:block!important}.hss-portal-v6 .hss-mobile-bottom{display:grid!important}}

/* v0.6.5: default single-panel visibility, independent of footer script loading */
.hss-portal-v6.hss-tabs-ready .hss-sections>.hss-panel{display:none!important}
.hss-portal-v6.hss-tabs-ready .hss-sections>.hss-panel.hss-current{display:block!important}
.hss-portal-v6.hss-tabs-ready .hss-dashboard-view:not(.hss-current){display:none!important}
.hss-portal-v6.hss-tabs-ready .hss-dashboard-view.hss-current{display:block!important}
.hss-portal-v6.hss-tabs-ready .hss-mobile-more[hidden]{display:none!important}

/* v0.6.6: two-item mobile nav; safe initial dashboard visibility */
.hss-portal-v6.hss-tabs-ready .hss-dashboard-view.hss-current{display:block!important}
.hss-portal-v6.hss-tabs-ready .hss-sections>.hss-panel:not(.hss-current){display:none!important}
.hss-portal-v6 .hss-mobile-more[hidden]{display:none!important}
@media(max-width:760px){
.hss-portal-v6 .hss-mobile-bottom{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.hss-portal-v6 .hss-mobile-more:not([hidden]){display:block!important}
}

/* v0.6.7 customer portal polish: scoped to customer content only */
.hss-portal-v6 .hss-panel a:not([href^="mailto:"]):not([href^="tel:"]):not([href^="#"]),
.hss-portal-v6 .hss-overview-bottom a[href^="#hss-"]{
 display:inline-flex!important;align-items:center;justify-content:center;gap:7px;
 background:#b91c1c!important;color:#fff!important;border:1px solid #991b1b!important;
 padding:10px 16px!important;border-radius:10px!important;text-decoration:none!important;
 font-size:13px!important;font-weight:700!important;line-height:1.35!important;
 min-height:40px;max-width:100%;white-space:normal;text-align:center;
 box-shadow:0 2px 5px rgba(185,28,28,.12);transition:background .15s,transform .15s;
}
.hss-portal-v6 .hss-panel a:not([href^="mailto:"]):not([href^="tel:"]):not([href^="#"]):hover,
.hss-portal-v6 .hss-overview-bottom a[href^="#hss-"]:hover{background:#991b1b!important;color:#fff!important;transform:translateY(-1px)}
.hss-portal-v6 .hss-panel a:focus-visible,.hss-portal-v6 .hss-overview-bottom a:focus-visible{outline:3px solid #fca5a5;outline-offset:2px}
.hss-portal-v6 #hss-history li{padding:15px 16px;margin:0 0 12px;background:#fafbfc;border:1px solid #e5e7eb;border-radius:12px;line-height:2}
.hss-portal-v6 #hss-history ul{padding:0;list-style:none}
.hss-portal-v6 #hss-invoices li,.hss-portal-v6 #hss-quotations li{margin-bottom:12px}
.hss-portal-v6 .hss-service-request-form{background:#fff;border:1px solid #e2e8f0;border-radius:16px;padding:clamp(16px,3vw,26px);box-shadow:0 8px 24px rgba(15,23,42,.04)}
.hss-portal-v6 .hss-request-intro{display:flex;flex-direction:column;gap:4px;padding:0 0 15px;margin-bottom:16px;border-bottom:1px solid #e5e7eb}
.hss-portal-v6 .hss-request-intro strong{font-size:17px;color:#111827}
.hss-portal-v6 .hss-request-intro span{font-size:13px;color:#64748b;line-height:1.5}
.hss-portal-v6 .hss-service-request-form p{margin:0 0 17px}
.hss-portal-v6 .hss-service-request-form label{display:block;font-size:13px;font-weight:700;color:#334155;line-height:1.9}
.hss-portal-v6 .hss-service-request-form input:not([type=hidden]):not([type=checkbox]):not([type=radio]),
.hss-portal-v6 .hss-service-request-form select,.hss-portal-v6 .hss-service-request-form textarea{width:100%;min-height:44px;border:1px solid #cbd5e1;border-radius:10px;background:#fff;padding:10px 12px;font-weight:400;margin-top:5px}
.hss-portal-v6 .hss-service-request-form textarea{min-height:110px;resize:vertical}
.hss-portal-v6 .hss-service-request-form input[type=file]{border:1px dashed #cbd5e1!important;background:#f8fafc!important;min-height:54px;padding:12px!important}
.hss-portal-v6 .hss-service-request-form input:focus,.hss-portal-v6 .hss-service-request-form textarea:focus,.hss-portal-v6 .hss-service-request-form select:focus{border-color:#b91c1c;outline:2px solid #fee2e2;outline-offset:0}
.hss-portal-v6 .hss-service-request-form .hss-submit-request{background:#b91c1c!important;color:#fff!important;border:1px solid #991b1b!important;border-radius:10px!important;padding:13px 22px!important;font-weight:750!important;min-height:46px}
.hss-portal-v6 .hss-service-request-form .hss-submit-request:hover{background:#991b1b!important}
@media(max-width:760px){.hss-portal-v6 .hss-service-request-form{padding:15px}.hss-portal-v6 .hss-service-request-form .hss-submit-request{width:100%}.hss-portal-v6 .hss-panel a:not([href^="mailto:"]):not([href^="tel:"]):not([href^="#"]){margin:4px 4px 4px 0}}

/* v0.6.8: customer request form clarity and consistent action buttons */
.hss-portal-v6 .hss-service-request-form{background:#fff;border:1px solid #e2e8f0;border-radius:18px;padding:clamp(16px,3vw,28px);box-shadow:0 6px 24px rgba(15,23,42,.05)}
.hss-portal-v6 .hss-service-request-form .hss-request-intro{padding:0 0 18px;margin-bottom:22px}
.hss-portal-v6 .hss-service-request-form .hss-required{color:#dc2626!important;font-weight:800!important;font-size:15px}
.hss-portal-v6 .hss-service-request-form .hss-optional{color:#64748b!important;font-size:12px;font-weight:500;display:inline-block;margin-left:4px}
.hss-portal-v6 .hss-service-request-form .hss-ticket-location-extra{background:#f8fafc;border:1px solid #e2e8f0!important;border-radius:14px;padding:18px!important;margin:16px 0!important}
.hss-portal-v6 .hss-service-request-form .hss-location-form .hss-map{max-width:100%!important;border-radius:12px;overflow:hidden}
.hss-portal-v6 .hss-service-request-form button[type=button],
.hss-portal-v6 .hss-service-request-form button[type=submit]{display:inline-flex;align-items:center;justify-content:center;gap:6px;background:#b91c1c!important;color:#fff!important;border:1px solid #991b1b!important;border-radius:10px!important;padding:11px 16px!important;min-height:44px;line-height:1.3;font-weight:700!important;cursor:pointer;box-shadow:0 2px 5px rgba(185,28,28,.12)}
.hss-portal-v6 .hss-service-request-form button:hover{background:#991b1b!important;color:#fff!important}
.hss-portal-v6 .hss-service-request-form button:focus-visible{outline:3px solid #fca5a5;outline-offset:2px}
.hss-portal-v6 .hss-service-request-form input[type=checkbox]{width:auto!important;min-height:0!important;accent-color:#b91c1c}
.hss-portal-v6 .hss-service-request-form label:has(input[type=checkbox]){display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap}
@media(max-width:760px){.hss-portal-v6 .hss-service-request-form .hss-location-form button[type=button]{width:100%;margin:0 0 9px}.hss-portal-v6 .hss-service-request-form .hss-ticket-location-extra{padding:12px!important}.hss-portal-v6 .hss-service-request-form .hss-optional{margin-left:0}}
