/* Client reference geometry at 1280 x 853. Dashboard-only shell overrides. */
.app-shell:has(.freight-dashboard){grid-template-columns:186px minmax(0,1fr);--bc-accent:#0968bd;--bc-text:#102445;--bc-muted:#51637c;--bc-border:#dfe6ee;--bc-canvas:#f1f6fb;color:#102445;font-family:"Segoe UI",Arial,sans-serif}
.app-shell:has(.freight-dashboard) .sidebar{background:#1a2e47;border-right:1px solid #b8cadd;height:100dvh;top:0;position:sticky;overflow-y:auto}
.app-shell:has(.freight-dashboard) .brand{display:flex;align-items:center;justify-content:center;position:relative;height:80px;min-height:80px;padding:8px 12px;border-bottom:1px solid #ffffff0a;box-sizing:border-box}
.app-shell:has(.freight-dashboard) .brand img{position:static;display:block;width:auto;max-width:100%;height:auto;max-height:64px;object-fit:contain}
.app-shell:has(.freight-dashboard) .sidebar nav{padding:4px 5px;gap:3px}
.app-shell:has(.freight-dashboard) .nav-entry{font-size:10px;line-height:16px;min-height:30px;padding:7px 10px;gap:10px;border:0;border-radius:2px;color:#f2f5fa}
.app-shell:has(.freight-dashboard) .nav-entry svg{width:14px;height:14px}
.app-shell:has(.freight-dashboard) .nav-entry.active{background:#0d5396;box-shadow:0 1px 4px #0e1f3930}
.app-shell:has(.freight-dashboard) .nav-entry:hover{background:#244b74}
.app-shell:has(.freight-dashboard) .bc-nav-group>summary{display:flex;list-style:none;padding:7px 10px;font-size:10px;cursor:pointer}
.bc-nav-chevron{margin-left:auto}.bc-nav-group[open] .bc-nav-chevron{transform:rotate(90deg)}
.app-shell:has(.freight-dashboard) .bc-nav-children{padding-left:10px}
.app-shell:has(.freight-dashboard) .sidebar-footer{display:block;margin-top:auto;font-size:8px;padding:10px;color:#b8c6d8;border-top:0}.app-shell:has(.freight-dashboard) .sidebar-footer span{font-size:8px;margin-top:3px}
.app-shell:has(.freight-dashboard) .topbar{height:37px;min-height:37px;padding:0 16px 0 18px;gap:10px;background:#f6f9fd;border-bottom:1px solid #e7edf3}
.app-shell:has(.freight-dashboard) .bc-company{font-size:14px;font-weight:700;color:#0c2045}
.app-shell:has(.freight-dashboard) .bc-desktop-toggle{border:0;background:transparent;padding:0;min-height:20px;width:14px;font-size:11px;order:-1}
.app-shell:has(.freight-dashboard) .bc-topbar-end{margin-left:auto}
.app-shell:has(.freight-dashboard) .bc-search{position:relative}
.app-shell:has(.freight-dashboard) .bc-search input{font-size:9px;min-height:25px;height:25px;padding:3px 7px 3px 27px;border:1px solid #d6dfe9;border-radius:4px;background:#fff}
.app-shell:has(.freight-dashboard) .bc-search button{position:absolute;left:2px;top:2px;font-size:0;min-height:21px;width:23px;padding:0;background:transparent;border:0}
.app-shell:has(.freight-dashboard) .bc-search button:before{content:"";width:8px;height:8px;border:1px solid #52657f;border-radius:50%;position:absolute;left:6px;top:4px}.app-shell:has(.freight-dashboard) .bc-search button:after{content:"";position:absolute;width:5px;height:1px;background:#52657f;transform:rotate(45deg);left:13px;top:13px}
.app-shell:has(.freight-dashboard) .bc-header-popover>summary{min-height:28px;gap:6px}.app-shell:has(.freight-dashboard) .bc-header-popover svg{width:18px;height:18px}.app-shell:has(.freight-dashboard) .bc-notification-count{font-size:8px;background:#d91e34;color:white;border-radius:10px;padding:0 3px;position:absolute;top:0;left:10px}
.app-shell:has(.freight-dashboard) .bc-company-chip{min-height:26px;max-width:138px;padding:1px 7px 1px 2px;gap:5px}
.app-shell:has(.freight-dashboard) .bc-company-chip-badge{width:20px;height:20px;font-size:8px;border-radius:3px}
.app-shell:has(.freight-dashboard) .bc-company-chip-name{font-size:10px;max-width:88px}
.app-shell:has(.freight-dashboard) .bc-company-chip-caret{font-size:8px}
.app-shell:has(.freight-dashboard) .avatar{background:#123c75;color:white;width:27px;height:27px;font-size:9px}.app-shell:has(.freight-dashboard) .bc-profile-name{font-size:9px;max-width:150px;line-height:12px}.app-shell:has(.freight-dashboard) .bc-profile-name small{font-size:8px}
.app-shell:has(.freight-dashboard) .page-content{padding:9px 10px 13px 13px;background:#f1f6fb;width:100%;max-width:none;margin:0}.app-shell:has(.freight-dashboard) .workspace-footer{display:none}
.freight-dashboard{font-size:11px;min-width:0}.dashboard-heading{height:50px;display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.dashboard-heading h1{font-size:21px;line-height:25px;font-weight:700;letter-spacing:-.5px;margin:0 0 1px;color:#101e45}.dashboard-heading p{font-size:10px;margin:0;line-height:15px;color:#284467}.dashboard-date-context{display:flex;align-items:center;gap:8px;white-space:nowrap;font-size:9px;color:#173558;background:#fff;border:1px solid #dce4ee;border-radius:4px;padding:6px 9px;height:28px;margin-top:5px;box-shadow:0 1px 3px #17304c05}.dashboard-date-context svg{width:13px;height:13px}.dashboard-date-context:hover{border-color:#b7c9da;background:#f8fbfe}.dashboard-filter-drawer{padding:0;background:transparent;border:0;margin:0 0 12px}.freight-dashboard .dashboard-filters{margin:0;border:1px solid #d6e1ec;border-radius:6px;background:#fff;box-shadow:0 1px 3px #17304c08;overflow:hidden}.freight-dashboard .dashboard-filters>summary{display:flex;align-items:center;gap:10px;flex-wrap:wrap;list-style:none;cursor:pointer;padding:10px 14px;font-size:12px;font-weight:700;color:#102445;background:linear-gradient(180deg,#f7fafc 0%,#f1f5f9 100%);border-bottom:1px solid #e4ecf3}.freight-dashboard .dashboard-filters>summary::-webkit-details-marker{display:none}.freight-dashboard .dashboard-filters>summary:before{content:"";width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:6px solid #4d6480;margin-right:2px;transition:transform .15s ease}.freight-dashboard .dashboard-filters:not([open])>summary{border-bottom:0}.freight-dashboard .dashboard-filters:not([open])>summary:before{transform:rotate(-90deg)}.freight-dashboard .dashboard-filters-title{font-size:12px;font-weight:700;letter-spacing:-.2px}.freight-dashboard .dashboard-filter-chips{display:flex;flex-wrap:wrap;gap:6px;margin-left:4px}.freight-dashboard .dashboard-filter-chip{display:inline-flex;align-items:center;padding:3px 8px;border-radius:999px;background:#e8f1f8;border:1px solid #d3e2ef;color:#2a4d6e;font-size:10px;font-weight:600;line-height:1.2}.freight-dashboard .dashboard-filters-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 14px;padding:14px}.freight-dashboard .dashboard-filters-grid .bc-field>label{font-size:10px;font-weight:600;color:#3d5570;margin-bottom:4px}.freight-dashboard .dashboard-filters-grid .bc-input{min-height:32px;padding:6px 9px;font-size:11px;border-color:#c5d3df;border-radius:4px}.freight-dashboard .dashboard-filters-actions{grid-column:1/-1;padding:2px 0 0;margin:0;gap:8px;border-top:1px solid #edf2f7;padding-top:12px}
.dashboard-kpis{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;margin-bottom:10px}.dashboard-kpi-link{display:flex;align-items:center;gap:9px;min-width:0;height:84px;padding:10px 9px;background:#e8f5fb;border:1px solid #e1edf5;border-radius:5px;color:#102445;box-shadow:0 1px 3px #16355403}.dashboard-kpi-link:hover{text-decoration:none;outline:1px solid #287ac2}.dashboard-kpi-icon{display:grid;place-items:center;flex-shrink:0;width:42px;height:43px;border-radius:13px;background:#d7edfb;color:#0769c3}.dashboard-kpi-icon svg{width:27px;height:27px}.dashboard-kpi-copy{min-width:0;flex:1}.dashboard-kpi-title{display:block;font-size:8px;font-weight:600;line-height:12px;white-space:nowrap;letter-spacing:-.2px}.dashboard-kpi-value{display:flex;align-items:center;gap:9px;min-height:32px}.dashboard-kpi-value strong{font-size:25px;line-height:30px;letter-spacing:-1px;color:#091e48;font-weight:700}.dashboard-kpi-copy small{display:block;font-size:8px;line-height:12px;white-space:nowrap;color:#243f60;min-height:12px}.dashboard-kpi-1,.dashboard-kpi-6{background:#e6f7ef;border-color:#e0f2e9}.dashboard-kpi-1 .dashboard-kpi-icon,.dashboard-kpi-6 .dashboard-kpi-icon{background:#cdf0dd;color:#08994f}.dashboard-kpi-2{background:#fff7e1;border-color:#faf1db}.dashboard-kpi-2 .dashboard-kpi-icon{background:#fff0bd;color:#b47900}.dashboard-kpi-3{background:#f1e9fb;border-color:#eae1f6}.dashboard-kpi-3 .dashboard-kpi-icon{background:#e4d1f7;color:#9346cf}.dashboard-kpi-4{background:#e1f3fc}.dashboard-kpi-5{background:#ffecf1;border-color:#f9e4eb}.dashboard-kpi-5 .dashboard-kpi-icon{background:#fbd8e2;color:#d42247}
.freight-dashboard .bc-card{border:1px solid #dfe6ee;background:#fff;border-radius:5px;box-shadow:0 1px 3px #17304c05;min-width:0;margin:0;overflow:hidden}.freight-dashboard .bc-card-heading{padding:8px 10px 5px;min-height:30px;gap:5px;border-bottom:0;align-items:center}.freight-dashboard .bc-card-heading h2{font-size:12px;font-weight:700;line-height:16px;margin:0;letter-spacing:-.3px;white-space:nowrap;color:#112347}.freight-dashboard .bc-card-heading>a{font-size:9px;white-space:nowrap;color:#09589e}.freight-dashboard .bc-card-body{padding:0 9px 8px;min-width:0}
.dashboard-top-grid{display:grid;grid-template-columns:1fr .89fr 1.58fr;gap:8px;margin-bottom:8px}.dashboard-top-grid>.bc-card{height:174px}.dashboard-status-chart{display:flex;align-items:center;gap:14px;height:133px;padding:0 2px}.dashboard-donut{position:relative;width:132px;height:132px;flex-shrink:0}.dashboard-donut svg{width:100%;height:100%;display:block}.dashboard-donut>div{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:10px;line-height:16px}.dashboard-donut strong{font-size:20px;font-weight:700;color:#0f2047}.dashboard-status-legend{list-style:none;margin:0;padding:0;flex:1;min-width:0;font-size:9px;line-height:15px}.dashboard-status-legend li{display:flex;align-items:center;gap:7px;margin:6px 0;white-space:nowrap}.dashboard-status-legend li>span{width:9px;height:9px;border-radius:50%;flex-shrink:0}.dashboard-status-legend a{color:#193352}.dashboard-status-legend strong{margin-left:auto;font-size:9px}
.dashboard-middle-grid{display:grid;grid-template-columns:1.04fr 1fr;gap:8px;margin-bottom:8px}.dashboard-middle-grid>.bc-card{height:274px}.dashboard-right-stack{display:grid;grid-template-rows:121px 145px;gap:8px;min-width:0}.dashboard-pipeline{display:flex;height:73px;margin:3px 0 5px;isolation:isolate}.dashboard-pipeline a{position:relative;display:flex;flex:1;min-width:0;align-items:center;justify-content:center;flex-direction:column;color:#132645;text-align:center;background:#c5dff9;clip-path:polygon(0 0,85% 0,100% 50%,85% 100%,0 100%,15% 50%);margin-left:-3px;padding:7px 7px 7px 10px;border-radius:1px}.dashboard-pipeline a:first-child{clip-path:polygon(0 0,85% 0,100% 50%,85% 100%,0 100%);margin-left:0;background:#a9cff6;padding-left:2px}.dashboard-pipeline a:nth-child(3){background:#d3efdb}.dashboard-pipeline a:nth-child(4){background:#fff0c6}.dashboard-pipeline a:nth-child(5){background:#e9d9f8}.dashboard-pipeline a:nth-child(6){background:#fbdce5}.dashboard-pipeline a:last-child{background:#d9f3e9;clip-path:polygon(0 0,100% 0,100% 100%,0 100%,15% 50%)}.dashboard-pipeline span{font-size:8px;font-weight:600;white-space:nowrap;letter-spacing:-.35px}.dashboard-pipeline strong{font-size:18px;line-height:25px;margin-top:2px}.dashboard-pipeline a:hover{text-decoration:none;filter:brightness(.97)}
.dashboard-table-scroll{overflow:auto;min-width:0;width:100%;scrollbar-width:thin}.dashboard-dates-table{height:133px}.dashboard-activity-table{height:235px}.dashboard-attention-table{height:147px}.freight-dashboard .bc-grid{width:100%;border-spacing:0;border:0;table-layout:auto;font-size:9px;white-space:nowrap;color:#253a57}.freight-dashboard .bc-grid th{font-weight:600;font-size:8px;background:#eaf0f6;border:0;line-height:13px}.freight-dashboard .bc-grid th,.freight-dashboard .bc-grid td{height:22px;padding:3px 5px;max-width:210px;text-overflow:ellipsis;overflow:hidden}.freight-dashboard .bc-grid td{border-bottom:1px solid #edf1f6;line-height:16px}.freight-dashboard .bc-grid tbody tr:nth-child(even){background:#fbfcfe}.freight-dashboard .bc-grid tbody tr:hover{background:#f0f7fc}.freight-dashboard .bc-grid a{color:#0863aa}.freight-dashboard .bc-status{padding:1px 6px;font-size:8px;line-height:15px;border-radius:3px;gap:0}.freight-dashboard .bc-status-dot{display:none}.freight-dashboard .bc-tone-information{background:#def0fe;color:#2875b5}.freight-dashboard .bc-tone-success{background:#dff5e7;color:#20844d}.freight-dashboard .bc-tone-warning{background:#fff0c5;color:#976a0d}.freight-dashboard .bc-tone-danger{background:#ffe3e9;color:#b92746}.dashboard-empty-row td{text-align:center!important;vertical-align:middle;color:#718297;font-size:10px;height:110px!important}.dashboard-activity-table .dashboard-empty-row td{height:209px!important}.dashboard-attention-table .dashboard-empty-row td{height:119px!important}.dashboard-item-type{display:inline-flex;align-items:center;gap:4px;background:#fff0c9;border-radius:3px;padding:0 5px;color:#946214;font-size:9px}.dashboard-item-type svg{width:12px;height:12px}.dashboard-item-type.is-urgent{color:#b52c4c;background:#ffe2e9}.freight-dashboard .bc-grid .dashboard-view-button{display:inline-block;background:#0869c0;border-radius:3px;min-width:45px;text-align:center;font-size:9px;line-height:18px;color:#fff;padding:0 9px}.freight-dashboard>.bc-card{height:186px}
.dashboard-right-stack>.bc-card:last-child{position:relative}.dashboard-cost-controls{position:absolute;right:8px;top:5px;display:flex;gap:4px;max-width:180px}.dashboard-cost-controls select{font-size:8px;padding:1px 4px;height:20px;max-width:100px;background:white;color:#334763;border:1px solid #e0e6ee;border-radius:3px}.dashboard-right-stack>.bc-card:last-child .bc-card-heading{padding-right:105px}.dashboard-right-stack>.bc-card:last-child .bc-card-heading h2{font-size:11px}.dashboard-cost-legend{height:16px;display:flex;justify-content:flex-end;gap:12px;font-size:8px;color:#53667e;padding-right:15px;align-items:center}.dashboard-cost-legend span{display:flex;align-items:center;gap:4px}.dashboard-cost-legend i{width:10px;height:10px;background:#096ac8;border-radius:1px}.dashboard-cost-legend .dashboard-cost-unavailable i{background:#acd0f5}.dashboard-cost-unavailable{color:#8593a5}.dashboard-cost-chart{display:grid;grid-template-columns:15px 40px 1fr;height:86px;position:relative;padding-top:2px;padding-bottom:15px}.dashboard-cost-currency{writing-mode:vertical-rl;transform:rotate(180deg);font-size:9px;text-align:center}.dashboard-cost-axis{display:flex;flex-direction:column;justify-content:space-between;text-align:right;font-size:8px;padding-right:6px;color:#4b5c74;line-height:8px}.dashboard-cost-plot{position:relative;display:flex;align-items:stretch;gap:8px;border-bottom:1px solid #dce5ee;background:repeating-linear-gradient(to top,transparent 0,transparent calc(25% - 1px),#edf2f7 calc(25% - 1px),#edf2f7 25%);min-width:0}.dashboard-cost-column{flex:1;min-width:0;position:relative;display:flex;align-items:flex-end;justify-content:center}.dashboard-cost-bar-pair{height:100%;width:75%;display:flex;align-items:flex-end;justify-content:center;gap:2px}.dashboard-cost-bar{width:50%;background:#086bc7;min-height:0}.dashboard-cost-label{position:absolute;top:calc(100% + 4px);font-size:7px;line-height:9px;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis;color:#405573}.dashboard-cost-empty{position:absolute;inset:0;display:grid;place-items:center;font-size:10px;color:#748398;pointer-events:none}.dashboard-cost-table{position:absolute;z-index:3;left:9px;right:9px;top:143px;background:white;font-size:9px}.dashboard-cost-table[open]{position:fixed;inset:20% 20% auto;padding:20px;box-shadow:0 8px 40px #142a4540;max-height:60vh;overflow:auto}.dashboard-cost-table summary{cursor:pointer}
.app-shell.bc-nav-collapsed:has(.freight-dashboard),.app-shell.bc-nav-collapsed:not(:has(.freight-dashboard)){grid-template-columns:64px minmax(0,1fr)}
@media(min-width:1550px){.app-shell:has(.freight-dashboard){grid-template-columns:186px minmax(0,1fr)}.freight-dashboard{max-width:none}.dashboard-kpi-title{font-size:10px}.dashboard-kpi-copy small{font-size:9px}.dashboard-kpi-link{height:91px}.dashboard-top-grid>.bc-card{height:190px}.dashboard-status-chart{height:150px}.dashboard-donut{width:145px;height:145px}.dashboard-status-legend{font-size:11px}.dashboard-middle-grid>.bc-card{height:294px}.dashboard-right-stack{grid-template-rows:125px 161px}.dashboard-cost-chart{height:100px}.dashboard-activity-table{height:255px}.freight-dashboard .bc-grid{font-size:10px}.freight-dashboard .bc-grid th{font-size:9px}.freight-dashboard .bc-grid th,.freight-dashboard .bc-grid td{height:25px}.dashboard-dates-table{height:151px}.freight-dashboard>.bc-card{height:191px}.dashboard-pipeline span{font-size:10px;letter-spacing:-.2px}}
@media(max-width:1100px) and (min-width:951px){.dashboard-kpi-icon{width:28px;height:34px}.dashboard-kpi-link{gap:4px;padding:8px 5px}.dashboard-kpi-title{font-size:7px}.dashboard-donut{width:100px;height:100px}.dashboard-status-chart{gap:7px}.dashboard-status-legend{font-size:8px}.dashboard-top-grid{grid-template-columns:1fr 1fr 1.4fr}.dashboard-pipeline span{font-size:7px}}
@media(max-width:950px){.app-shell:has(.freight-dashboard),.app-shell.bc-nav-collapsed:has(.freight-dashboard){grid-template-columns:1fr}.app-shell:has(.freight-dashboard) .sidebar{position:fixed;top:37px;height:calc(100dvh - 37px);width:220px}.app-shell:has(.freight-dashboard) .bc-nav-scrim{top:37px;left:220px}.dashboard-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}.dashboard-kpi-title{font-size:9px}.dashboard-top-grid{grid-template-columns:1fr 1fr}.dashboard-top-grid>.bc-card:last-child{grid-column:1/-1}.dashboard-middle-grid{grid-template-columns:1fr}.dashboard-right-stack{grid-template-rows:121px 165px}.dashboard-cost-chart{height:103px}.dashboard-cost-table{top:145px}.dashboard-pipeline span{font-size:10px}.freight-dashboard .dashboard-filters-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.app-shell:has(.freight-dashboard) .topbar{height:auto;min-height:37px;padding:8px 10px;gap:8px}.app-shell:has(.freight-dashboard) .sidebar{top:37px;height:calc(100dvh - 37px)}.app-shell:has(.freight-dashboard) .bc-nav-scrim{top:37px}.dashboard-heading{height:auto;min-height:75px;flex-wrap:wrap;gap:4px;margin-bottom:8px}.dashboard-heading h1{font-size:22px}.dashboard-heading p{font-size:10px}.dashboard-date-context{margin:0}.dashboard-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-kpi-title{font-size:8px}.dashboard-top-grid{grid-template-columns:1fr}.dashboard-top-grid>.bc-card{height:180px}.dashboard-status-chart{justify-content:center}.dashboard-status-legend{max-width:160px;font-size:10px}.dashboard-pipeline span{font-size:7px;white-space:normal}.dashboard-pipeline strong{font-size:16px}.dashboard-right-stack>.bc-card:last-child .bc-card-heading h2{font-size:10px}.dashboard-cost-label{font-size:6px}.dashboard-cost-plot{gap:3px}.dashboard-cost-table[open]{inset:15% 5% auto}.freight-dashboard .bc-grid{min-width:520px}.dashboard-attention-table .bc-grid{min-width:760px}.freight-dashboard .dashboard-filters-grid{grid-template-columns:1fr}.freight-dashboard .dashboard-filter-chips{display:none}}

.dashboard-cost-bar-previous,.dashboard-cost-legend .previous-cost-key{background:#acd0f5}.dashboard-cost-table{top:auto;bottom:0;left:auto;right:9px;font-size:7px}.dashboard-cost-table[open]{left:20%;right:20%;top:20%;bottom:auto;font-size:11px}.dashboard-cost-table[open] summary{padding:4px;margin-bottom:8px}
@media(max-width:600px){.dashboard-cost-table[open]{left:5%;right:5%;top:15%}.freight-dashboard .dashboard-empty-row td{text-align:left!important;padding-left:18px}}
/* Shared ERP sidebar: use the dashboard's navy palette and compact proportions on every route. */
.app-shell:not(:has(.freight-dashboard)){grid-template-columns:186px minmax(0,1fr)}
.app-shell:not(:has(.freight-dashboard)) .sidebar{background:#1a2e47;border-right:1px solid #b8cadd}
.app-shell:not(:has(.freight-dashboard)) .brand{display:flex;align-items:center;justify-content:center;position:relative;height:80px;min-height:80px;padding:8px 12px;border-bottom:1px solid #ffffff0a;box-sizing:border-box}
.app-shell:not(:has(.freight-dashboard)) .brand img{position:static;display:block;width:auto;max-width:100%;height:auto;max-height:64px;object-fit:contain}
.app-shell:not(:has(.freight-dashboard)) .brand span{display:none}
.app-shell:not(:has(.freight-dashboard)) .sidebar nav{padding:4px 5px;gap:3px}
.app-shell:not(:has(.freight-dashboard)) .nav-entry{font-size:10px;line-height:16px;min-height:30px;padding:7px 10px;gap:10px;border:0;border-radius:2px;color:#f2f5fa}
.app-shell:not(:has(.freight-dashboard)) .nav-entry svg{width:14px;height:14px}
.app-shell:not(:has(.freight-dashboard)) .nav-entry.active{background:#0d5396;box-shadow:0 1px 4px #0e1f3930}
.app-shell:not(:has(.freight-dashboard)) .nav-entry:hover{background:#244b74}
.app-shell:not(:has(.freight-dashboard)) .bc-nav-group>summary{display:flex;list-style:none;padding:7px 10px;font-size:10px;cursor:pointer}
.app-shell:not(:has(.freight-dashboard)) .bc-nav-children{padding-left:10px}
.app-shell:not(:has(.freight-dashboard)) .bc-nav-children .nav-entry{font-size:9px;min-height:29px;padding:6px 10px}
.app-shell:not(:has(.freight-dashboard)) .sidebar-footer{display:block;margin-top:auto;font-size:8px;padding:10px;color:#b8c6d8;border-top:0}
.app-shell:not(:has(.freight-dashboard)) .sidebar-footer span{font-size:8px;margin-top:3px;color:#91a4bb}
@media(max-width:1100px) and (min-width:951px){.app-shell:not(:has(.freight-dashboard)):not(.bc-nav-collapsed){grid-template-columns:186px minmax(0,1fr)}}
@media(max-width:950px){.app-shell:not(:has(.freight-dashboard)),.app-shell.bc-nav-collapsed:not(:has(.freight-dashboard)){grid-template-columns:minmax(0,1fr)}.app-shell:not(:has(.freight-dashboard)) .sidebar{width:220px;top:64px;height:calc(100dvh - 64px)}.app-shell:not(:has(.freight-dashboard)) .bc-nav-open .sidebar{display:flex}.app-shell:not(:has(.freight-dashboard)) .bc-nav-scrim{left:220px;top:64px}}
@media(min-width:1551px){.app-shell:not(:has(.freight-dashboard)):not(.bc-nav-collapsed){grid-template-columns:186px minmax(0,1fr)}}
@media(min-width:951px) and (max-width:1550px){.app-shell:not(:has(.freight-dashboard)):not(.bc-nav-collapsed){grid-template-columns:186px minmax(0,1fr)}}
.app-shell.bc-nav-collapsed:has(.freight-dashboard) .brand img,.app-shell.bc-nav-collapsed:not(:has(.freight-dashboard)) .brand img{position:static;width:40px;height:40px;max-height:40px;clip-path:none;object-fit:contain}
/* Icon-only collapse on every module (same as Dashboard). */
@media(min-width:951px){.app-shell.bc-nav-collapsed:not(:has(.freight-dashboard)){grid-template-columns:64px minmax(0,1fr)}.app-shell.bc-nav-collapsed:not(:has(.freight-dashboard)) .sidebar-footer,.app-shell.bc-nav-collapsed:not(:has(.freight-dashboard)) .nav-entry>span,.app-shell.bc-nav-collapsed:not(:has(.freight-dashboard)) .bc-nav-chevron,.app-shell.bc-nav-collapsed:not(:has(.freight-dashboard)) .bc-nav-children,.app-shell.bc-nav-collapsed:not(:has(.freight-dashboard)) .bc-nav-group{display:none}.app-shell.bc-nav-collapsed:not(:has(.freight-dashboard)) .nav-entry{justify-content:center;padding:10px 4px}.app-shell.bc-nav-collapsed:not(:has(.freight-dashboard)) .sidebar nav{padding:8px 4px}.app-shell.bc-nav-collapsed:not(:has(.freight-dashboard)) .brand{padding:8px 4px}}

/* Sidebar Global Page Search — collapsed icon → one expanded field with icon inside. */
.bc-nav-search{position:relative;z-index:40;width:100%;max-width:100%;min-width:0;box-sizing:border-box;padding:4px 10px 6px;margin:0;overflow:visible}
.bc-nav-search-icon{display:grid;place-items:center;width:32px;height:32px;margin:2px auto;padding:0;border:0;border-radius:4px;background:transparent;color:#d7e3ef;cursor:pointer}
.bc-nav-search-icon:hover,.bc-nav-search-icon:focus-visible{background:#244b74;color:#fff;outline:none}
.bc-nav-search-icon svg{width:16px;height:16px}
.bc-nav-search-shell{position:relative;width:100%;max-width:100%;min-width:0;box-sizing:border-box;animation:bc-nav-search-in .12s ease-out}
@keyframes bc-nav-search-in{from{opacity:.5}to{opacity:1}}
.bc-nav-search-field{display:flex;align-items:center;gap:0;width:100%;max-width:100%;min-width:0;height:32px;box-sizing:border-box;background:#fff;border:1px solid #9ec3e0;border-radius:4px;box-shadow:0 0 0 1px #cfe3f4 inset;overflow:hidden}
.bc-nav-search-field:focus-within{border-color:#5ba3d9;box-shadow:0 0 0 2px #5ba3d955}
.bc-nav-search-glyph{flex:0 0 auto;display:grid;place-items:center;width:30px;height:100%;color:#6a7f97;pointer-events:none}
.bc-nav-search-glyph svg{width:14px;height:14px;display:block}
.bc-nav-search-input{flex:1 1 auto;min-width:0;width:100%;max-width:100%;height:100%;margin:0;padding:0 4px 0 0;border:0;outline:none;background:transparent;box-shadow:none;color:#1a2b45;font-size:12px;line-height:1.2;box-sizing:border-box}
.bc-nav-search-input::placeholder{color:#8a9bb0;font-weight:400}
.bc-nav-search-input:focus{outline:none;box-shadow:none}
.bc-nav-search-clear{flex:0 0 auto;width:24px;height:24px;margin-right:4px;padding:0;border:0;border-radius:3px;background:transparent;color:#6a7f97;font-size:16px;line-height:1;cursor:pointer}
.bc-nav-search-clear:hover{background:#eef3f8;color:#1a2b45}
.bc-nav-search-results{position:absolute;left:0;right:0;top:calc(100% + 2px);margin:0;padding:4px 0;list-style:none;max-height:220px;overflow-x:hidden;overflow-y:auto;background:#fff;border:1px solid #d5e0ea;border-radius:4px;box-shadow:0 10px 22px #0b1c2e38;z-index:50;box-sizing:border-box;width:100%;max-width:100%;min-width:0}
.bc-nav-search-results>li{margin:0;padding:0}
.bc-nav-search-item{display:flex;align-items:center;gap:10px;min-height:34px;padding:7px 12px;cursor:pointer;color:#1a2b45;font-size:12px;line-height:16px;font-weight:400;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-decoration:none;box-sizing:border-box;width:100%}
.bc-nav-search-item:hover,.bc-nav-search-results>li.is-active .bc-nav-search-item{background:#e7f1f8;text-decoration:none;color:#1a2b45}
.bc-nav-search-item svg{width:15px;height:15px;flex-shrink:0;color:#5a6f88}
.bc-nav-search-item>span{min-width:0;overflow:hidden;text-overflow:ellipsis}
.bc-nav-search-empty{padding:12px;font-size:12px;color:#6a7f97;text-align:center}
@media(min-width:951px){
 .app-shell.bc-nav-collapsed .bc-nav-search{padding:4px 6px}
 .app-shell.bc-nav-collapsed .bc-nav-search.is-expanded .bc-nav-search-shell{width:220px;max-width:none}
}

/* Global Users & Permissions — Internal User modal */
.bc-user-modal-scrim{position:fixed;inset:0;background:#0b1c2e66;z-index:80}
.bc-user-modal{position:fixed;z-index:81;left:50%;top:50%;transform:translate(-50%,-50%);width:min(920px,94vw);max-height:90dvh;display:flex;flex-direction:column;background:#fff;border:1px solid #d5e0ea;border-radius:8px;box-shadow:0 16px 48px #0b1c2e40;overflow:hidden}
.bc-user-modal-header{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;padding:16px 18px;border-bottom:1px solid #e4ecf3}
.bc-user-modal-header h2{margin:0 0 4px;font-size:18px}
.bc-user-modal-header p{margin:0;font-size:12px}
.bc-user-modal-body{padding:16px 18px;overflow:auto;min-height:0;flex:1}
.bc-user-section{margin:0 0 18px;padding-bottom:14px;border-bottom:1px solid #edf2f7}
.bc-user-section:last-of-type{border-bottom:0}
.bc-user-section h3{margin:0 0 10px;font-size:13px;font-weight:700;color:#102445}
.bc-field-full{grid-column:1/-1}
.bc-role-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 14px}
.bc-check-row{display:flex;align-items:center;gap:8px;font-size:12px;min-height:28px}
.bc-company-assign-toolbar{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:10px;align-items:center}
.bc-company-assign-toolbar .bc-input{flex:1 1 180px;min-width:0;max-width:280px}
.bc-company-assign-table-wrap{max-height:260px;overflow:auto;border:1px solid #dfe6ee;border-radius:4px}
.bc-company-assign-table{margin:0}
.bc-company-assign-table tr.is-assigned{background:#f3f9fd}
.bc-user-modal-footer{display:flex;justify-content:flex-end;gap:8px;padding:12px 18px;border-top:1px solid #e4ecf3;background:#f8fafc}
@media(max-width:800px){.bc-role-grid{grid-template-columns:1fr 1fr}.bc-user-modal{width:96vw;max-height:94dvh}}
@media(max-width:520px){.bc-role-grid{grid-template-columns:1fr}}

.bc-password-input{width:100%;min-width:140px;max-width:220px;height:28px;min-height:28px;padding:4px 8px;font-size:12px;box-sizing:border-box}

.bc-password-input.bc-password-needs-set{border-color:#c9a227;background:#fffdf5}

