/* DeliverMyMotor internal sidebar refresh
   Upload after job-detail.css so these rules override the old sidebar only. */

.dashboard-sidebar,
.dashboard-sidebar * {
  box-sizing: border-box;
}

.dashboard-sidebar {
  background:
    radial-gradient(circle at 92% 6%, rgba(255, 255, 255, .18), transparent 0 118px),
    linear-gradient(180deg, #0873e8 0%, #066ad7 48%, #045fbe 100%) !important;
  box-shadow: 22px 0 58px rgba(0, 35, 85, .24);
  color: #fff;
  height: 100vh !important;
  left: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 20px !important;
  position: fixed;
  top: 0;
  width: 300px;
  z-index: 1000;
}

.dashboard-sidebar::before {
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  content: "";
  height: 172px;
  pointer-events: none;
  position: absolute;
  right: -90px;
  top: -76px;
  width: 172px;
}

.dashboard-sidebar.close {
  left: -300px;
  padding: 20px !important;
  visibility: hidden;
  width: 300px;
}

.dashboard-sidebar.close ~ .home {
  left: 0;
  width: 100%;
}

.sidebar-header {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 20px;
  min-height: 46px;
  position: relative;
  z-index: 1;
}

.sidebar-header .sidebar-logo {
  filter: drop-shadow(0 8px 18px rgba(0, 25, 70, .16));
  height: auto;
  max-width: 190px;
  width: 190px;
}

#sideNavbarXmarkIcon {
  align-items: center;
  background: rgba(255, 255, 255, .13) !important;
  border: 1px solid rgba(255, 255, 255, .24) !important;
  border-radius: 8px;
  color: #fff !important;
  display: inline-flex;
  font-size: 24px !important;
  height: 42px;
  justify-content: center;
  line-height: 1;
  width: 42px;
}

.dashboard-sidebar .navbar-nav {
  display: grid;
  gap: 7px;
  list-style: none;
  margin: 0;
  padding: 0 !important;
  position: relative;
  z-index: 1;
}

.dashboard-sidebar .navbar-nav li {
  border: 1px solid transparent;
  border-radius: 8px;
  margin: 0;
  padding: 0 !important;
}

.dashboard-sidebar .navbar-nav li:hover,
.dashboard-sidebar .navbar-nav li.active,
.dashboard-sidebar .navbar-nav li:has(a.active) {
  background: rgba(255, 255, 255, .14) !important;
  border-color: rgba(255, 255, 255, .20);
}

.dashboard-sidebar .navbar-nav li a {
  align-items: center;
  color: #fff !important;
  display: flex;
  font-size: 16px !important;
  font-weight: 700;
  gap: 13px;
  min-height: 48px;
  padding: 0 12px;
  text-decoration: none !important;
}

.dashboard-sidebar .navbar-nav li a i {
  align-items: center;
  background: rgba(255, 255, 255, .14);
  border-radius: 8px;
  display: inline-flex;
  flex: 0 0 30px;
  height: 30px;
  justify-content: center;
  padding-right: 0 !important;
  text-align: center;
  width: 30px;
}

.dashboard-sidebar .navbar-nav .badge,
.dashboard-sidebar .navbar-nav .rounded-pill,
.dashboard-sidebar .navbar-nav .bg-danger {
  align-items: center;
  background: #df3348 !important;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(223, 51, 72, .28);
  color: #fff !important;
  display: inline-flex;
  font-size: 11px;
  height: 20px;
  justify-content: center;
  line-height: 1;
  margin-left: 4px;
  min-width: 20px;
  padding: 3px 6px;
}

#sideNavbarIcon {
  align-items: center;
  background: #fff5ef !important;
  border: 1px solid #ffd7c1 !important;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(255, 107, 18, .10);
  color: #ff6b12 !important;
  display: inline-flex;
  font-size: 24px !important;
  height: 44px;
  justify-content: center;
  width: 44px;
}

@media screen and (max-width: 575px) {
  .dashboard-sidebar {
    border-radius: 0;
    height: 100vh !important;
    max-width: 86vw;
    width: 300px;
  }

  .dashboard-sidebar.close {
    left: -300px;
    width: 300px;
  }

  .dashboard-sidebar .navbar-nav li a {
    font-size: 15px !important;
  }
}

