body.has-sidebar {
  --sidebar-width:clamp(164px,13vw,184px);
  background:#f4f7fa;
  --accent:#0752ec;
  --accent-light:#edf2ff
}

body.has-sidebar.sidebar-collapsed {
  --sidebar-width:64px
}

.app-sidebar {
  position:fixed;
  inset:0 auto 0 0;
  width:var(--sidebar-width);
  display:flex;
  flex-direction:column;
  background:#f9fbfd;
  border-right:1px solid #e8edf4;
  z-index:60
}

.app-sidebar[hidden] {
  display:none
}

.sidebar-brand {
  height:54px;
  min-height:54px;
  padding:10px 12px;
  display:flex;
  align-items:center
}

.sidebar-brand>a {
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
  color:#131d31
}

.sidebar-mark {
  font-size:28px;
  font-weight:850;
  color:#0752ec;
  letter-spacing:-2px;
  line-height:1
}

.sidebar-brand-text {
  display:flex;
  flex-direction:column;
  gap:3px;
  white-space:nowrap
}

.sidebar-brand-text b {
  font-size:12px
}

.sidebar-brand-text small {
  font-size:8px;
  color:#8490a1
}

.sidebar-nav {
  padding:8px;
  overflow:auto;
  flex:1;
  min-height:0
}

.sidebar-link {
  display:flex;
  align-items:center;
  gap:12px;
  min-height:38px;
  padding:10px 12px;
  margin-bottom:2px;
  color:#536071;
  font-size:12px;
  border:0;
  background:none;
  width:100%;
  text-align:left;
  border-radius:8px;
  white-space:nowrap;
  cursor:pointer
}

.sidebar-link>.ui-icon {
  flex-shrink:0;
  color:#6b788b
}

.sidebar-link:hover {
  background:#edf2fa;
  color:#0752ec
}

.sidebar-link.on {
  color:#0752ec;
  background:#e8efff;
  font-weight:650
}

.sidebar-link.on>.ui-icon {
  color:inherit
}

.sidebar-divider {
  height:1px;
  background:#edf0f5;
  margin:12px 8px
}

.sidebar-bottom {
  padding:8px;
  border-top:1px solid #edf0f5
}

.sidebar-more {
  margin-top:8px
}

.sidebar-more>summary {
  display:flex;
  gap:12px;
  align-items:center;
  padding:10px 12px;
  color:#7a879a;
  cursor:pointer;
  font-size:11px;
  list-style:none;
  border-radius:8px
}

.sidebar-more>summary::-webkit-details-marker {
  display:none
}

.sidebar-more>summary .ui-icon:last-child {
  margin-left:auto
}

.sidebar-more .sidebar-link {
  font-size:11px;
  min-height:34px
}

.sidebar-collapse {
  font-size:11px;
  color:#8993a4
}

.sidebar-collapsed .sidebar-label,.sidebar-collapsed .sidebar-brand-text,.sidebar-collapsed .sidebar-more>summary>.ui-icon:last-child {
  display:none
}

.sidebar-collapsed .sidebar-link,.sidebar-collapsed .sidebar-more>summary {
  justify-content:center;
  padding:10px
}

.sidebar-collapsed .sidebar-brand {
  justify-content:center;
  padding:10px 0
}

body.has-sidebar #topbar {
  margin-left:var(--sidebar-width);
  min-height:48px;
  height:48px;
  padding:0 20px;
  gap:16px;
  background:#fff;
  z-index:50
}

body.has-sidebar #app {
  margin-left:var(--sidebar-width);
  margin-right:0;
  max-width:none;
  padding:18px 20px;
  width:auto;
  min-width:0
}

body.has-sidebar #app.load-wide {
  width:auto
}

body.has-sidebar #depBan,body.has-sidebar #managementBands,body.has-sidebar #sysBan {
  margin-left:var(--sidebar-width)
}

body.has-sidebar .shell-route-nav {
  display:flex;
  align-items:center;
  min-width:0
}

.shell-route-nav .qt-tabs {
  display:flex;
  margin:0;
  border:0;
  background:none;
  gap:16px;
  padding:0;
  white-space:nowrap
}

