.drivers-panel {
  padding: 15px 16px 18px;
}
.drivers-panel td:last-child {
  min-width: 136px;
}
.driver-actions {
  display: flex;
  gap: 7px;
}
.button-danger {
  border-color: #c92320;
  background: #c92320;
  color: #fff;
}
.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
.drivers-page .page-status:not(:empty) {
  display: block;
  margin: 0 0 14px;
  padding: 9px 12px;
  border-left: 3px solid #2860ad;
  border-radius: 4px;
  background: #edf4ff;
  color: #244e8d;
  font-weight: 650;
}
.drivers-page .page-status.success {
  border-left-color: var(--green);
  background: #eaf8ef;
  color: #167443;
}
.drivers-page .page-status.error {
  border-left-color: var(--red);
  background: #fff0ef;
  color: #b42620;
}
.modal {
  width: min(520px, calc(100% - 32px));
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  box-shadow: 0 18px 48px rgba(0, 7, 31, 0.35);
}
.modal::backdrop {
  background: rgba(1, 14, 42, 0.62);
}
.modal-card {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 24px;
  border-radius: 10px;
  background: #fff;
}
.modal-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.modal-heading .eyebrow {
  margin: 0 0 5px;
  color: #2860ad;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.modal h2 {
  margin: 0;
  color: #092556;
  font: 700 23px/1.15 var(--font-title);
}
.modal p {
  margin: 0;
  color: #526686;
}
.modal .modal-error:not(:empty) {
  padding: 9px 11px;
  border-left: 3px solid var(--red);
  border-radius: 4px;
  background: #fff0ef;
  color: #b42620;
  font-size: 12px;
  font-weight: 650;
}
.modal-close {
  padding: 0;
  border: 0;
  background: transparent;
  color: #657494;
  font-size: 28px;
  line-height: 1;
}
.driver-form-fields {
  display: grid;
  gap: 15px;
}
.driver-form-fields label {
  display: grid;
  gap: 6px;
  color: #526686;
  font-size: 12px;
  font-weight: 650;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.modal-confirm {
  width: min(460px, calc(100% - 32px));
}
.modal-confirm .modal-card {
  gap: 16px;
}
.credentials {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f9fc;
}
.credentials p {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
}
.credentials span {
  color: #657494;
}
.credentials strong {
  overflow-wrap: anywhere;
  color: #102f63;
}
.credential-note {
  font-size: 12px;
  line-height: 1.5;
}
@media (max-width: 767px) {
  .drivers-page .page-heading {
    display: flex;
    align-items: flex-start;
  }
  .drivers-panel {
    padding: 12px;
  }
  .driver-actions {
    flex-direction: column;
  }
  .modal-card {
    padding: 20px;
  }
  .modal-actions {
    flex-wrap: wrap;
  }
  .credentials p {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}
@media (max-width: 479px) {
  .drivers-page .page-heading {
    display: block;
  }
  .drivers-page .page-heading > .button {
    margin-top: 14px;
    width: 100%;
  }
  .modal-actions .button {
    flex: 1;
  }
  .credentials p {
    grid-template-columns: 1fr;
  }
}