/* Premium Route Dock - transporter sidebar */
.dashboard-sidebar.dmm-sidebar-transporter {
  background:
    radial-gradient(circle at 86% 2%, rgba(11, 102, 189, .28), transparent 0 122px),
    linear-gradient(180deg, #073763 0%, #0a2f59 48%, #071d3a 100%) !important;
  box-shadow: 24px 0 60px rgba(7, 29, 58, .32);
  overflow-y: hidden !important;
  padding: 15px !important;
}

.dashboard-sidebar.dmm-sidebar-transporter::before {
  border-color: rgba(139, 197, 255, .18);
  right: -86px;
  top: -74px;
}

.dashboard-sidebar.dmm-sidebar-transporter .sidebar-header {
  margin-bottom: 9px;
  min-height: 40px;
}

.dashboard-sidebar.dmm-sidebar-transporter .sidebar-logo {
  max-width: 172px;
  width: 172px;
}

.dashboard-sidebar.dmm-sidebar-transporter #sideNavbarXmarkIcon {
  background: rgba(255, 255, 255, .10) !important;
  border-color: rgba(139, 197, 255, .28) !important;
  border-radius: 12px;
  height: 40px;
  width: 40px;
}

.dashboard-sidebar.dmm-sidebar-transporter .dmm-transporter-nav {
  display: grid;
  gap: 5px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-sidebar.dmm-sidebar-transporter .dmm-sidebar-section-title {
  border: 0 !important;
  color: #8bc5ff;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .09em;
  grid-column: 1 / -1;
  margin: 7px 4px 0;
  padding: 0 !important;
  text-transform: uppercase;
}

.dashboard-sidebar.dmm-sidebar-transporter .dmm-sidebar-section-title:hover {
  background: transparent !important;
}

.dashboard-sidebar.dmm-sidebar-transporter .navbar-nav li:not(.dmm-sidebar-section-title):not(.dmm-sidebar-leaderboard-mini) {
  background: rgba(12, 42, 80, .82) !important;
  border: 1px solid rgba(139, 197, 255, .18) !important;
  border-radius: 15px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .09);
  grid-column: 1 / -1;
  overflow: hidden;
}

.dashboard-sidebar.dmm-sidebar-transporter .navbar-nav li.dmm-sidebar-compact {
  grid-column: span 1;
}

.dashboard-sidebar.dmm-sidebar-transporter .navbar-nav li:not(.dmm-sidebar-section-title):not(.dmm-sidebar-leaderboard-mini):hover {
  background: rgba(16, 57, 105, .92) !important;
  border-color: rgba(139, 197, 255, .34) !important;
}

