.portal-body{min-height:100vh}.portal-topbar{height:58px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 22px;background:white;border-bottom:1px solid var(--x-color-border);position:sticky;top:0;z-index:20}.brand{font-weight:800}.portal-user{display:flex;align-items:center;gap:12px}.portal-company-name{color:var(--x-color-muted);}.portal-account-link{font-weight:700}.portal-account-link:hover{text-decoration:underline}.portal-menu-toggle{display:none;min-height:36px;padding:0 12px;border:1px solid var(--x-color-border);border-radius:7px;background:white;cursor:pointer}.portal-shell{max-width:1320px;margin:0 auto;padding:0 20px 24px}.portal-nav{display:flex;gap:6px;padding:12px 0;position:sticky;top:58px;z-index:15;background:var(--x-color-background)}.portal-nav a{padding:8px 13px;border-radius:7px;background:white;border:1px solid var(--x-color-border);}.portal-nav a:hover{border-color:#b9c7d8}.portal-nav a.active{color:white;border-color:var(--x-color-primary);background:var(--x-color-primary);font-weight:700}.portal-nav-account{margin-left:auto}.portal-content{min-width:0}.page-header{min-height:54px;display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}.page-header h1{margin:0;}.page-header p{margin:5px 0 0;color:var(--x-color-muted);}.actions{align-items:center;flex-wrap:wrap}.portal-section{margin-top:14px;margin-bottom:0}.section-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.section-header h2{margin:0;}.section-header p{margin:4px 0 0;color:var(--x-color-muted);}.portal-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:12px}.portal-metrics .card{display:flex;flex-direction:column;gap:7px;padding:16px}.portal-metrics span{color:var(--x-color-muted);}.portal-metrics strong{}.portal-columns{display:grid;grid-template-columns:1fr 1fr;gap:12px}.portal-row{display:grid;grid-template-columns:minmax(150px,1fr) minmax(120px,.7fr) 110px;gap:12px;align-items:center;padding:10px 4px;border-bottom:1px solid var(--x-color-border)}.portal-row:last-child{border-bottom:0}.portal-row span{color:var(--x-color-muted);}.portal-detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:0}.portal-detail-grid div{display:flex;flex-direction:column;gap:5px}.portal-detail-grid span{color:var(--x-color-muted);}.portal-detail-grid strong{}.detail-grid{display:grid;grid-template-columns:130px minmax(0,1fr);gap:10px 18px;margin:0}.detail-grid dt{color:var(--x-color-muted)}.detail-grid dd{margin:0}.table-wrap{overflow:auto}.table-wrap.card{padding:0}.table-wrap table{min-width:720px}.table-wrap th{white-space:nowrap;background:#fafbfc;color:#475467;font-weight:700}.table-wrap td{}.table-wrap th,.table-wrap td{padding:10px 12px}.table-wrap tbody tr:last-child td{border-bottom:0}.table-wrap a{color:var(--x-color-primary);font-weight:600}.money{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.date-cell{white-space:nowrap}.empty-cell,.empty-state{padding:26px;text-align:center;color:var(--x-color-muted)}.portal-search{display:grid;grid-template-columns:1fr auto;gap:8px;margin-bottom:12px;padding:12px}.portal-message{margin-bottom:12px;padding:10px 14px;background:white;border:1px solid var(--x-color-border);border-radius:7px}.form-card{max-width:900px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 18px}.form-field{display:flex;flex-direction:column;gap:6px}.form-field label{font-weight:400}.form-field input,.form-field select,.form-field textarea{min-height:36px}.form-field input[type="checkbox"]{width:auto;min-height:auto}.form-errors,.errorlist{color:#b42318}.errorlist{margin:0;padding-left:18px;}.form-errors{grid-column:1/-1}.feature-chips{display:flex;gap:6px;flex-wrap:wrap}.chip,.status-badge{display:inline-flex;align-items:center;min-height:24px;padding:2px 8px;border-radius:999px;background:#eef5ff;color:var(--x-color-primary);}.status-badge{background:#f0f4f8;color:var(--x-color-text)}.muted{color:var(--x-color-muted)}.release-notes{padding:2px 0 12px;color:var(--x-color-muted);}.compact-list{border-top:1px solid var(--x-color-border)}.portal-download-row{display:grid;grid-template-columns:minmax(180px,1fr) 100px 110px auto;gap:12px;align-items:center;padding:10px 4px;border-bottom:1px solid var(--x-color-border)}.portal-download-row:last-child{border-bottom:0}
@media(max-width:800px){.portal-topbar{height:auto;min-height:58px;padding:10px 14px;flex-wrap:wrap}.portal-menu-toggle{display:inline-flex;align-items:center;justify-content:center;margin-left:auto}.portal-user{width:100%;display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px;padding-top:8px;border-top:1px solid var(--x-color-border)}.portal-company-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;align-self:center}.portal-account-link{align-self:center}.portal-shell{padding:0 12px 18px}.portal-nav{display:none;position:static;padding:10px 0;grid-template-columns:repeat(2,minmax(0,1fr));background:transparent}.portal-nav.open{display:grid}.portal-nav a{text-align:center}.portal-nav-account{margin-left:0}.page-header{align-items:flex-start;flex-direction:column}.page-header .actions{width:100%}.page-header .actions .btn{flex:1}.portal-metrics,.portal-columns,.portal-detail-grid,.form-grid{grid-template-columns:1fr}.portal-row,.portal-download-row{grid-template-columns:1fr}.portal-download-row .btn{width:100%}.detail-grid{grid-template-columns:1fr;gap:4px}.detail-grid dd{margin-bottom:8px}.portal-search{grid-template-columns:1fr}.portal-search .btn{width:100%}.form-card{max-width:none}}
.login-card h1{margin:0 0 8px}.login-card>p{margin:0 0 20px;color:var(--x-color-muted);}.login-card form{display:grid;gap:14px}.login-card .btn{width:100%;margin-top:2px}

