:root {
  --app-bg: #f6f7f9;
}

body {
  background: var(--app-bg);
}

.app-shell {
  max-width: 960px;
}

.app-shell-wide {
  max-width: 1320px;
}

.navbar-brand {
  letter-spacing: 0;
}

.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.login-container {
  max-width: 440px;
}

.login-panel {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.12);
  padding: 1.25rem;
}

.btn,
.form-control {
  border-radius: 8px;
}

.form-select,
.form-check-input,
.card {
  border-radius: 8px;
}

.form-control,
.form-select,
.btn {
  min-height: 44px;
}

.form-control-color {
  width: 4.5rem;
}

.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.page-heading > div {
  min-width: 0;
}

.page-heading-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
}

.record-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.list-record,
.empty-state {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  box-shadow: 0 0.65rem 1.75rem rgba(15, 23, 42, 0.08);
  padding: 1.15rem;
  margin-bottom: 0;
}

.list-record.card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.record-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}

.record-main {
  min-width: 0;
  width: 100%;
}

.list-record.card .record-main {
  display: block;
}

.record-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.75rem;
  min-width: 0;
  flex: 1 1 auto;
}

.record-title-row h2 {
  min-width: 0;
}

.record-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.15rem;
  color: #5f6875;
  font-size: 0.925rem;
}

.record-meta span {
  min-width: max-content;
}

.record-notes {
  color: #5f6875;
  font-size: 0.925rem;
  margin-top: 0.65rem;
}

.filter-panel {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  box-shadow: 0 0.45rem 1.25rem rgba(15, 23, 42, 0.05);
  margin-bottom: 1rem;
  padding: 1rem;
}

.location-filter-toggle {
  display: none;
}

.location-filter-collapse {
  display: block !important;
}

.report-output {
  min-height: 20rem;
  resize: vertical;
  white-space: pre-wrap;
}

.report-accordion-header .accordion-button {
  border-radius: 8px;
  font-weight: 700;
  min-height: 64px;
  padding: 1.15rem 1.35rem;
}

.report-accordion-header .accordion-button:focus {
  box-shadow: inset 0 0 0 0.18rem rgba(13, 110, 253, 0.2);
}

.report-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.archive-recovery-item {
  align-items: center;
  background: rgba(15, 23, 42, 0.035);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 0.85rem;
}

.report-copy-status {
  color: #5f6875;
  font-size: 0.925rem;
}

.report-list-controls {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
}

.report-list-controls .btn {
  min-height: 36px;
}

.report-location-picker {
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  display: grid;
  gap: 0.55rem;
  max-height: 22rem;
  overflow-y: auto;
  padding: 0.75rem;
}

.report-location-option {
  align-items: flex-start;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  gap: 0.65rem;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 0.75rem;
}

.report-location-option small {
  color: #5f6875;
  display: block;
  margin-top: 0.15rem;
}

.import-preview-table {
  min-width: 58rem;
}

.import-preview-table td {
  max-width: 18rem;
}

.campaign-imports {
  margin-top: 0.9rem;
}

.campaign-import-toggle-row {
  display: flex;
  margin-top: 0.9rem;
}

.campaign-import-toggle {
  min-width: 10rem;
}

.campaign-imports-inner {
  border-top: 1px solid rgba(15, 23, 42, 0.1);
  padding-top: 0.9rem;
}

.campaign-import-row {
  align-items: center;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  padding: 0.75rem;
}

.map-filter-summary {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
}

.map-filter-button {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  gap: 0.45rem;
}

.map-filter-button svg {
  fill: none;
  flex: 0 0 1.15rem;
  height: 1.15rem;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
  width: 1.15rem;
}

.map-filter-chips {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 0.45rem;
  min-width: 0;
}

.map-filter-chips span {
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 999px;
  color: #334155;
  font-size: 0.9rem;
  padding: 0.35rem 0.65rem;
}

.map-filter-clear {
  flex: 0 0 auto;
}

.map-filter-drawer .offcanvas-body {
  background: #f8f9fb;
}

