:root {
  --bg: #0f172a;
  --card: #1e293b;
  --card-2: #334155;
  --text: #f8fafc;
  --muted: #94a3b8;
  --primary: #3b82f6;
  --danger: #ef4444;
  --success: #22c55e;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: linear-gradient(135deg, #0f172a, #111827);
  color: var(--text);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  line-height: 1.15;
}

p {
  line-height: 1.45;
}

.auth-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-container {
  width: 100%;
  max-width: 440px;
}

.auth-card {
  padding: 28px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar > div:first-child {
  min-width: 0;
}

.topbar h1,
.topbar p {
  margin: 0;
}

.topbar h1 {
  margin-bottom: 5px;
}

.topbar-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.notification-button {
  position: relative;
  min-width: 44px;
  padding-inline: 12px;
}

.notification-button i {
  font-size: 16px;
}

.notification-button.has-notifications {
  border-color: rgba(59, 130, 246, 0.85);
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.22);
}

.notification-count {
  position: absolute;
  top: -7px;
  right: -7px;
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  padding: 0 6px;
  background: var(--danger);
  color: #fff;
  font-size: 12px;
  font-weight: bold;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

.card {
  background: rgba(30, 41, 59, 0.95);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 20px;
  min-width: 0;
}

.form {
  display: grid;
  gap: 16px;
}

.form-group {
  display: grid;
  gap: 8px;
}

label {
  font-weight: bold;
}

input[type="text"],
input[type="password"],
input[type="number"],
input[type="datetime-local"],
input[type="time"],
input[type="tel"],
input[type="file"],
select,
textarea {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #0f172a;
  color: var(--text);
  font-size: 16px;
  min-height: 48px;
}

textarea {
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
}

pre {
  white-space: pre-wrap;
  word-break: break-word;
}

input:disabled,
select:disabled {
  opacity: 0.72;
  cursor: not-allowed;
}

button:disabled,
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.inline-input-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.extra-stops-list {
  display: grid;
  gap: 8px;
}

.extra-stop-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(15, 23, 42, 0.7);
  min-width: 0;
}

.extra-stop-text {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.extra-stop-text strong,
.extra-stop-text span,
.extra-stop-item > span {
  overflow-wrap: anywhere;
}

.extra-stop-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  align-items: center;
  gap: 8px;
}

.extra-stop-actions .btn {
  min-width: 0;
  padding: 10px 12px;
}

.saved-stop-search-results {
  display: grid;
  gap: 8px;
}

.saved-stop-result {
  display: grid;
  gap: 4px;
  width: 100%;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  background: rgba(15, 23, 42, 0.7);
  color: var(--text);
}

button,
.btn {
  border: 0;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  display: inline-block;
  min-height: 44px;
  text-align: center;
  line-height: 1.25;
  white-space: normal;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-secondary {
  background: var(--card-2);
  color: white;
}

.btn-danger {
  background: var(--danger);
  color: white;
}

.route-list {
  display: grid;
  gap: 14px;
}

.route-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  background: rgba(15, 23, 42, 0.7);
  min-width: 0;
}

.route-title-row h2,
.route-title-row h3 {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.route-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.customer-menu {
  position: relative;
  flex: 0 0 auto;
  max-width: 100%;
}

.customer-title-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 auto;
}

.customer-action-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  display: grid;
  gap: 4px;
  min-width: 180px;
  max-width: calc(100vw - 32px);
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #111827;
  box-shadow: var(--shadow);
}

.customer-action-menu button {
  width: 100%;
  border-radius: 6px;
  padding: 10px 12px;
  background: transparent;
  color: var(--text);
  text-align: left;
  min-height: 40px;
}

.customer-action-menu button:hover,
.customer-action-menu button:focus-visible {
  background: var(--card-2);
}

.popup-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.popup-title-row h2 {
  margin: 0;
}

.customer-popup-panel {
  position: fixed;
  top: 86px;
  left: 50%;
  z-index: 25;
  width: min(940px, calc(100vw - 32px));
  max-height: calc(100vh - 112px);
  overflow: auto;
  background: var(--card);
  transform: translateX(-50%);
  overscroll-behavior: contain;
}

.route-meta {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 12px;
}

.icon-button {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0;
  background: var(--card-2);
  color: var(--text);
  line-height: 1;
}