.dashboard-sidebar.dmm-sidebar-transporter .navbar-nav li.dmm-sidebar-primary {
  background: linear-gradient(135deg, #ff6b1a, #f05a10) !important;
  border-color: rgba(255, 207, 179, .42) !important;
  box-shadow: 0 16px 30px rgba(255, 107, 26, .22);
}

.dashboard-sidebar.dmm-sidebar-transporter .navbar-nav li a {
  color: #fff !important;
  font-size: 13.5px !important;
  font-weight: 900;
  gap: 10px;
  min-height: 41px;
  padding: 0 10px !important;
}

.dashboard-sidebar.dmm-sidebar-transporter .navbar-nav li a i {
  background: rgba(139, 197, 255, .14);
  border: 1px solid rgba(139, 197, 255, .10);
  border-radius: 11px;
  color: #8bc5ff;
  flex-basis: 29px;
  height: 29px;
  width: 29px;
}

.dashboard-sidebar.dmm-sidebar-transporter .navbar-nav li.dmm-sidebar-compact a {
  align-items: flex-start;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
  min-height: 66px;
  padding: 9px 12px !important;
  position: relative;
}

.dashboard-sidebar.dmm-sidebar-transporter .navbar-nav li.dmm-sidebar-compact a i {
  flex: 0 0 29px;
}

.dashboard-sidebar.dmm-sidebar-transporter .navbar-nav li.dmm-sidebar-compact a[href="/transporter-leaderboard"] i {
  background: linear-gradient(135deg, #ff6b1a, #ffc247);
  border-color: rgba(255, 255, 255, .22);
  box-shadow: 0 9px 18px rgba(255, 107, 26, .22);
  color: #fff;
}

.dashboard-sidebar.dmm-sidebar-transporter .navbar-nav li.dmm-sidebar-leaderboard-card a span,
.dashboard-sidebar.dmm-sidebar-transporter .navbar-nav li.dmm-sidebar-messages-card a > span {
  display: block;
  line-height: 1.1;
}

.dashboard-sidebar.dmm-sidebar-transporter .dmm-sidebar-unread-count {
  align-items: center;
  background: linear-gradient(135deg, #ff6b1a, #ffc247);
  border: 2px solid rgba(255, 255, 255, .38);
  border-radius: 999px;
  box-shadow: 0 10px 20px rgba(255, 107, 26, .25);
  color: #fff;
  display: inline-flex;
  font-size: 12px;
  font-weight: 950;
  height: 25px;
  justify-content: center;
  line-height: 1;
  position: absolute;
  right: 9px;
  top: 9px;
  min-width: 25px;
  padding: 0 7px;
  width: auto;
}

.dashboard-sidebar.dmm-sidebar-transporter .dmm-sidebar-unread-count small {
  display: none;
}

.dashboard-sidebar.dmm-sidebar-transporter .navbar-nav li.dmm-sidebar-compact .badge {
  margin-left: 0;
  position: absolute;
  right: 9px;
  top: 9px;
}

.dashboard-sidebar.dmm-sidebar-transporter .navbar-nav li.dmm-sidebar-primary a i {
  background: rgba(255, 255, 255, .18);
  border-color: rgba(255, 255, 255, .20);
  color: #fff;
}

.dashboard-sidebar.dmm-sidebar-transporter .navbar-nav .badge {
  margin-left: auto;
}

.dashboard-sidebar.dmm-sidebar-transporter .navbar-nav .bg-danger {
  background: linear-gradient(135deg, #ff6b1a, #ffc247) !important;
  box-shadow: 0 8px 18px rgba(255, 107, 26, .26);
}

/* Customer drawer uses the same compact mission-control language as transporters,
   with customer-specific links and counts. */
.dashboard-sidebar.dmm-sidebar-customer {
  background:
    radial-gradient(circle at 86% 2%, rgba(11, 102, 189, .28), transparent 0 122px),
    linear-gradient(180deg, #073763 0%, #0a2f59 48%, #071d3a 100%) !important;
  box-shadow: 24px 0 60px rgba(7, 29, 58, .32);
  overflow-y: hidden !important;
  padding: 15px !important;
}

.dashboard-sidebar.dmm-sidebar-customer::before {
  border-color: rgba(139, 197, 255, .18);
  right: -86px;
  top: -74px;
}

.dashboard-sidebar.dmm-sidebar-customer .sidebar-header {
  margin-bottom: 9px;
  min-height: 40px;
}

.dashboard-sidebar.dmm-sidebar-customer .sidebar-logo {
  max-width: 172px;
  width: 172px;
}

.dashboard-sidebar.dmm-sidebar-customer #sideNavbarXmarkIcon {
  background: rgba(255, 255, 255, .10) !important;
  border-color: rgba(139, 197, 255, .28) !important;
  border-radius: 12px;
  height: 40px;
  width: 40px;
}

.dashboard-sidebar.dmm-sidebar-customer .dmm-customer-nav {
  display: grid;
  gap: 5px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-sidebar.dmm-sidebar-customer .dmm-sidebar-customer-mini {
  grid-column: 1 / -1;
  margin: 6px 0 8px !important;
}

.dashboard-sidebar.dmm-sidebar-customer .dmm-sidebar-customer-mini > a {
  align-items: stretch;
  display: grid !important;
  gap: 9px !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  min-height: 0 !important;
  padding: 0 2px 4px !important;
}

.dashboard-sidebar.dmm-sidebar-customer .dmm-sidebar-customer-mini > a em {
  color: #d8ecff;
  display: block;
  font-size: 10px;
  font-style: normal;
  font-weight: 950;
  grid-column: 1 / -1;
  letter-spacing: .08em;
  line-height: 1.2;
  margin: 0;
  padding: 0 2px 2px;
  text-transform: uppercase;
}

.dashboard-sidebar.dmm-sidebar-customer .dmm-sidebar-customer-mini > a em:after {
  background: linear-gradient(90deg, #ff7a1a, #ffc247 68%, rgba(255, 194, 71, .05));
  border-radius: 999px;
  content: "";
  display: block;
  height: 3px;
  margin-top: 7px;
  width: 62px;
}

.dashboard-sidebar.dmm-sidebar-customer .dmm-sidebar-customer-mini > a span {
  background:
    radial-gradient(circle at 18% 16%, rgba(139, 197, 255, .18), transparent 0 34px),
    linear-gradient(145deg, rgba(22, 77, 132, .96), rgba(13, 53, 96, .96)) !important;
  border: 1px solid rgba(139, 197, 255, .24) !important;
  border-radius: 12px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10), 0 10px 20px rgba(0, 0, 0, .10) !important;
  display: block !important;
  min-height: 66px !important;
  min-width: 0 !important;
  padding: 8px 9px !important;
}

.dashboard-sidebar.dmm-sidebar-customer .dmm-sidebar-customer-mini > a span:first-of-type {
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 122, 26, .20), transparent 0 34px),
    linear-gradient(145deg, rgba(22, 77, 132, .96), rgba(13, 53, 96, .96)) !important;
}

.dashboard-sidebar.dmm-sidebar-customer .dmm-sidebar-customer-mini > a span i {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #ffffff !important;
  display: block !important;
  font-size: 14px !important;
  height: auto !important;
  margin: 0 0 7px !important;
  min-width: 0 !important;
  width: auto !important;
}

.dashboard-sidebar.dmm-sidebar-customer .dmm-sidebar-customer-mini > a span small,
.dashboard-sidebar.dmm-sidebar-customer .dmm-sidebar-customer-mini > a span strong {
  display: block;
  line-height: 1.05;
}

.dashboard-sidebar.dmm-sidebar-customer .dmm-sidebar-section-title {
  border: 0 !important;
  color: #d8ecff;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .09em;
  grid-column: 1 / -1;
  margin: 7px 4px 0;
  padding: 0 !important;
  text-transform: uppercase;
}

.dashboard-sidebar.dmm-sidebar-customer .dmm-sidebar-section-title:hover {
  background: transparent !important;
}

.dashboard-sidebar.dmm-sidebar-customer .navbar-nav li:not(.dmm-sidebar-section-title):not(.dmm-sidebar-leaderboard-mini) {
  background: rgba(12, 42, 80, .82) !important;
  border: 1px solid rgba(139, 197, 255, .18) !important;
  border-radius: 15px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .09);
  grid-column: 1 / -1;
  overflow: hidden;
}

.dashboard-sidebar.dmm-sidebar-customer .navbar-nav li.dmm-sidebar-compact {
  grid-column: span 1;
}

.dashboard-sidebar.dmm-sidebar-customer .navbar-nav li:not(.dmm-sidebar-section-title):not(.dmm-sidebar-leaderboard-mini):hover {
  background: rgba(16, 57, 105, .92) !important;
  border-color: rgba(139, 197, 255, .34) !important;
}

.dashboard-sidebar.dmm-sidebar-customer .navbar-nav li.dmm-sidebar-primary {
  background: linear-gradient(135deg, #ff6b1a, #f05a10) !important;
  border-color: rgba(255, 207, 179, .42) !important;
  box-shadow: 0 16px 30px rgba(255, 107, 26, .22);
}

.dashboard-sidebar.dmm-sidebar-customer .navbar-nav li a {
  color: #fff !important;
  font-size: 13.5px !important;
  font-weight: 900;
  gap: 10px;
  min-height: 41px;
  padding: 0 10px !important;
}

.dashboard-sidebar.dmm-sidebar-customer .navbar-nav li a i {
  background: rgba(139, 197, 255, .14);
  border: 1px solid rgba(139, 197, 255, .10);
  border-radius: 11px;
  color: #8bc5ff;
  flex-basis: 29px;
  height: 29px;
  width: 29px;
}

.dashboard-sidebar.dmm-sidebar-customer .navbar-nav li.dmm-sidebar-compact a {
  align-items: flex-start;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
  min-height: 66px;
  padding: 9px 12px !important;
  position: relative;
}

.dashboard-sidebar.dmm-sidebar-customer .navbar-nav li.dmm-sidebar-compact a i {
  flex: 0 0 29px;
}

.dashboard-sidebar.dmm-sidebar-customer .navbar-nav li.dmm-sidebar-messages-card a > span {
  display: block;
  line-height: 1.1;
}

.dashboard-sidebar.dmm-sidebar-customer .dmm-sidebar-unread-count {
  align-items: center;
  background: linear-gradient(135deg, #ff6b1a, #ffc247);
  border: 2px solid rgba(255, 255, 255, .38);
  border-radius: 999px;
  box-shadow: 0 10px 20px rgba(255, 107, 26, .25);
  color: #fff;
  display: inline-flex;
  font-size: 12px;
  font-weight: 950;
  height: 25px;
  justify-content: center;
  line-height: 1;
  min-width: 25px;
  padding: 0 7px;
  position: absolute;
  right: 9px;
  top: 9px;
  width: auto;
}

.dashboard-sidebar.dmm-sidebar-customer .dmm-sidebar-unread-count small {
  display: none;
}

.dashboard-sidebar.dmm-sidebar-customer .navbar-nav li.dmm-sidebar-compact .badge {
  margin-left: 0;
  position: absolute;
  right: 9px;
  top: 9px;
}

.dashboard-sidebar.dmm-sidebar-customer .navbar-nav li.dmm-sidebar-primary a i {
  background: rgba(255, 255, 255, .18);
  border-color: rgba(255, 255, 255, .20);
  color: #fff;
}

.dashboard-sidebar.dmm-sidebar-customer .navbar-nav .badge,
.dashboard-sidebar.dmm-sidebar-customer .navbar-nav .bg-danger {
  background: linear-gradient(135deg, #ff6b1a, #ffc247) !important;
  box-shadow: 0 8px 18px rgba(255, 107, 26, .26);
  margin-left: auto;
}