.map-filter-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.map-filter-group {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  padding: 1rem;
}

.map-filter-group .form-check + .form-check {
  margin-top: 0.45rem;
}

.map-filter-actions {
  background: rgba(248, 249, 251, 0.94);
  border-top: 1px solid rgba(15, 23, 42, 0.1);
  bottom: -1rem;
  display: flex;
  gap: 0.55rem;
  justify-content: flex-end;
  margin: 0 -1rem -1rem;
  padding: 0.75rem 1rem 1rem;
  position: sticky;
}

.map-planner-shell {
  width: 100%;
}

.map-workspace {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(19rem, 0.42fr) minmax(0, 1fr);
}

.map-sidebar,
.map-canvas-panel {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  box-shadow: 0 0.65rem 1.75rem rgba(15, 23, 42, 0.07);
}

.map-sidebar {
  display: flex;
  flex-direction: column;
  min-height: 34rem;
  overflow: hidden;
}

.map-counts {
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
  color: #5f6875;
  display: flex;
  flex-wrap: wrap;
  font-size: 0.9rem;
  gap: 0.45rem 0.9rem;
  padding: 0.85rem 1rem;
}

.map-counts .btn {
  min-height: 34px;
}

.route-builder-panel {
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
}

.route-builder-header {
  align-items: end;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(0, 1fr);
}

.route-name-input {
  min-height: 40px;
}

.route-actions {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: 1fr;
}

.route-actions .btn {
  min-height: 38px;
}

.route-warnings {
  background: #fff7ed;
  border: 1px solid rgba(234, 88, 12, 0.22);
  border-radius: 8px;
  color: #9a3412;
  font-size: 0.9rem;
  padding: 0.65rem 0.75rem;
}

.route-copy-status {
  color: #5f6875;
  font-size: 0.9rem;
  min-height: 1.2rem;
}

.route-stop-list {
  display: grid;
  gap: 0.5rem;
}

.route-stop-item {
  align-items: start;
  background: rgba(15, 23, 42, 0.035);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  display: grid;
  gap: 0.6rem;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 0.65rem;
}

.route-stop-actions {
  display: flex;
  gap: 0.35rem;
}

.route-stop-actions .btn {
  align-items: center;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  min-height: 34px;
  padding: 0;
  width: 34px;
}

.map-location-list {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.7rem;
  max-height: 41rem;
  overflow-y: auto;
  padding: 1rem;
}