.shell-route-nav .qt-tabs>a {
  padding:18px 4px 16px;
  color:#374151;
  font-size:11px;
  font-weight:500;
  display:flex;
  align-items:center;
  gap:6px;
  border:0;
  border-bottom:2px solid transparent;
  border-radius:0;
  background:none
}

.shell-route-nav .qt-tabs>a.on {
  color:#0752ec;
  font-weight:650;
  border-bottom-color:#0752ec;
  background:none
}

.shell-route-nav .qt-tabs>a>.ui-icon {
  display:none
}

.shell-tab-count {
  font-size:10px;
  background:#f1f4f8;
  border-radius:5px;
  padding:1px 4px;
  color:#68758a
}

.on>.shell-tab-count {
  color:#0752ec;
  background:#eaf1ff
}

.shell-page-label {
  font-size:12px;
  font-weight:650;
  color:#667085
}

.has-sidebar #app .qt-tabs {
  display:none
}

.orders-page .page-head {
  margin-bottom:0;
  align-items:flex-start
}

.orders-page .page-head h1 {
  font-size:26px;
  line-height:1.15;
  letter-spacing:-.5px;
  margin:0
}

.orders-page .page-head .acts {
  padding-top:4px;
  gap:10px
}

.orders-page .page-head .btn {
  font-size:12px;
  border-radius:7px;
  padding:10px 14px
}

.shell-search {
  position:relative;
  display:flex;
  align-items:center;
  margin-left:auto;
  max-width:320px;
  min-width:140px;
  flex:1
}

.shell-search>.ui-icon {
  position:absolute;
  left:10px;
  color:#929cac;
  width:14px;
  height:14px
}

.shell-search>.inp {
  padding:7px 48px 7px 30px;
  font-size:11px;
  border-color:#e7ebf1;
  border-radius:7px;
  background:#fcfdff
}

.shell-search>kbd {
  position:absolute;
  right:8px;
  color:#9aa3b0;
  font-size:10px;
  font-family:inherit
}

.shell-search #shellSearchResults {
  position:absolute;
  right:0;
  top:calc(100% + 8px);
  width:360px;
  max-width:calc(100vw - 24px);
  max-height:65vh;
  overflow:auto;
  border:1px solid var(--border);
  border-radius:10px;
  box-shadow:0 12px 36px #18233524;
  background:#fff;
  z-index:70;
  padding:6px
}

.shell-search #shellSearchResults a {
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px;
  border-radius:6px;
  color:#344054;
  font-size:12px
}

.shell-search #shellSearchResults a:hover,.shell-search #shellSearchResults a:focus {
  background:#eef3ff
}

.shell-search #shellSearchResults a small {
  display:block;
  font-size:11px;
  color:#8490a1;
  margin-top:4px
}

.shell-search-empty {
  padding:14px;
  color:#8490a1;
  font-size:12px
}

.shell-user {
  display:flex;
  flex-direction:column;
  gap:3px;
  text-align:left;
  max-width:155px;
  overflow:hidden
}

.shell-user b {
  font-size:11px;
  font-weight:650;
  text-overflow:ellipsis;
  white-space:nowrap;
  overflow:hidden
}

.shell-user small {
  font-size:10px;
  color:#8993a4;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis
}

body.has-sidebar .me-btn {
  border:0;
  background:none;
  display:flex;
  align-items:center;
  gap:10px;
  padding:4px 0;
  border-radius:6px
}

body.has-sidebar .me-btn .av {
  height:30px;
  width:30px;
  background:#758398;
  color:#fff;
  font-size:11px
}

.has-sidebar .top-r {
  gap:20px;
  margin-left:0
}

.has-sidebar .bell-btn {
  border:0;
  background:transparent
}

.shell-menu-toggle {
  display:none
}

#sidebarBackdrop {
  display:none
}

body.has-sidebar .nav-more {
  display:none!important
}

@media(max-width:1550px) {
  .has-sidebar .top-r>.pp-wrap {
    display:none
  }
}

@media(max-width:1100px) {
  body.has-sidebar #topbar {
    padding:0 14px;
    gap:12px
  }
  .shell-route-nav .qt-tabs {
    gap:8px
  }
  .shell-route-nav .qt-tabs>a {
    font-size:10px
  }
  .shell-user {
    max-width:90px
  }
  .shell-search>kbd {
    display:none
  }
  .shell-search>.inp {
    padding-right:9px
  }
  .has-sidebar .top-r {
    gap:12px
  }
}

