.page.is-driver-detail .page__top {
  display: none;
}

.page.is-driver-detail .page-body {
  margin-top: 0;
}

.dd-shell {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.dd-header {
  margin: 0;
}

.dd-header__row {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.dd-avatar {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--hairline);
  border-radius: 100px;
  background: var(--input);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}

.dd-header .vd-header__title {
  margin: 0;
}

.dd-header__row .vd-tabs {
  margin-left: auto;
}

.dd-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.dd-charge-card .vd-card__head {
  margin-bottom: 0;
}

.dd-charge-rate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.dd-charge-rate__label {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.dd-charge-rate__value {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
}

.dd-charge-badge {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 4px;
  background: #f0f1f5;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

.dd-charge .vehicles-table th {
  height: 48px;
  padding: 12px 16px;
}

.dd-charge .vehicles-table td:not(.col-check):not(.col-vehicle) {
  white-space: nowrap;
}

.dd-charge .vehicles-table td {
  height: 81px;
  min-height: 81px;
  padding: 16px;
}

.dd-charge .vehicles-table td.col-vehicle {
  padding: 12px;
}

.dd-charge .vehicles-table tr.is-highlight td {
  background: #f0f6ff;
}

.dd-charge .vehicles-table .cell-vehicle {
  align-items: flex-start;
}

.dd-charge .vehicles-table .cell-vehicle img {
  width: 60px;
  height: 60px;
  max-width: 60px;
  object-fit: contain;
}

.dd-charge .vehicles-table .cell-vehicle__name,
.dd-charge .vehicles-table .cell-vehicle__sub {
  overflow: visible;
  text-overflow: unset;
  white-space: nowrap;
}

.dd-charge .vehicles-table .cell-vehicle__name {
  font-weight: 500;
}

.dd-charge tbody tr {
  cursor: pointer;
}

.dd-session-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.dd-session-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dd-session-title {
  margin: 0;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3;
}

.dd-session-export {
  height: 40px;
  padding: 8px 32px;
}

.dd-session {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.dd-session-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.dd-session-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dd-level {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dd-level__label {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.dd-level__ends {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.dd-level__end {
  text-align: right;
}

.dd-level__pct {
  margin: 0;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3;
}

.dd-level__cap {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.dd-level__bar {
  position: relative;
  margin-bottom: 8px;
}

.dd-level__track {
  display: flex;
  height: 40px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: #f0f1f5;
}

.dd-level__start,
.dd-level__gain {
  flex: 1 1 0;
  min-width: 0;
}

.dd-level__start {
  background: #95ecbb;
}

.dd-level__gain {
  background: #29ab5f;
}

.dd-level__tick {
  width: 1px;
  background: var(--hairline);
}

.dd-level__rest {
  width: 80px;
  flex-shrink: 0;
  background: #edeff2;
}

.dd-level__marker {
  position: absolute;
  top: 43px;
  right: 76px;
  width: 9px;
  height: 5px;
  flex-shrink: 0;
}

.dd-session-vehicle {
  display: flex;
  align-items: center;
  gap: 24px;
}

.dd-session-vehicle img {
  width: 98px;
  height: 60px;
  max-width: 98px;
  object-fit: contain;
  flex-shrink: 0;
}

.dd-session-vehicle__name {
  margin: 0;
  color: var(--brand);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}

.dd-session-vehicle__sub {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.dd-session-driver {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}

.dd-session-driver__phone {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.dd-session-driver__phone img {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.dd-session-rate {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dd-rate-overlay {
  background: rgba(12, 17, 20, 0.45);
}

.modal--rate {
  width: min(560px, calc(100vw - 48px));
  overflow: hidden;
}

.modal--rate .modal__head {
  height: 71px;
  padding: 20px;
  border-bottom: 1px solid var(--hairline);
}

.modal--rate .modal__title {
  color: #303030;
}

.modal--rate .modal__close img {
  width: 24px;
  height: 24px;
}

.modal--rate .modal__body {
  gap: 16px;
  padding: 20px;
  background: #f0f1f5;
}

.modal--rate .modal__foot {
  height: 88px;
  padding: 20px;
  border-top: 1px solid var(--hairline);
  background: var(--white);
}

.modal--rate .btn-ghost,
.modal--rate .btn-primary {
  height: auto;
  min-height: 48px;
  padding: 12px 20px;
}

.dd-rate-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  padding: 16px;
  border-radius: 8px;
  background: var(--white);
}

.dd-rate-card--row {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dd-rate-card__intro {
  display: flex;
  flex-direction: column;
}

.dd-rate-card__title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}

.dd-rate-card__title img {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.dd-rate-card__copy {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

.dd-rate-amount {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dd-rate-field {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 250px;
  height: 48px;
  padding: 12px 12px 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--input);
}

.dd-rate-field__dollar,
.dd-rate-field input {
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
}

.dd-rate-field input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
}

.dd-rate-field input::placeholder {
  color: var(--muted);
}

.dd-rate-field input:focus {
  outline: none;
}

.dd-rate-unit {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.3;
}

.dd-rate-switch {
  position: relative;
  flex-shrink: 0;
  width: 36px;
  height: 20px;
  margin: 0;
  border: 0;
  border-radius: 10px;
  background: #d6dbe1;
  appearance: none;
  cursor: pointer;
}

.dd-rate-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(29, 42, 52, 0.16);
}

.dd-rate-switch:checked {
  background: var(--brand);
}

.dd-rate-switch:checked::after {
  transform: translateX(16px);
}

.dd-rate-switch:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.dd-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.dd-details-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin-bottom: 16px;
}

.dd-details-card__head .vd-card__title {
  margin: 0;
  flex: 1;
  min-width: 0;
}

.dd-details-card__head .vd-edit {
  flex-shrink: 0;
  margin-left: auto;
}

.dd-vehicle-card__head {
  margin-bottom: 16px;
}

.dd-vehicle-card__head .vd-card__title {
  margin: 0;
}

.dd-vehicle-card__head--bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin-bottom: 0;
}

.dd-vehicle-card--empty {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dd-vehicle-card__stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  width: 100%;
}

.dd-vehicle-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 24px;
  width: 100%;
}

.dd-vehicle-empty__art {
  position: relative;
  width: 133px;
  height: 82px;
  flex-shrink: 0;
}

.dd-vehicle-empty__shadow {
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 120px;
  height: auto;
  max-width: none;
  transform: translateX(-50%);
  mix-blend-mode: multiply;
  pointer-events: none;
}

.dd-vehicle-empty__car {
  position: absolute;
  left: 50%;
  top: 6px;
  width: 140px;
  height: auto;
  max-width: none;
  transform: translateX(-50%);
  pointer-events: none;
}

.dd-vehicle-empty__label {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  text-align: center;
}

.dd-vehicle-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.dd-vehicle-row img {
  width: 92px;
  height: 92px;
  object-fit: contain;
  flex-shrink: 0;
}

.dd-vehicle-row__meta {
  min-width: 0;
}

.dd-vehicle-name {
  display: block;
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  text-align: left;
}

.dd-vehicle-row__sub {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.dd-empty {
  padding: 24px;
  font-size: 14px;
}

.modal--edit-driver {
  width: min(822px, calc(100vw - 32px));
}

.dd-edit-body {
  gap: 0 !important;
}

.dd-edit-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.dd-edit-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

.dd-form-field {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--input);
}

.dd-form-field--float {
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  padding-top: 8px;
  padding-bottom: 8px;
}

.dd-form-field__label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.5;
}

.dd-form-field input,
.dd-form-field select,
.dd-form-field textarea {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
}

.dd-form-field input::placeholder,
.dd-form-field textarea::placeholder {
  color: var(--muted);
}

.dd-form-field--select {
  padding-right: 36px;
}

.dd-form-field--select select {
  appearance: none;
}

.dd-form-field--select-like {
  padding-right: 36px;
}

.dd-form-field__chevron {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 16px;
  height: 16px;
  pointer-events: none;
  transform: translateY(-50%);
}

.dd-form-field--disabled {
  opacity: 0.5;
  background: var(--hairline);
}

.dd-form-field--fleet {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-right: 12px;
}

.dd-form-field--fleet .dd-form-field__label {
  position: absolute;
  top: 8px;
  left: 16px;
}

.dd-form-field__static {
  flex: 1;
  padding-top: 14px;
  font-size: 14px;
  line-height: 1.6;
}

.dd-form-fleet {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.dd-form-fleet__hint {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.dd-form-field--textarea {
  align-items: stretch;
  min-height: 160px;
  padding: 12px 16px;
}

.dd-form-field--textarea textarea {
  min-height: 136px;
  resize: vertical;
  line-height: 1.6;
}

@media (max-width: 960px) {
  .dd-grid,
  .dd-session {
    grid-template-columns: minmax(0, 1fr);
  }

  .dd-edit-row {
    grid-template-columns: minmax(0, 1fr);
  }
}
