/* Aden unified component repair. Scoped to authenticated app. Do not alter controllers/data. */
:root{--aden-brand:#ED4F18;--aden-navy:#283948;--aden-surface:#fff;--aden-bg:#f6f8fb;--aden-line:#e5ebf2}
body.aden-reference-ui .system-content,body.aden-reference-ui .system-main{min-width:0}
body.aden-reference-ui .system-content{font-size:13.5px;line-height:1.46}
/* Stable sidebar geometry using actual Razor markup; no text squashing. */
@media(min-width:992px){body.aden-reference-ui .system-sidebar{width:248px!important;--sidebar-width:248px!important;}body.aden-reference-ui .system-main{margin-left:248px!important;}}
body.aden-reference-ui .system-sidebar{background:#fff!important;border-right:1px solid var(--aden-line)!important;color:var(--aden-navy)!important;padding:0!important}
body.aden-reference-ui .sidebar-brand{display:flex!important;align-items:center!important;gap:10px!important;min-height:76px!important;margin:0!important;padding:13px 14px!important;box-sizing:border-box!important;background:#fff!important;border-bottom:1px solid var(--aden-line)!important;}
body.aden-reference-ui .sidebar-brand .brand-mark{height:40px!important;width:40px!important;flex:0 0 40px!important;min-width:40px!important;padding:4px!important;display:grid!important;place-items:center!important;background:#fff!important;}
body.aden-reference-ui .sidebar-brand .brand-mark img{width:100%!important;height:100%!important;object-fit:contain!important;}
body.aden-reference-ui .sidebar-brand .brand-copy{display:flex!important;flex-direction:column!important;justify-content:center!important;min-width:0!important;flex:1!important;gap:3px!important;overflow:hidden!important;}
body.aden-reference-ui .sidebar-brand .brand-copy strong{display:block!important;font-size:12.5px!important;font-weight:750!important;line-height:1.25!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:100%!important;}
body.aden-reference-ui .sidebar-brand .brand-copy span{display:block!important;font-size:9px!important;letter-spacing:.035em!important;line-height:1.35!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:100%!important;}
body.aden-reference-ui .sidebar-nav{padding:9px 11px!important;min-width:0!important;overflow-x:hidden!important;}
body.aden-reference-ui .sidebar-nav .nav-section-label{font-size:9.5px!important;line-height:1.35!important;letter-spacing:.085em!important;margin:15px 9px 8px!important;}
body.aden-reference-ui .sidebar-nav .sidebar-link{box-sizing:border-box!important;display:flex!important;align-items:center!important;min-width:0!important;width:100%!important;min-height:39px!important;height:auto!important;padding:7px 9px!important;gap:11px!important;border-radius:9px!important;font-size:12.5px!important;line-height:1.3!important;}
body.aden-reference-ui .sidebar-nav .sidebar-link .nav-icon{display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 26px!important;width:26px!important;min-width:26px!important;height:26px!important;line-height:1!important;}
body.aden-reference-ui .sidebar-nav .sidebar-link .nav-icon i{display:flex!important;align-items:center!important;justify-content:center!important;width:20px!important;height:20px!important;line-height:1!important;}
body.aden-reference-ui .sidebar-nav .sidebar-link>span:not(.nav-icon){min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;}
body.aden-reference-ui .sidebar-nav .sidebar-link.active{background:#fff0e9!important;color:#d84a1b!important;}
body.aden-reference-ui .sidebar-user{min-width:0!important;}
/* User & Role metrics: retain Bootstrap row/column sizing, never mix grid with 25% columns. */
body.aden-reference-ui .system-content .user-admin-page section.row.ua-metrics{display:flex!important;flex-wrap:wrap!important;align-items:stretch!important;grid-template-columns:none!important;gap:0!important;width:calc(100% + 24px)!important;margin:12px -12px 16px!important;padding:0!important;}
body.aden-reference-ui .system-content .user-admin-page section.row.ua-metrics>.col-6{display:block!important;flex:0 0 25%!important;width:25%!important;max-width:25%!important;min-width:0!important;padding:0 12px 12px!important;box-sizing:border-box!important;}
body.aden-reference-ui .system-content .user-admin-page section.row.ua-metrics .ua-metric{box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-width:0!important;min-height:112px!important;height:112px!important;display:flex!important;flex-direction:column!important;justify-content:center!important;position:relative!important;padding:15px 55px 14px 16px!important;overflow:hidden!important;}
body.aden-reference-ui .system-content .user-admin-page .ua-metric-label{font-size:11px!important;font-weight:720!important;line-height:1.32!important;white-space:normal!important;word-break:normal!important;overflow-wrap:normal!important;writing-mode:horizontal-tb!important;letter-spacing:.025em!important;text-transform:uppercase!important;max-width:100%!important;}
body.aden-reference-ui .system-content .user-admin-page .ua-metric-value{font-size:23px!important;white-space:nowrap!important;line-height:1.2!important;}
body.aden-reference-ui .system-content .user-admin-page .ua-metric-icon{position:absolute!important;top:14px!important;right:14px!important;width:36px!important;height:36px!important;display:flex!important;align-items:center!important;justify-content:center!important;}
/* Shared content constraints: long values cannot squeeze the panel or hide table cells. */
body.aden-reference-ui .system-content :is(.row,.card,.card-body,.ua-panel,.ua-panel-body,.metric-grid,.enterprise-page,.dashboard-layout){min-width:0}
body.aden-reference-ui .system-content :is(.table-responsive,.ua-table-wrap,.table-scroll,.table-container){max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
body.aden-reference-ui .system-content .table-responsive>table{width:100%;}
body.aden-reference-ui .system-content table th{white-space:nowrap}
body.aden-reference-ui .system-content table td{overflow-wrap:normal;word-break:normal;}
body.aden-reference-ui .system-content :is(.metric-value,.kpi-value,.ua-metric-value,.summary-number){font-variant-numeric:tabular-nums;}
body.aden-reference-ui .system-content :is(.metric-icon,.kpi-icon,.card-icon,.panel-icon,.ua-metric-icon,.stat-icon,.finance-icon,.nav-icon){box-sizing:border-box;align-items:center;justify-content:center;text-align:center;}
body.aden-reference-ui .system-content :is(.metric-icon,.kpi-icon,.card-icon,.panel-icon,.ua-metric-icon,.stat-icon,.finance-icon)>:is(i,svg){margin:auto;flex:none;}
body.aden-reference-ui .system-content .btn:has(>i){align-items:center;gap:7px}
body.aden-reference-ui .system-content :is(input,select,textarea){max-width:100%;}
body.aden-reference-ui .system-content :is(.card-header,.ua-panel-head,.ua-panel-header){min-width:0;}
@media(max-width:1199.98px){body.aden-reference-ui .system-content .user-admin-page section.row.ua-metrics>.col-6{flex-basis:50%!important;width:50%!important;max-width:50%!important}}
@media(max-width:991.98px){body.aden-reference-ui .system-main{margin-left:0!important}body.aden-reference-ui .system-sidebar{width:min(280px,88vw)!important}body.aden-reference-ui .system-content{padding:12px!important}}
@media(max-width:575.98px){body.aden-reference-ui .system-content .user-admin-page section.row.ua-metrics>.col-6{flex-basis:100%!important;width:100%!important;max-width:100%!important}body.aden-reference-ui .system-content .user-admin-page section.row.ua-metrics .ua-metric{height:100px!important;min-height:100px!important}body.aden-reference-ui .system-content{padding:10px!important}}
@media(prefers-reduced-motion:reduce){body.aden-reference-ui .system-content *,body.aden-reference-ui .sidebar-nav *{transition-duration:.01ms!important;animation-duration:.01ms!important}}
