/* Clean Dispatch V3.61: Admin mobile table stability, Live Map layout, PWA notification UI */
html, body {
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}
.main-panel, .content, .card, .topbar, .table-wrap {
  min-width: 0;
  max-width: 100%;
}
.table-wrap {
  width: 100%;
  overflow-x: auto !important;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  border-radius: 16px;
}
.table-wrap table,
.content table,
.card table {
  border-collapse: collapse;
  table-layout: auto !important;
}
.content th,
.content td,
.card th,
.card td {
  word-break: normal !important;
  overflow-wrap: normal !important;
  vertical-align: top;
}

@media (max-width: 900px) {
  .content table,
  .card table,
  .table-wrap table {
    min-width: 980px !important;
    width: max-content !important;
    max-width: none !important;
  }
  .content th,
  .content td,
  .card th,
  .card td {
    white-space: nowrap !important;
    min-width: 92px;
  }
  .content td:last-child,
  .content th:last-child,
  .card td:last-child,
  .card th:last-child {
    white-space: normal !important;
    min-width: 240px;
  }
  .content .btn,
  .card .btn {
    white-space: nowrap;
  }
}

.v361-live-page .card,
.v361-live-page .v360-map-card {
  min-width: 0;
}
.v361-live-page .v360-live-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(320px, .9fr);
  gap: 16px;
  align-items: start;
}
.v361-live-page .v360-map-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid #dbe3ef;
  border-radius: 20px;
  padding: 14px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, .08);
}
.v361-live-page .v360-map {
  width: 100% !important;
  height: 70vh !important;
  min-height: 560px !important;
  max-height: 780px;
  border-radius: 18px;
  border: 1px solid #dbe3ef;
  overflow: hidden;
  background: #e5edf7;
}
.v361-live-page .leaflet-container {
  width: 100% !important;
  height: 100% !important;
  font: inherit;
}
.v361-live-page .v360-list-item {
  display: grid;
  gap: 5px;
  padding: 12px 0;
}
.v361-live-page .v361-map-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 10px;
}

.v361-notify-float {
  position: fixed;
  right: 16px;
  bottom: 78px;
  z-index: 99998;
  display: grid;
  gap: 6px;
  max-width: calc(100vw - 32px);
}
.v361-notify-btn {
  border: 0;
  border-radius: 999px;
  background: #155EEF;
  color: #fff;
  padding: 12px 16px;
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(21, 94, 239, .28);
  cursor: pointer;
}
.v361-notify-status {
  background: rgba(15, 23, 42, .92);
  color: #fff;
  border-radius: 14px;
  padding: 8px 10px;
  font-size: 12px;
  max-width: 280px;
}
.v361-notification-card {
  background: #f8fafc;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  padding: 12px;
  margin-top: 12px;
}
.v361-notification-card .v360-btn { margin-top: 8px; }

@media (max-width: 900px) {
  .v361-live-page .v360-live-grid {
    grid-template-columns: 1fr;
  }
  .v361-live-page .v360-map-card {
    padding: 10px;
    border-radius: 16px;
  }
  .v361-live-page .v360-map {
    height: 58vh !important;
    min-height: 390px !important;
  }
  .v361-notify-float {
    left: 10px;
    right: 10px;
    bottom: 76px;
  }
  .v361-notify-btn { width: 100%; }
}
