/* Geometry extracted from atlas-admin.css neutral/sidebar/dashboard layers.
   Table styles are a demonstration frame, not the DataTable engine. */
.tr-shell { min-height:100dvh; padding-left:258px; background:var(--tr-bg); }
.tr-sidebar { width:258px; position:fixed; inset:0 auto 0 0; background:var(--tr-sidebar); padding:17px 12px 11px; display:flex; flex-direction:column; z-index:20; }
.tr-brand { display:flex; gap:10px; align-items:center; padding:0 4px 22px; min-height:54px; }
.tr-brand-mark { width:32px; height:32px; border-radius:11px; background:var(--tr-text); color:var(--tr-bg); display:grid; place-items:center; flex:none; }
.tr-brand strong { font-size:13px; font-weight:650; display:block; }
.tr-brand small { font-size:10px; color:var(--tr-muted); display:block; }
.tr-module-switcher { margin-block: var(--tr-space-1); }
.tr-module-switcher > summary { display: inline-flex; cursor: pointer; }
.tr-module-switcher-links { display: flex; flex-wrap: wrap; gap: var(--tr-space-1); padding-block: var(--tr-space-1); }
.tr-module-switcher-links [aria-current] { background: var(--tr-selected); }
.tr-module-switcher-links [aria-disabled] { color: var(--tr-muted); }
.tr-nav { display:grid; gap:3px; }
.tr-nav a,.tr-sidebar-utility { min-height:38px; display:flex; align-items:center; gap:12px; padding:0 12px; border-radius:9px; color:var(--tr-text); text-decoration:none; font-size:calc(13px + var(--tr-font-step)); font-weight:480; background:transparent; border:0; width:100%; text-align:left; cursor:pointer; }
.tr-nav a:hover,.tr-sidebar-utility:hover { background:var(--tr-hover); }
.tr-nav a[aria-current='page'] { background:var(--tr-selected); font-weight:540; }
.tr-nav .tr-icon,.tr-sidebar-utility .tr-icon { width:18px; height:18px; flex:none; }
.tr-nav-label { padding:22px 12px 8px; color:var(--tr-muted); font-size:10px; letter-spacing:.5px; text-transform:uppercase; }
.tr-sidebar-bottom { margin-top:auto; display:grid; gap:3px; padding-top:24px; }
.tr-collapsed .tr-shell { padding-left:65px; }
.tr-collapsed .tr-sidebar { width:65px; padding-inline:9px; }
.tr-collapsed .tr-brand { padding-inline:7px; }
.tr-collapsed .tr-sidebar .tr-hide-collapsed,.tr-collapsed .tr-sidebar .tr-nav-label { display:none; }
.tr-collapsed .tr-nav a,.tr-collapsed .tr-sidebar-utility { justify-content:center; padding:0; }
.tr-main { width:100%; max-width:1610px; padding:28px clamp(18px,3.15vw,51px) 60px; margin:auto; min-width:0; }
.tr-page-head { display:flex; align-items:center; justify-content:space-between; gap:16px; min-height:48px; margin-bottom:21px; }
.tr-page-head h1 { font-size:var(--tr-font-title); font-weight:650; letter-spacing:-.85px; line-height:1.25; }
.tr-page-head p { margin:5px 0 0; color:var(--tr-muted); font-size:var(--tr-font-sm); }
.tr-page-actions { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.tr-card { background:var(--tr-surface); border:1px solid var(--tr-border); border-radius:14px; padding:17px; min-width:0; }
.tr-card h2 { font-size:calc(15px + var(--tr-font-step)); font-weight:600; margin:0 0 16px; }
.tr-card h3 { font-size:var(--tr-font-control); font-weight:600; margin:0 0 8px; }
.tr-kpis { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.tr-kpi { padding:16px 17px; }
.tr-kpi-label { display:flex; align-items:center; justify-content:space-between; color:var(--tr-muted); font-size:var(--tr-font-sm); }
.tr-kpi strong { display:block; font-size:calc(25px + var(--tr-font-step)); font-weight:640; margin:8px 0 6px; letter-spacing:-.6px; font-variant-numeric:tabular-nums; }
.tr-kpi small { color:var(--tr-muted); font-size:11px; }
.tr-grid { display:grid; grid-template-columns:minmax(0,1.8fr) minmax(260px,1fr); gap:16px; }
.tr-stack { display:grid; gap:18px; }
.tr-toolbar { display:flex; flex-wrap:wrap; align-items:center; gap:12px; min-height:55px; padding:10px 0; }
.tr-toolbar-search { flex:1; max-width:280px; min-width:130px; }
.tr-toolbar .tr-input { padding:7px 10px; min-height:35px; height:35px; border-radius:8px; }
.tr-toolbar-end { margin-left:auto; display:flex; align-items:center; gap:8px; }
.tr-setting { display:flex; gap:24px; justify-content:space-between; align-items:center; padding:16px 0; border-bottom:1px solid var(--tr-border); }
.tr-setting:last-child { border-bottom:0; }
.tr-setting strong { font-size:var(--tr-font-control); font-weight:550; display:block; }
.tr-setting p { font-size:var(--tr-font-sm); color:var(--tr-muted); margin:5px 0 0; max-width:480px; }
.tr-setting-control { min-width:160px; display:flex; justify-content:flex-end; gap:8px; align-items:center; }
.tr-chart { display:block; width:100%; height:230px; overflow:visible; color:var(--tr-text); }
.tr-chart .tr-grid-line { stroke:var(--tr-border); stroke-dasharray:3 5; }
.tr-chart text { font-family:var(--tr-font); fill:var(--tr-muted); font-size:11px; }
.tr-chart .tr-chart-line { fill:none; stroke:var(--tr-text); stroke-width:2; vector-effect:non-scaling-stroke; }
.tr-chart .tr-chart-fill { fill:var(--tr-selected); opacity:.55; }
.tr-chart-legend { display:flex; gap:18px; color:var(--tr-muted); font-size:var(--tr-font-sm); }
.tr-mini-row { display:flex; gap:14px; align-items:center; padding:13px 0; border-bottom:1px solid var(--tr-border); font-size:var(--tr-font-control); }
.tr-mini-row:last-child { border:0; }
.tr-mini-row strong { font-weight:550; }
.tr-mini-row small { display:block; color:var(--tr-muted); margin-top:3px; font-size:11px; }
.tr-mini-row > :last-child { margin-left:auto; font-variant-numeric:tabular-nums; }
.tr-table-frame { position:relative; border-block:1px solid var(--tr-border); }
.tr-table-scroll { overflow:auto; overscroll-behavior-x:contain; }
.tr-table-frame .tr-progress { position:absolute; z-index:2; inset:0 0 auto; }
.tr-table { border-collapse:collapse; width:100%; min-width:800px; table-layout:fixed; font-size:var(--tr-font-control); }
.tr-table th { text-align:left; background:var(--tr-soft); color:var(--tr-label); font-weight:500; height:43px; border-bottom:1px solid var(--tr-border); padding:10px 12px; }
.tr-table td { height:var(--tr-row-height); padding:var(--tr-row-pad) 12px; border-bottom:1px solid var(--tr-border); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.tr-table tr:last-child td { border-bottom:0; }
.tr-table tbody tr:hover { background:var(--tr-soft); }
.tr-table td[data-name] { font-weight:565; }
.tr-table .tr-number { text-align:right; font-variant-numeric:tabular-nums; }
.tr-table .tr-btn--icon { width:30px; min-height:28px; padding:4px; border:0; background:transparent; }
.tr-table-footer { display:flex; gap:12px; justify-content:space-between; padding:13px 0; color:var(--tr-muted); font-size:var(--tr-font-sm); }
.tr-state { min-height:170px; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; gap:10px; padding:24px; }
.tr-state h3,.tr-state p { margin:0; }
.tr-state p { max-width:420px; color:var(--tr-muted); font-size:var(--tr-font-sm); }
.tr-bottom-nav { display:none; }
.tr-density { display:grid; gap:5px; min-width:190px; }
.tr-density input { width:100%; accent-color:var(--tr-text); }
.tr-density-labels { display:flex; justify-content:space-between; color:var(--tr-muted); font-size:10px; }
@media(max-width:1000px) { .tr-grid { grid-template-columns:1fr; } }
@media(max-width:700px) {
 .tr-shell,.tr-collapsed .tr-shell { padding-left:0; }
 .tr-sidebar { display:none; }
 .tr-main { padding:19px 14px calc(105px + env(safe-area-inset-bottom)); }
 .tr-page-head { align-items:flex-start; flex-wrap:wrap; margin-bottom:16px; }
 .tr-page-head h1 { font-size:calc(24px + var(--tr-font-step)); }
 .tr-page-actions { width:100%; }
 .tr-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .tr-kpi { padding:13px; }
 .tr-kpi strong { font-size:calc(23px + var(--tr-font-step)); }
 .tr-toolbar { gap:8px; }
 .tr-toolbar-search { max-width:none; }
 .tr-toolbar-end { margin-left:0; }
 .tr-setting { align-items:flex-start; flex-direction:column; gap:12px; }
 .tr-setting-control { justify-content:flex-start; max-width:100%; }
 .tr-bottom-nav { display:flex; position:fixed; z-index:20; inset:auto 0 0; padding:7px 10px calc(7px + env(safe-area-inset-bottom)); border-top:1px solid var(--tr-border); background:var(--tr-sidebar); justify-content:space-around; }
 .tr-bottom-nav a,.tr-bottom-nav button { display:flex; flex-direction:column; align-items:center; gap:4px; min-width:54px; min-height:46px; border:0; background:transparent; color:var(--tr-muted); text-decoration:none; font:inherit; font-size:10px; border-radius:10px; }
 .tr-bottom-nav [aria-current='page'] { color:var(--tr-text); background:var(--tr-selected); }
 .tr-bottom-nav svg { width:21px; height:21px; }
 .tr-card { padding:14px; }
 .tr-chart { height:190px; }
}

.tr-table input[type='checkbox'] { width:16px; height:16px; margin:0; accent-color:var(--tr-accent); }

.tr-collapsed .tr-nav a { min-height:42px; }
.tr-sidebar-bottom { grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; }
.tr-sidebar-bottom .tr-sidebar-utility { justify-content:center; padding:0 4px; }
.tr-sidebar-bottom .tr-hide-collapsed { font-size:10px; }
.tr-collapsed .tr-sidebar-bottom { grid-template-columns:1fr; }

/* Page shells use the Atlas sidebar and page geometry above. */
.tr-page-head > :is(h1,h2) { margin:0; font-size:var(--tr-font-title); font-weight:650; letter-spacing:-.85px; line-height:1.25; }
.tr-service-shell > .tr-sidebar { overflow-y:auto; overscroll-behavior:contain; }
.tr-service-shell > .tr-main { max-width:1610px; padding:28px clamp(18px,3.15vw,51px) 60px; }
.tr-service-nav { display:block; margin:0; min-width:0; }
.tr-service-nav > details + details { margin-top:8px; }
.tr-service-nav .tr-nav-label { padding:12px; cursor:pointer; color:var(--tr-label); }
.tr-service-nav details > div { display:grid; gap:3px; }
.tr-service-nav button { min-height:38px; width:100%; justify-content:flex-start; text-align:start; background:transparent; border-color:transparent; }
.tr-service-nav button:hover { background:var(--tr-hover); }
.tr-service-nav button[aria-current='page'] { background:var(--tr-selected); font-weight:540; }
.tr-page[data-page-type="D"] .tr-table { font-variant-numeric:tabular-nums; }
.tr-ui .atlas-date-overlay { --text:var(--tr-text); --panel:var(--tr-surface); --line:var(--tr-border); --soft:var(--tr-soft); --bg:var(--tr-bg); --muted:var(--tr-muted); }
@media(max-width:700px) {
 .tr-service-shell > .tr-sidebar { display:block; position:static; width:auto; padding:4px 14px; }
 .tr-service-shell > .tr-main { padding:19px 14px 48px; }
 .tr-page-head > :is(h1,h2) { font-size:calc(24px + var(--tr-font-step)); }
 .tr-service-nav details > div { display:flex; overflow-x:auto; overscroll-behavior-inline:contain; }
 .tr-service-nav button { width:auto; white-space:nowrap; }
}
.tr-report-trend { margin:16px 0; }
.tr-report-trend figcaption { font-weight:600; }
.tr-ui [data-traff-table] { --panel2:var(--tr-soft); --line:var(--tr-border); --text:var(--tr-text); --muted:var(--tr-muted); }
.tr-report-filters { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr)); gap:12px; }
.tr-report-filters > label { min-width:0; margin:0; }
.tr-report-filters .tr-input { width:100%; }
.tr-report-filters > .tr-report-filter-row,.tr-report-advanced { grid-column:1/-1; }
.tr-report-advanced > summary { cursor:pointer; margin-bottom:6px; color:var(--tr-label); }
.tr-report-filters [hidden] { display:none; }
.tr-service-shell .tr-service-header { justify-content:flex-start; }
.tr-service-header > h1 { margin-inline-end:auto; }
.tr-table > tbody > .tr-table-detail > td { white-space:normal; padding:16px 20px; background:var(--tr-soft); }
.tr-table-detail h4 { margin:0 0 8px; }