@media(max-width:900px) {
  body.has-sidebar {
    --sidebar-width:0px
  }
  body.has-sidebar #topbar {
    margin-left:0;
    padding:0 12px;
    gap:10px;
    position:sticky;
    top:0
  }
  .app-sidebar {
    width:220px;
    transform:translateX(-100%);
    visibility:hidden;
    z-index:90;
    box-shadow:8px 0 40px #20365722
  }
  .sidebar-mobile-open .app-sidebar {
    transform:none;
    visibility:visible
  }
  .sidebar-mobile-open #sidebarBackdrop {
    display:block;
    position:fixed;
    inset:0;
    border:0;
    background:#18223555;
    z-index:80
  }
  .sidebar-mobile-open {
    overflow:hidden
  }
  .shell-menu-toggle {
    display:grid;
    place-items:center;
    flex-shrink:0
  }
  .shell-user {
    display:none
  }
  .shell-search {
    min-width:90px;
    max-width:220px
  }
  .shell-route-nav .qt-tabs>a {
    padding:17px 2px;
    font-size:10px
  }
  .shell-route-nav .qt-tabs {
    gap:10px
  }
  .shell-route-nav .qt-tabs>a:last-child {
    display:none
  }
  body.has-sidebar #app {
    padding:16px 12px
  }
  .sidebar-more .sidebar-link {
    min-height:38px;
    font-size:12px
  }
  .sidebar-bottom {
    padding:10px
  }
  .sidebar-collapse .ui-icon {
    transform:rotate(180deg)
  }
}

@media(max-width:580px) {
  .shell-search {
    max-width:none
  }
  .shell-route-nav {
    display:none!important
  }
  .has-sidebar .top-r {
    gap:6px
  }
  .has-sidebar .top-r .cloud-st {
    display:none
  }
  body.has-sidebar #topbar {
    gap:8px
  }
  .shell-search #shellSearchResults {
    right:-70px;
    width:340px
  }
  .sidebar-brand {
    height:60px
  }
  .orders-page .page-head h1 {
    font-size:25px
  }
  .orders-page .page-head {
    gap:12px
  }
  .has-sidebar .test-badge {
    font-size:9px
  }
}

@media print {
  .app-sidebar,#sidebarBackdrop,.shell-route-nav,.shell-search {
    display:none!important
  }
  body.has-sidebar #app,body.has-sidebar #topbar,body.has-sidebar #depBan,body.has-sidebar #managementBands,body.has-sidebar #sysBan {
    margin-left:0
  }
  body.has-sidebar {
    --sidebar-width:0px
  }
}

.sidebar-more>summary {
  white-space:nowrap;
  gap:8px
}

.sidebar-more>summary .sidebar-label {
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis
}

.sidebar-bottom {
  position:relative
}

.sidebar-collapse {
  position:absolute;
  right:-11px;
  top:auto;
  bottom:calc(100dvh - 90px);
  width:22px;
  min-height:22px;
  height:22px;
  border:1px solid #dde5ef;
  background:white;
  padding:0;
  display:grid;
  place-items:center;
  box-shadow:0 2px 5px #2036570a
}

.sidebar-collapse .sidebar-label {
  display:none
}

.sidebar-collapse>.ui-icon {
  width:14px;
  height:14px
}

.sidebar-collapsed .sidebar-collapse {
  padding:0
}

body.has-sidebar #fbBtn {
  position:absolute;
  left:auto;
  right:10px;
  bottom:16px;
  width:26px;
  height:26px;
  background:none;
  border:0;
  box-shadow:none;
  z-index:1
}

body.sidebar-collapsed #fbBtn {
  display:none
}

@media(max-width:900px) {
  .sidebar-collapse {
    position:absolute;
    top:14px;
    right:12px;
    bottom:auto;
    width:28px;
    height:28px;
    min-height:28px;
    border:0
  }
  .sidebar-collapse>.ui-icon {
    width:18px;
    height:18px;
    transform:none
  }
}