.stops-list {
  margin: 0;
  padding-left: 22px;
}

.stops-list li {
  margin-bottom: 10px;
}

.route-stop-item {
  list-style: decimal;
  margin-bottom: 12px;
}

.route-stop-button {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(15, 23, 42, 0.72);
  color: var(--text);
  text-align: left;
}

.route-stop-details {
  margin-top: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  background: rgba(15, 23, 42, 0.55);
}

.route-stop-detail-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.route-stop-detail-list div {
  display: grid;
  gap: 4px;
}

.route-stop-detail-list dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: bold;
}

.route-stop-detail-list dd {
  margin: 0;
  white-space: pre-wrap;
}

.route-extra-info {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.route-extra-info .extra-info-btn {
  justify-self: start;
}

.route-extra-info-panel {
  display: grid;
  gap: 10px;
}

.route-extra-info-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  background: rgba(15, 23, 42, 0.55);
}

.embedded-map-shell {
  overflow: hidden;
  width: 100%;
  min-height: 360px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.7);
}

.embedded-map-shell iframe,
.live-route-map {
  display: block;
  width: 100%;
  height: min(70vh, 620px);
  min-height: 360px;
  border: 0;
}

.embedded-map-fallback {
  display: grid;
  place-content: center;
  min-height: 360px;
  padding: 20px;
  text-align: center;
}

.embedded-map-fallback p {
  margin: 0 0 8px;
}

.navigation-panel {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #0f172a;
}

.navigation-panel h3 {
  margin: 6px 0;
  font-size: 22px;
}

.navigation-panel p {
  margin: 0;
}

.gps-extra-stop-form {
  display: grid;
  gap: 10px;
}

.gps-extra-stop-form .inline-input-action {
  grid-template-columns: minmax(0, 1fr) minmax(112px, auto);
}

.gps-extra-stop-form .extra-stops-list {
  margin-top: 0;
}

.gps-stop-card {
  margin-top: 0;
}

.gps-stop-card p {
  margin-bottom: 0;
}

.gps-progress-stop {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.gps-stop-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

body:not(.reorder-unlocked) .move-stop-btn {
  display: none;
}

.gps-progress-stop .complete-stop-btn {
  white-space: nowrap;
}

.message {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: bold;
}

.message.error {
  background: rgba(239, 68, 68, 0.18);
  color: #fecaca;
}

.message.success {
  background: rgba(34, 197, 94, 0.18);
  color: #bbf7d0;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2, 6, 23, 0.72);
}

.modal-panel {
  width: min(100%, 460px);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 22px;
  background: var(--card);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.modal-panel h3 {
  margin-top: 0;
}

.credential-list {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.credential-list div {
  display: grid;
  gap: 4px;
}

.credential-list dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: bold;
}

.credential-list dd {
  margin: 0;
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 0;
}

.modal-actions {
  justify-content: flex-end;
}

.hidden {
  display: none;
}

.muted {
  color: var(--muted);
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.profile-menu-actions {
  margin-bottom: 0;
}

.password-form {
  margin-top: 16px;
}

.saved-stops-panel {
  margin-top: 16px;
}

.admin-panel {
  margin-top: 16px;
}

.saved-stops-list {
  display: grid;
  gap: 12px;
}

.saved-stop-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 14px;
  align-items: end;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  background: rgba(15, 23, 42, 0.7);
}

.saved-stop-item p {
  margin-bottom: 0;
}

.saved-stop-item-compact {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.saved-stop-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}

.saved-stop-summary > div {
  min-width: 0;
}

.saved-stop-summary strong {
  display: block;
  overflow-wrap: anywhere;
}

.saved-stop-lock-badge {
  flex: 0 0 auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px 8px;
  background: rgba(34, 197, 94, 0.14);
  color: #bbf7d0;
  font-size: 13px;
  font-weight: bold;
}

.saved-stop-edit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(2, minmax(88px, 104px));
  gap: 10px;
  align-items: end;
  grid-column: 1 / -1;
  margin-top: 2px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.saved-stop-edit.hidden {
  display: none;
}

.saved-stop-edit input {
  min-width: 0;
}

.saved-stop-edit .btn {
  width: 100%;
}

.saved-stop-edit-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  grid-column: 1 / -1;
}

.saved-stop-time {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.saved-stop-time span {
  color: var(--muted);
  font-size: 12px;
}

.saved-stop-lock-toggle {
  align-self: end;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 13px 12px;
  background: rgba(15, 23, 42, 0.6);
}

.stop-time {
  display: inline-block;
  margin-left: 6px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px 7px;
  background: rgba(59, 130, 246, 0.14);
  color: #bfdbfe;
  font-size: 13px;
  font-weight: bold;
}

.admin-users-list {
  display: grid;
  gap: 12px;
}

.admin-user-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  background: rgba(15, 23, 42, 0.7);
  min-width: 0;
}

.admin-user-item > div:first-child {
  min-width: 0;
}

.admin-user-item p {
  margin-bottom: 0;
}

.vehicle-details {
  margin-top: 10px;
  padding: 12px;
  border-radius: 8px;
  background: #0f172a;
  color: var(--text);
  max-height: 320px;
  overflow: auto;
}

.vehicle-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.vehicle-detail-section {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  background: rgba(30, 41, 59, 0.82);
}

.vehicle-detail-section h4 {
  margin: 0 0 10px;
}

.vehicle-detail-section dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.vehicle-detail-section dl div {
  display: grid;
  gap: 3px;
}

.vehicle-detail-section dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: bold;
}