/* Portal information architecture V1 */
.portal-welcome{display:flex;align-items:flex-start;margin-bottom:12px;padding:14px 16px;border:1px solid #cbdcf2;border-radius:9px;background:#f6f9fd}.portal-welcome>div{display:flex;flex-direction:column;gap:4px}.portal-welcome strong{}.portal-welcome span{color:var(--x-color-muted);line-height:1.55}.portal-metrics small{color:var(--x-color-muted)}.portal-license-status{margin-bottom:12px;padding:16px 18px;background:#fff;border:1px solid var(--x-color-border);border-radius:var(--x-radius-md)}.portal-license-status>div{display:flex;align-items:flex-start;gap:10px}.portal-license-status>div>div{display:flex;flex-direction:column;gap:4px}.portal-license-status strong{}.portal-license-status span:last-child{color:var(--x-color-muted);line-height:1.5}.status-dot{flex:0 0 auto;width:10px;height:10px;margin-top:6px;border-radius:50%;background:#667085}.status-dot.good{background:#12b76a}.status-dot.warn{background:#f79009}.status-dot.bad{background:#d92d20}.empty-action{display:flex;flex-direction:column;align-items:center;gap:6px;padding:22px;text-align:center}.empty-action span{color:var(--x-color-muted);line-height:1.5}


/* XERMES Global Typography Standard - Customer Portal */
.portal-body{font-size:var(--x-font-body);line-height:var(--x-line-height-normal)}
.portal-body button,.portal-body input,.portal-body select,.portal-body textarea,
.portal-body .btn,.portal-body table,.portal-body th,.portal-body td,
.portal-body label,.portal-body a,.portal-body span,.portal-body strong,.portal-body b,
.portal-body small,.portal-body dt,.portal-body dd,.portal-body p{font-size:inherit}
.portal-body .page-header h1{font-size:var(--x-font-page-title);font-weight:var(--x-font-weight-bold)}
.portal-body .page-header p{font-size:var(--x-font-label);font-weight:var(--x-font-weight-normal)}
.portal-body .section-header h2{font-size:var(--x-font-section-title);font-weight:var(--x-font-weight-bold)}