.map-location-row {
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  gap: 0.75rem;
  padding: 0.85rem;
  transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.map-location-row.is-dropped {
  background: #f0fdf4;
  border-color: rgba(22, 163, 74, 0.24);
}

.map-location-row.needs-geocode {
  background: #fff7ed;
  border-color: rgba(234, 88, 12, 0.28);
}

.map-location-row.is-map-missing {
  background: #fef2f2;
  border-color: rgba(220, 38, 38, 0.28);
}

.map-location-row.is-selected {
  background: color-mix(in srgb, var(--map-campaign-color, #2563eb) 13%, #fff);
  border-color: color-mix(in srgb, var(--map-campaign-color, #2563eb) 58%, #fff);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--map-campaign-color, #2563eb) 18%, transparent);
}

.map-location-row.is-focused {
  animation: map-row-pulse 1.25s ease-in-out 2;
}

@keyframes map-row-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--map-campaign-color, #2563eb) 16%, transparent);
  }

  50% {
    box-shadow: 0 0 0 7px color-mix(in srgb, var(--map-campaign-color, #2563eb) 28%, transparent);
  }
}

.map-location-address {
  color: #5f6875;
  font-size: 0.925rem;
  margin-bottom: 0.45rem;
}

.map-location-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.map-location-actions .btn {
  min-height: 36px;
}

.map-list-empty,
.map-unavailable {
  color: #5f6875;
  padding: 1rem;
}

.map-canvas-panel {
  min-height: 34rem;
  overflow: hidden;
}

.route-planning-map {
  height: min(66vh, 43rem);
  min-height: 34rem;
  width: 100%;
}

.map-pin-icon {
  background: transparent;
  border: 0;
  color: #2563eb;
  filter: drop-shadow(0 1px 2px rgba(15, 23, 42, 0.34));
}

.map-pin-icon i {
  display: block;
  font-size: 2rem;
  line-height: 1;
  text-shadow:
    0 0 0.08rem #fff,
    0 0 0.18rem #fff,
    0 1px 0.18rem rgba(15, 23, 42, 0.25);
}

.map-pin-icon.is-selected {
  z-index: 700 !important;
}

.map-pin-icon.is-selected i {
  animation: map-pin-dance 0.9s ease-in-out infinite;
}

@keyframes map-pin-dance {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

.map-popup h3 {
  font-size: 1rem;
  margin: 0 0 0.35rem;
}

.map-popup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.dashboard-shift-panel {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  box-shadow: 0 0.65rem 1.75rem rgba(15, 23, 42, 0.08);
  display: grid;
  gap: 0.9rem;
  margin-bottom: 1rem;
  padding: 1rem;
}

.dashboard-clock-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-shift-status {
  color: #5f6875;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
}

.dashboard-shift-status strong {
  color: #212529;
}

.dashboard-primary-links {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-primary-links .btn {
  width: 100%;
}

.dashboard-campaign-panel {
  margin-bottom: 1rem;
}

.dashboard-campaign-heading {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.dashboard-campaign-list {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-campaign-item {
  align-items: flex-start;
  background: rgba(15, 23, 42, 0.035);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  display: flex;
  gap: 0.55rem;
  padding: 0.75rem;
}

.dashboard-campaign-item .color-dot {
  flex: 0 0 auto;
  margin-top: 0.25rem;
}

.dashboard-campaign-item div {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.dashboard-campaign-item span:not(.color-dot) {
  color: #5f6875;
  font-size: 0.925rem;
}

.advanced-fields {
  border-top: 1px solid rgba(15, 23, 42, 0.1);
  padding-top: 0.75rem;
}

.advanced-fields summary {
  color: #5f6875;
  cursor: pointer;
  font-weight: 600;
}

.location-card {
  transition: background-color 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}

.location-card.is-dropped {
  background: #f0fdf4;
  border-color: rgba(22, 163, 74, 0.24);
}

.location-card.is-updating {
  opacity: 0.72;
}

.location-card.is-focused {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18), 0 0.65rem 1.75rem rgba(15, 23, 42, 0.08);
}

.location-title-row {
  width: 100%;
}

.location-compact-row {
  align-items: flex-start;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  width: 100%;
}

.location-compact-main {
  min-width: 0;
  width: 100%;
}

.location-compact-address,
.location-compact-visit,
.location-detail-toggle {
  display: none;
}

.location-detail-collapse {
  display: flex !important;
  flex-direction: column;
  gap: 1.25rem;
}

.location-detail-address {
  display: inline;
}

.location-info-row,
.location-stats-row,
.record-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  width: 100%;
}

.location-info-row {
  color: #5f6875;
  font-size: 0.925rem;
}

.location-stats-row {
  color: #5f6875;
  font-size: 0.925rem;
}

.status-pill {
  background: #e7f0ff;
  border: 1px solid rgba(37, 99, 235, 0.22);
  color: #1d4ed8;
  font-size: 0.875rem;
  font-weight: 700;
  min-height: 38px;
  padding: 0.35rem 0.75rem;
}

.location-drop-switch {
  align-items: center;
  display: flex;
  margin-bottom: 0;
  min-height: 38px;
}

.location-drop-switch .form-check-input:checked {
  background-color: #16a34a;
  border-color: #16a34a;
}

.record-actions {
  justify-content: flex-start;
}

.record-actions .btn {
  min-width: 7.25rem;
}

.campaign-card .record-header {
  align-items: flex-start;
  display: grid;
  gap: 0.75rem 1rem;
  grid-template-columns: minmax(0, 1fr) auto;
}

.campaign-card .record-actions {
  justify-content: flex-end;
  width: auto;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-item {
  align-items: flex-start;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.85rem;
}

.contact-detail-list {
  color: #5f6875;
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  font-size: 0.925rem;
  gap: 0.4rem 0.85rem;
  justify-content: flex-end;
  min-width: 0;
}

.contact-detail-list span {
  flex-basis: 100%;
  text-align: right;
}

.contact-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}

.contact-actions .btn {
  min-height: 36px;
}

.contact-editor-form {
  border-top: 1px solid rgba(15, 23, 42, 0.1);
  padding-top: 1rem;
}

.business-card-scan {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.75rem;
  margin-bottom: 1rem;
}

.business-card-scan .btn {
  min-height: 42px;
}

.visit-summary {
  background: rgba(15, 23, 42, 0.04);
  border-radius: 8px;
  color: #5f6875;
  display: flex;
  flex-wrap: wrap;
  font-size: 0.9rem;
  gap: 0.4rem 0.85rem;
  padding: 0.65rem 0.75rem;
}

.visit-history {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.visit-history-item {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  padding: 0.75rem;
}

.visit-history-main {
  align-items: flex-start;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
}

.visit-history-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}

.visit-history-actions .btn {
  min-height: 36px;
}

.visit-editor-form {
  border-top: 1px solid rgba(15, 23, 42, 0.1);
  padding-top: 1rem;
}

.shift-summary {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  color: #5f6875;
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
}

.shift-filter-panel {
  margin-bottom: 0.75rem;
}

.shift-results-summary {
  margin: 0 0 0.75rem;
}

.shift-pagination {
  margin-top: 1rem;
}

.shift-card.is-open {
  border-color: rgba(22, 163, 74, 0.28);
}

.shift-meta {
  width: 100%;
}

.shift-visits {
  background: rgba(15, 23, 42, 0.04);
  border-radius: 8px;
  display: grid;
  font-size: 0.9rem;
  gap: 0.45rem 0.85rem;
  padding: 0.65rem 0.75rem;
}

.shift-visit-item {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  display: grid;
  gap: 0.65rem;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 0.65rem 0.75rem;
}

.shift-visit-item > div:first-child {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
}

.shift-visit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}

.shift-visit-actions .btn {
  min-height: 34px;
}

.shift-visit-item.is-missing {
  background: #fff7ed;
}

.period-summary {
  border-bottom: 1px solid rgba(15, 23, 42, 0.12);
  padding-bottom: 1rem;
}

.period-title-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.period-meta {
  margin-top: 0.35rem;
}

.period-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.period-actions .btn {
  min-height: 40px;
  padding: 0.45rem 0.9rem;
}

.modal-body {
  background: #f8f9fb;
  max-height: calc(100dvh - 11rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.sticky-actions {
  position: sticky;
  bottom: 0;
  z-index: 10;
  background: rgba(246, 247, 249, 0.94);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  margin-left: -1rem;
  margin-right: -1rem;
  padding: 0.75rem 1rem 1rem;
  backdrop-filter: blur(8px);
}

.store-card.is-inactive {
  opacity: 0.78;
}

.campaign-card.is-inactive {
  opacity: 0.78;
}

.color-dot {
  display: inline-block;
  width: 0.85rem;
  height: 0.85rem;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 50%;
  margin-right: 0.35rem;
  vertical-align: -0.05rem;
}

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.78);
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
  color: #fff;
}

@media (max-width: 575.98px) {
  .container-fluid,
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .lead {
    font-size: 1rem;
  }

  .navbar-brand {
    max-width: 14rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .page-heading {
    display: block;
  }

  .filter-panel {
    padding: 0.75rem;
  }

  .map-filter-summary {
    align-items: stretch;
    flex-direction: column;
  }

  .map-filter-button,
  .map-filter-clear {
    justify-content: center;
    width: 100%;
  }

  .map-filter-chips span {
    flex: 1 1 auto;
  }

  .location-filter-toggle {
    align-items: center;
    display: inline-flex;
    gap: 0.45rem;
    justify-content: center;
    min-height: 42px;
    width: 100%;
  }

  .location-filter-toggle svg {
    fill: none;
    flex: 0 0 1.15rem;
    height: 1.15rem;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
    width: 1.15rem;
  }

  .location-filter-collapse {
    display: none !important;
    padding-top: 0.75rem;
  }

  .location-filter-collapse.show {
    display: block !important;
  }

  .list-record.card {
    display: flex;
    flex-direction: column;
  }

  .location-card.list-record.card {
    gap: 0;
  }

  .location-compact-row {
    align-items: stretch;
  }

  .location-compact-main {
    display: grid;
    gap: 0.55rem;
  }

  .location-compact-address,
  .location-compact-visit,
  .location-detail-toggle {
    display: inline-flex;
  }

  .location-compact-address {
    color: #5f6875;
    font-size: 0.925rem;
  }

  .location-compact-visit {
    justify-self: start;
    min-height: 36px;
    padding: 0.3rem 0.65rem;
  }

  .location-detail-toggle {
    align-items: center;
    flex: 0 0 42px;
    height: 42px;
    justify-content: center;
    min-height: 42px;
    padding: 0;
    width: 42px;
  }

  .location-detail-toggle span {
    border-left: 0.48rem solid transparent;
    border-right: 0.48rem solid transparent;
    border-top: 0.7rem solid currentColor;
    display: block;
    height: 0;
    transform: rotate(0deg);
    transition: transform 0.18s ease;
    width: 0;
  }

  .location-detail-toggle[aria-expanded="true"] span {
    transform: rotate(180deg);
  }

  .location-detail-collapse {
    display: none !important;
    gap: 0.85rem;
    padding-top: 0.9rem;
  }

  .location-detail-collapse.show {
    display: flex !important;
  }

  .location-detail-address {
    display: none;
  }

  .list-record,
  .empty-state {
    padding: 1rem;
  }

  .page-heading .btn,
  .page-heading-actions,
  .record-actions,
  .record-actions .btn {
    width: 100%;
  }

  .page-heading-actions {
    margin-top: 1rem;
  }

  .archive-recovery-item {
    grid-template-columns: 1fr;
  }

  .dashboard-clock-grid,
  .dashboard-primary-links,
  .dashboard-campaign-list {
    grid-template-columns: 1fr;
  }

  .map-workspace {
    display: flex;
    flex-direction: column-reverse;
  }

  .map-sidebar {
    min-height: 0;
  }

  .route-builder-panel {
    order: -1;
  }

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

  .route-stop-actions {
    justify-content: flex-start;
  }

  .map-location-list {
    max-height: none;
  }

  .map-canvas-panel,
  .route-planning-map {
    min-height: 22rem;
  }

  .route-planning-map {
    height: 48vh;
  }

  .record-actions {
    margin-top: 1rem;
  }

  .contact-item {
    display: block;
  }

  .contact-detail-list {
    display: block;
    margin-top: 0.5rem;
  }

  .contact-detail-list a,
  .contact-detail-list span {
    display: block;
    text-align: left;
  }

  .contact-actions {
    justify-content: flex-start;
    margin-top: 0.75rem;
  }

  .visit-history-main {
    display: block;
  }

  .visit-history-actions {
    justify-content: flex-start;
    margin-top: 0.65rem;
  }

  .shift-visit-item {
    grid-template-columns: 1fr;
  }

  .shift-visit-actions {
    justify-content: flex-start;
  }

  .record-meta span {
    min-width: 0;
  }

  .record-header {
    display: block;
  }

  .campaign-card .record-header {
    display: block;
  }

  .campaign-card .record-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .campaign-import-row {
    align-items: stretch;
    flex-direction: column;
  }

  .record-title-row {
    align-items: flex-start;
  }

  .period-title-row {
    align-items: flex-start;
  }

  .period-actions .btn {
    flex: 1 1 auto;
  }

  .modal-body {
    max-height: calc(100dvh - 9.5rem);
  }
}
