/* Aden corporate cards & compact filters — final scoped layer.
   Design-only: no DOM replacement, no change to form names or JS handlers. */
body.system-body.aden-reference-ui{
  --aden-ink:#283948;--aden-orange:#ed4f18;--aden-stroke:#e8edf2;
  --aden-canvas:#f6f8fb;--aden-muted:#708298;
  font-family:Inter,"Segoe UI",Arial,sans-serif;
  color:var(--aden-ink);background:var(--aden-canvas);
  font-size:clamp(13px,.82vw,14px);
}
body.system-body.aden-reference-ui .system-content{min-width:0;padding:clamp(13px,1.4vw,22px)!important;}
body.system-body.aden-reference-ui .system-content :is(h1,h2,h3,h4){letter-spacing:-.025em;line-height:1.25;overflow-wrap:normal;}
body.system-body.aden-reference-ui .system-content h1{font-size:clamp(20px,1.7vw,25px)!important;}
body.system-body.aden-reference-ui .system-content h2{font-size:clamp(16px,1.25vw,20px)!important;}
body.system-body.aden-reference-ui .system-content :is(.card,.ua-panel,.lc-panel,.metric-card,.kpi-card,.ua-metric,.stat-card,.dashboard-panel,.report-card,.enterprise-card){
  border:1px solid var(--aden-stroke)!important;border-radius:19px!important;
  background:#fff!important;box-shadow:0 5px 20px rgba(26,45,64,.035)!important;
  min-width:0;max-width:100%;
}
body.system-body.aden-reference-ui .system-content :is(.card,.ua-panel,.lc-panel,.kpi-card,.ua-metric,.stat-card){transition:box-shadow .2s ease,border-color .2s ease,transform .2s ease;}
@media (hover:hover){body.system-body.aden-reference-ui .system-content :is(.kpi-card,.ua-metric,.metric-card,.stat-card):hover{box-shadow:0 9px 25px rgba(26,45,64,.085)!important;transform:translateY(-2px);}}
/* Dashboard cards — compact and legible at every scale */
body.system-body.aden-reference-ui .system-content .kpi-grid{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:12px!important;}
body.system-body.aden-reference-ui .system-content .kpi-grid>.kpi-card{height:auto!important;min-height:116px!important;padding:15px 16px!important;overflow:hidden!important;}
body.system-body.aden-reference-ui .kpi-card .kpi-top{display:flex!important;gap:8px;align-items:center!important;justify-content:space-between!important;}
body.system-body.aden-reference-ui .kpi-card .kpi-label{font-size:clamp(10px,.67vw,11.5px)!important;font-weight:700!important;letter-spacing:.035em;line-height:1.35!important;}
body.system-body.aden-reference-ui .kpi-card .kpi-value{font-size:clamp(19px,1.45vw,25px)!important;line-height:1.2!important;white-space:nowrap!important;max-width:100%;font-variant-numeric:tabular-nums;letter-spacing:-.035em;}
body.system-body.aden-reference-ui .kpi-card .kpi-value.money{font-size:clamp(14px,1.05vw,20px)!important;letter-spacing:-.04em!important;}
body.system-body.aden-reference-ui .kpi-card .kpi-foot{font-size:clamp(10px,.72vw,12px)!important;line-height:1.45!important;color:var(--aden-muted)!important;}
/* User management: explicitly own column sizing, don't combine bootstrap % widths with CSS grid */
body.system-body.aden-reference-ui .system-content section.row.ua-metrics{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:13px!important;width:100%!important;margin:15px 0 19px!important;padding:0!important;}
body.system-body.aden-reference-ui .system-content section.row.ua-metrics>[class*="col-"]{display:block!important;flex:none!important;float:none!important;min-width:0!important;max-width:none!important;width:auto!important;margin:0!important;padding:0!important;}
body.system-body.aden-reference-ui .system-content section.row.ua-metrics .ua-metric{position:relative!important;display:flex!important;flex-direction:column!important;justify-content:flex-end!important;align-items:flex-start!important;gap:4px;min-width:0!important;min-height:119px!important;height:auto!important;padding:17px 62px 17px 18px!important;overflow:hidden!important;}
body.system-body.aden-reference-ui .system-content .ua-metric .ua-metric-label{order:0!important;display:block!important;width:100%!important;margin:0!important;font-size:clamp(11px,.74vw,12px)!important;line-height:1.4!important;writing-mode:horizontal-tb!important;white-space:normal!important;word-break:normal!important;overflow-wrap:normal!important;letter-spacing:0!important;color:#687a8e!important;text-transform:none!important;}
body.system-body.aden-reference-ui .system-content .ua-metric .ua-metric-value{order:1!important;margin:6px 0 0!important;font-size:clamp(24px,2vw,31px)!important;line-height:1.05!important;font-weight:750!important;white-space:nowrap!important;}
body.system-body.aden-reference-ui .system-content .ua-metric .ua-metric-icon{position:absolute!important;top:17px!important;right:17px!important;width:40px!important;height:40px!important;border-radius:13px!important;display:grid!important;place-items:center!important;flex:none!important;}
/* Icon alignment only in icon holders: never target generic card content or text nodes */
body.system-body.aden-reference-ui :is(.kpi-icon,.ua-metric-icon,.nav-icon,.sidebar-icon,.stat-icon,.metric-icon,.card-icon,.panel-icon,.icon-box,.brand-mark){display:inline-flex!important;align-items:center!important;justify-content:center!important;flex-shrink:0;}
body.system-body.aden-reference-ui :is(.kpi-icon,.ua-metric-icon,.nav-icon,.sidebar-icon,.stat-icon,.metric-icon,.card-icon,.panel-icon,.icon-box) :is(i,svg){position:static!important;float:none!important;transform:none!important;inset:auto!important;margin:auto!important;line-height:1!important;vertical-align:middle;}
/* Clean white sidebar, restrained Aden orange selected state */
body.system-body.aden-reference-ui .system-sidebar{background:#fff!important;border-right:1px solid var(--aden-stroke)!important;}
body.system-body.aden-reference-ui .sidebar-brand{background:#fff!important;display:flex!important;align-items:center!important;gap:10px!important;min-height:74px!important;padding:14px 14px!important;border-bottom:1px solid #f0f2f6!important;}
body.system-body.aden-reference-ui .sidebar-brand .brand-mark{width:40px!important;height:40px!important;min-width:40px!important;border:1px solid #eef1f4!important;border-radius:12px!important;background:#fff!important;padding:6px!important;}
body.system-body.aden-reference-ui .sidebar-brand .brand-mark img{object-fit:contain;max-width:100%;max-height:100%;}
body.system-body.aden-reference-ui .sidebar-brand .brand-copy{min-width:0;display:flex;flex-direction:column;gap:3px;}
body.system-body.aden-reference-ui .sidebar-brand .brand-copy strong{font-size:12px!important;line-height:1.25!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#283948!important;}
body.system-body.aden-reference-ui .sidebar-brand .brand-copy span{font-size:9px!important;line-height:1.25!important;letter-spacing:.055em!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
body.system-body.aden-reference-ui .sidebar-nav{padding:14px 10px!important;}
body.system-body.aden-reference-ui .sidebar-nav .nav-section-label{font-size:10px!important;letter-spacing:.075em!important;color:#91a0b1!important;margin:16px 11px 7px!important;}
body.system-body.aden-reference-ui .sidebar-nav .sidebar-link{min-height:38px!important;padding:8px 11px!important;margin:2px 0!important;gap:11px!important;border-radius:12px!important;font-size:12px!important;font-weight:550!important;white-space:nowrap;}
body.system-body.aden-reference-ui .sidebar-nav .sidebar-link .nav-icon{width:22px!important;min-width:22px!important;height:22px!important;background:transparent!important;}
body.system-body.aden-reference-ui .sidebar-nav .sidebar-link.active{background:#fff0e9!important;color:#d94b1a!important;box-shadow:none!important;}
body.system-body.aden-reference-ui .sidebar-nav .sidebar-link.active .nav-icon{color:#ed4f18!important;}
/* Slim filters: preserve all named inputs, selects, labels, submit actions and their JS behavior */
body.system-body.aden-reference-ui .system-content :is(.ua-toolbar,.filter-bar,.filters-bar,.filter-toolbar,.filter-row,.table-toolbar,.search-toolbar,.list-toolbar,.toolbar-filters){display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:8px!important;min-height:0!important;max-width:100%!important;padding:10px 12px!important;border-radius:15px!important;background:#f8fafc!important;}
body.system-body.aden-reference-ui .system-content :is(.ua-toolbar,.filter-bar,.filters-bar,.filter-toolbar,.filter-row,.table-toolbar,.search-toolbar,.list-toolbar,.toolbar-filters) :is(.form-control,.form-select,input:not([type=checkbox]):not([type=radio]),select,button,.btn){min-height:34px!important;height:34px!important;max-width:100%;font-size:12px!important;border-radius:999px!important;padding:6px 13px!important;box-shadow:none!important;}
body.system-body.aden-reference-ui .system-content :is(.ua-toolbar,.filter-bar,.filters-bar,.filter-toolbar,.filter-row,.table-toolbar,.search-toolbar,.list-toolbar,.toolbar-filters) :is(.form-control,.form-select,input:not([type=checkbox]):not([type=radio]),select){background-color:#fff!important;border:1px solid #e2e9ef!important;}
body.system-body.aden-reference-ui .system-content :is(.ua-toolbar,.filter-bar,.filters-bar,.filter-toolbar,.filter-row,.table-toolbar,.search-toolbar,.list-toolbar,.toolbar-filters) .btn{white-space:nowrap;}
/* Tables: no horizontal collision between financial figures and names */
body.system-body.aden-reference-ui .system-content .table-responsive{max-width:100%;overflow-x:auto!important;}
body.system-body.aden-reference-ui .system-content table{font-size:12.5px;}
body.system-body.aden-reference-ui .system-content table th{font-size:11px!important;font-weight:700!important;letter-spacing:.035em;white-space:nowrap;}
body.system-body.aden-reference-ui .system-content table :is(th,td){padding:10px 12px;vertical-align:middle;}
body.system-body.aden-reference-ui .system-content table td{overflow-wrap:normal;}
body.system-body.aden-reference-ui .system-content input:focus-visible,body.system-body.aden-reference-ui .system-content select:focus-visible{outline:2px solid #ed4f18;outline-offset:1px;}
@media(max-width:1250px){body.system-body.aden-reference-ui .system-content .kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;}}
@media(max-width:1050px){body.system-body.aden-reference-ui .system-content section.row.ua-metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important;}}
@media(max-width:760px){body.system-body.aden-reference-ui .system-content .kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}body.system-body.aden-reference-ui .system-content{padding:12px!important;}}
@media(max-width:470px){body.system-body.aden-reference-ui .system-content section.row.ua-metrics{grid-template-columns:1fr!important;}body.system-body.aden-reference-ui .system-content .kpi-grid{grid-template-columns:1fr!important;}body.system-body.aden-reference-ui .system-content .ua-metric{min-height:100px!important;}}
@media(prefers-reduced-motion:reduce){body.system-body.aden-reference-ui .system-content :is(.kpi-card,.ua-metric,.metric-card,.stat-card){transition:none!important;transform:none!important;}}
