.sd-staff-shell, .sd-driver-shell {
  --sd-red: #d8001a;
  --sd-driver-nav: calc(64px + env(safe-area-inset-bottom));
  box-sizing: border-box;
}
.sd-driver-shell { padding-bottom: var(--sd-driver-nav); }
.sd-logo { display: block; width: 104px; height: auto; flex: 0 0 auto; }
.sd-logo-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  border-radius: 6px;
  background: #151e2d;
}
.sd-app-bar {
  position: relative;
  background: #151e2d;
  color: #e9edf4;
}
.sd-app-bar .logo-sub { color: #bac6d8; }
.sd-app-bar.sd-shared-bar:is(#hdr, .sd-shared-bar) {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 6px 14px;
  min-height: 54px;
  border-bottom: 2px solid #d8001a;
}
.sd-header-start { display: flex; align-items: center; align-self: flex-start; min-height: 40px; gap: 8px; min-width: 0; flex: 0 1 auto; }
.sd-logo-link { flex: 0 0 auto; display: block; }
.sd-page-title { font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sd-header-start .sd-nav-area { flex-shrink: 0; }
.sd-header-tools { margin-left: auto; min-width: 0; }
.sd-shared-bar .date-lbl, .sd-shared-bar #refresh-ts { color: #bac6d8; }
.sd-header-brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 10px;
}
.sd-top-nav, .sd-menu, .sd-driver-nav {
  font: 600 14px 'Plus Jakarta Sans', system-ui, sans-serif;
}
.sd-nav-area { display: flex; align-items: center; flex: 0 0 auto; gap: 3px; }
.sd-top-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 0 0 auto;
}
.sd-nav-link, .sd-logout button, .sd-menu summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 6px 9px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  text-decoration: none;
  font: inherit;
}
.sd-nav-link i { width: 18px; text-align: center; }
.sd-top-nav .sd-nav-link, .sd-top-nav .sd-logout button {
  justify-content: center;
  width: 34px;
  padding: 0;
}
.sd-top-nav span, .sd-menu summary span { display: none; }
.sd-top-nav .sd-nav-link:hover, .sd-menu-panel .sd-nav-link:hover,
.sd-logout button:hover, .sd-menu summary:hover { background: #8795aa24; }
.sd-top-nav .sd-nav-link[aria-current], .sd-menu-panel .sd-nav-link[aria-current] {
  background: #354259;
  box-shadow: inset 0 -2px #ff3b50;
  color: white;
}
.sd-menu { position: relative; flex: 0 0 auto; }
.sd-menu summary { cursor: pointer; list-style: none; }
.sd-menu summary::-webkit-details-marker { display: none; }
.sd-menu-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 1100;
  width: 210px;
  max-height: min(70dvh, 390px);
  overflow: auto;
  padding: 8px;
  border: 1px solid #354259;
  border-radius: 8px;
  box-shadow: 0 12px 24px #10182850;
  background: #151e2d;
  color: #e9edf4;
}
.sd-nav-group {
  margin: 8px 9px 4px;
  color: #a8b5c8;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.sd-logout { margin: 0; }
.sd-logout button { cursor: pointer; }
.sd-driver-nav {
  position: fixed;
  inset: auto 0 0;
  z-index: 1100;
  display: flex;
  justify-content: center;
  height: var(--sd-driver-nav);
  padding: 5px 8px calc(5px + env(safe-area-inset-bottom));
  border-top: 1px solid #dfe4ec;
  background: white;
  color: #536078;
}
.sd-driver-nav .sd-nav-link {
  flex: 1 1 0;
  max-width: 175px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 3px 4px;
  font-size: 11px;
}
.sd-driver-nav i { font-size: 17px; }
.sd-driver-nav .sd-nav-link[aria-current] { color: #ad0015; background: #fff1f3; }
.sd-nav-link:focus-visible, .sd-logout button:focus-visible,
.sd-menu summary:focus-visible { outline: 2px solid #7abaff; outline-offset: 2px; }

@media (max-width: 1180px) {
  .sd-top-nav { display: none; }
  .sd-menu summary span { display: inline; }
}
@media (max-width: 840px) {
  .sd-app-bar.sd-shared-bar:is(#hdr, .sd-shared-bar) { flex-wrap: wrap; height: auto; flex-direction: row; align-items: center; }
  .sd-header-tools { flex: 1 1 100%; margin-left: 0; flex-wrap: wrap; }
}
@media (max-width: 520px) {
  .sd-logo { width: 88px; }
  .sd-menu { position: static; }
}
.sd-menu-panel { max-width: calc(100vw - 24px); }
@media (max-width: 520px) { .sd-menu-panel { left: 12px; } }
@media (max-width: 520px) { .sd-header-start .sd-menu-panel { left: 14px; } }