.vehicle-detail-section dd {
  margin: 0;
  font-size: 14px;
}

.vehicle-panel-heading {
  margin-top: 24px;
}

.gps-marker-preview-row {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.gps-marker-upload-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  background: rgba(15, 23, 42, 0.55);
}

.gps-marker-upload-card p {
  margin: 0;
}

.gps-marker-preview {
  width: 44px;
  height: 44px;
  object-fit: contain;
  background: #0f172a;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px;
}

.customer-filter-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 260px);
  gap: 16px;
  margin-bottom: 16px;
}

.customer-form {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.address-field-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(90px, 0.6fr);
  gap: 10px;
}

.address-field-grid input[data-address-part="apartmentInfo"] {
  grid-column: span 2;
}

.opening-hours-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 150px));
  gap: 10px;
  justify-content: start;
}

.code-field-grid {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(140px, 220px) minmax(110px, 150px);
  gap: 10px;
}

.customer-info-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  background: rgba(15, 23, 42, 0.7);
  min-width: 0;
}

.customer-card-main {
  min-width: 0;
}

.customer-card-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 44px;
}

.customer-card-title {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 6px;
  text-align: left;
  min-width: 0;
}

.customer-card-title h3 {
  margin: 0;
}

.customer-card-actions {
  justify-self: end;
}

.customer-info-item p {
  margin-bottom: 0;
}

.customer-details {
  margin-top: 10px;
}

.customer-notes {
  white-space: pre-wrap;
}

.customer-field-list {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
}

.customer-field-list div {
  display: grid;
  gap: 3px;
}

.customer-field-list dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: bold;
}

.customer-field-list dd {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.customer-change-modal {
  width: min(100%, 720px);
  max-height: calc(100vh - 40px);
  overflow: auto;
}

.customer-current-value {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(15, 23, 42, 0.65);
  white-space: pre-wrap;
}

.customer-suggestion-list {
  display: grid;
  gap: 14px;
}

.customer-suggestion-item {
  display: grid;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  background: rgba(15, 23, 42, 0.65);
}

.customer-suggestion-item h4,
.customer-suggestion-item p {
  margin: 0;
}

.customer-suggestion-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.customer-suggestion-comparison > div {
  display: grid;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  background: rgba(30, 41, 59, 0.74);
}

.customer-suggestion-comparison p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.draggable-field-item,
.draggable-category-item {
  cursor: grab;
}

.draggable-field-item {
  flex-wrap: wrap;
}

.inline-field-edit-form {
  flex: 1 0 100%;
  width: 100%;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 220px);
}

.inline-field-required {
  grid-column: 1 / -1;
  width: fit-content;
  align-self: start;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  background: rgba(15, 23, 42, 0.6);
}

.draggable-field-item.is-dragging,
.draggable-category-item.is-dragging {
  opacity: 0.55;
  border-color: rgba(59, 130, 246, 0.65);
}

.drag-field-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.drag-handle {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(51, 65, 85, 0.75);
  color: var(--muted);
}

.drag-handle span,
.drag-handle::before,
.drag-handle::after {
  content: "";
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 8px 0 0 currentColor;
}

.drag-handle {
  gap: 3px;
}

.floating-action {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 12;
  box-shadow: var(--shadow);
}

.disabled-link {
  pointer-events: none;
  opacity: 0.6;
}

.permissions-role-list {
  display: grid;
  gap: 12px;
}

@media (max-width: 720px) {
  body {
    background: #0f172a;
  }

  .auth-body {
    align-items: stretch;
    padding: 12px;
  }

  .auth-container {
    display: flex;
    align-items: center;
  }

  .auth-card {
    width: 100%;
    padding: 20px;
  }

  .customer-suggestion-comparison {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
  }

  .topbar h1 {
    font-size: 24px;
  }

  .topbar-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .topbar-actions .btn,
  .topbar-actions button {
    width: 100%;
  }

  .container {
    padding: 12px;
  }

  .card {
    padding: 16px;
    margin-bottom: 12px;
  }

  .card h2 {
    font-size: 21px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .inline-input-action {
    grid-template-columns: 1fr;
  }

  .inline-input-action .btn,
  .form > .btn,
  .form > button {
    width: 100%;
  }

  .actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .actions .btn,
  .actions button {
    width: 100%;
  }

  .profile-menu-actions {
    grid-template-columns: 1fr 1fr;
  }

  .route-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .customer-title-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .customer-title-row > div:first-child {
    grid-column: 1;
    min-width: 0;
  }

  .customer-menu {
    align-self: stretch;
    grid-column: 1 / -1;
    width: 100%;
  }

  .customer-title-actions {
    display: contents;
  }

  .customer-title-actions .notification-button {
    grid-column: 2;
    justify-self: end;
  }

  .customer-menu > .btn {
    width: 100%;
  }

  .customer-action-menu {
    right: 0;
    left: 0;
    width: 100%;
    max-width: none;
  }

  .customer-popup-panel {
    top: 10px;
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
    padding: 14px;
  }

  .route-title-row h2,
  .route-title-row h3 {
    font-size: 19px;
  }

  .route-meta {
    overflow-wrap: anywhere;
  }

  .extra-stop-item {
    display: grid;
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .extra-stop-text,
  .extra-stop-item span {
    width: 100%;
  }

  .extra-stop-actions {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .extra-stop-actions .btn {
    width: 100%;
  }

  .extra-stop-actions .icon-button {
    justify-self: stretch;
    width: 100%;
  }

  .saved-stop-item {
    grid-template-columns: 1fr;
  }

  .saved-stop-summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .saved-stop-edit {
    grid-template-columns: 1fr;
  }

  .saved-stop-edit-actions {
    grid-template-columns: 1fr;
  }

  .admin-user-item {
    align-items: stretch;
    flex-direction: column;
  }

  .customer-filter-row,
  .customer-info-item,
  .customer-card-header,
  .address-field-grid,
  .opening-hours-field-grid,
  .code-field-grid {
    grid-template-columns: 1fr;
  }

  .address-field-grid input[data-address-part="apartmentInfo"],
  .address-field-grid input[data-address-part="city"] {
    grid-column: auto;
  }

  .opening-hours-field-grid {
    justify-content: stretch;
  }

  .code-field-grid select,
  .opening-hours-field-grid input {
    min-width: 0;
  }

  .customer-card-actions {
    justify-self: stretch;
  }

  .gps-progress-stop {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .gps-stop-actions {
    display: grid;
    grid-template-columns: repeat(2, 44px) minmax(0, 1fr);
  }

  .gps-progress-stop .complete-stop-btn {
    width: 100%;
  }

  .floating-action {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
  }

  .vehicle-detail-grid {
    grid-template-columns: 1fr;
  }

  .vehicle-details {
    max-height: none;
  }
}

@media (max-width: 430px) {
  .topbar-actions,
  .profile-menu-actions {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 10px;
  }

  .card {
    padding: 14px;
  }

  input[type="text"],
  input[type="password"],
  input[type="number"],
  input[type="datetime-local"],
  input[type="time"],
  input[type="tel"],
  input[type="file"],
  select,
  textarea {
    padding: 13px 12px;
  }

  .route-title-row {
    gap: 8px;
  }

  .saved-stop-edit {
    gap: 8px;
  }

  .icon-button {
    width: 42px;
    height: 42px;
  }
}
