
.offline-cache-panel {
  margin-bottom: 18px;
}

.offline-cache-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.offline-cache-grid div {
  min-height: 82px;
  padding: 12px;
  background: #f8fbfd;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.offline-cache-grid b,
.offline-cache-grid span {
  display: block;
  overflow-wrap: anywhere;
}

.offline-cache-grid b {
  color: var(--brand-2);
  font-size: 15px;
}

.offline-cache-grid span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 980px) {
  .offline-cache-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .offline-cache-grid {
    grid-template-columns: 1fr;
  }
}

.presence-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.presence-strip strong,
.presence-strip span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  overflow-wrap: anywhere;
}

.presence-strip strong {
  color: var(--brand-2);
  font-size: 13px;
}

.presence-strip span {
  padding: 0 10px;
  color: var(--muted);
  background: #f7fafc;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 650;
}

.mfa-panel {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.document-vault-panel,
.document-import-panel {
  margin-bottom: 18px;
}

.document-card h3,
.document-import-card h3 {
  overflow-wrap: anywhere;
}

.document-import-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  margin: 10px 0;
}

.document-import-grid p {
  margin: 0;
  overflow-wrap: anywhere;
}

.document-warnings {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}

.document-warnings span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  color: #7a4b00;
  background: #fff8e6;
  border: 1px solid #f3d48a;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 650;
}

@media (max-width: 640px) {
  .document-import-grid {
    grid-template-columns: 1fr;
  }
}
.document-preview {
  max-height: 96px;
  overflow: auto;
  padding: 10px;
  color: var(--muted);
  background: #f8fbfd;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 13px;
  white-space: pre-wrap;
}
.enterprise-ops .enterprise-panel {
  margin-bottom: 18px;
}

.enterprise-ops .compact-list .item p {
  overflow-wrap: anywhere;
}

.enterprise-ops textarea {
  min-height: 128px;
  resize: vertical;
}

.enterprise-ops .check {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 650;
}

.enterprise-ops .check input {
  width: auto;
}
.smart-pack-hero .section-head select {
  max-width: 420px;
}

.smart-itinerary-pack {
  align-items: start;
}

.smart-panel .compact-list .item p {
  margin: 6px 0 0;
}

.smart-panel .toolbar input,
.smart-panel .toolbar select {
  min-width: 180px;
}

.tour-journal-panel {
  margin-bottom: 0;
}

.tour-journal-form textarea {
  min-height: 104px;
  resize: vertical;
}

.tour-journal-list {
  max-height: 520px;
  overflow: auto;
  padding-right: 2px;
}

.tour-journal-entry {
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid #9fc5f8;
  border-radius: var(--radius);
}

.tour-journal-entry.published {
  border-left-color: #7cc8a8;
  background: #f5fbf7;
}

.tour-journal-entry.archived {
  opacity: 0.72;
}

.tour-journal-entry h3 {
  margin: 0;
  font-size: 16px;
}

.tour-journal-entry p,
.tour-journal-entry small {
  color: var(--muted);
  overflow-wrap: anywhere;
}
.incident-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.sla-pill.sla-ok {
  background: #effaf4;
  color: #256c49;
}

.sla-pill.sla-warning {
  background: #fff7d6;
  color: #8a5f00;
}

.sla-pill.sla-overdue,
.tour-incident.sla-overdue .sla-pill {
  background: #fff0f0;
  color: #b42318;
}

.tour-incident.sla-overdue {
  box-shadow: inset 0 0 0 1px rgba(180, 35, 24, 0.12);
}

.incident-escalation-panel {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.incident-escalation-form {
  background: #fbfdff;
}

.incident-escalation-list {
  display: grid;
  gap: 8px;
}

.incident-escalation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.incident-escalation.open {
  border-color: #f59e0b;
  background: #fff9e8;
}

.incident-escalation.acknowledged {
  border-color: #9fc5f8;
  background: #f3f8ff;
}

.incident-escalation.resolved {
  border-color: #7cc8a8;
  background: #effaf4;
}

.incident-escalation.cancelled {
  opacity: 0.72;
}

.incident-escalation strong,
.incident-escalation span,
.incident-escalation small {
  display: block;
  overflow-wrap: anywhere;
}

.incident-escalation span,
.incident-escalation small {
  color: var(--muted);
  font-size: 12px;
}

.incident-action.sla-overdue {
  border-color: #f2a5a5;
  background: #fff6f6;
}
@media (max-width: 760px) {
  .smart-pack-hero .section-head {
    display: block;
  }

  .smart-pack-hero .section-head select,
  .smart-panel .toolbar input,
  .smart-panel .toolbar select {
    width: 100%;
    max-width: none;
  }
}
.tour-map-planner {
  display: grid;
  gap: 16px;
}

.tour-map-hero {
  align-items: stretch;
}

.tour-map-metrics {
  min-width: min(520px, 100%);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tour-map-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 16px;
  align-items: start;
}

.tour-map-live,
.tour-map-board-panel,
.tour-map-point-list,
.tour-map-notes {
  margin-bottom: 16px;
}

.tour-map-live-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 14px;
  align-items: stretch;
}

.tour-map-frame {
  min-height: 440px;
}

.tour-map-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.tour-map-toolbar .chips {
  margin: 0;
}

.tour-map-toolbar .chip.active {
  color: #0f5f59;
  background: #e9f6f5;
  border-color: #76c9c5;
}

.tour-map-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  align-items: start;
}

.tour-map-day {
  min-height: 280px;
  padding: 14px;
  background: #fbfdff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.tour-map-day-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.tour-map-day-head h3,
.planner-note h3 {
  margin: 0;
  font-size: 16px;
}

.tour-map-day-head p,
.planner-note p,
.planner-note small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.tour-map-stop-stack {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.planner-stop {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 4px 10px;
  width: 100%;
  padding: 10px;
  color: var(--ink);
  text-align: left;
  background: #f8fbfc;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.planner-stop.active {
  background: #e9f6f5;
  border-color: #76c9c5;
}

.planner-stop span {
  grid-row: span 3;
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  color: #0f5f59;
  background: #e9f6f5;
  border-radius: 999px;
  font-weight: 800;
}

.planner-stop strong,
.planner-stop small,
.planner-stop em {
  min-width: 0;
  overflow-wrap: anywhere;
}

.planner-stop small,
.planner-stop em {
  color: var(--muted);
  font-style: normal;
}

.tour-map-day-notes {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.tour-map-notes {
  position: sticky;
  top: 12px;
}

.tour-map-note-form textarea {
  min-height: 110px;
  resize: vertical;
}

.tour-map-note-list {
  max-height: 720px;
  overflow: auto;
  padding-right: 2px;
}

.planner-note {
  padding: 12px;
  background: #f8fbfc;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.planner-note.pinned {
  background: #fff9e8;
  border-color: #e3c56b;
}

.planner-note.archived {
  opacity: 0.72;
}

.planner-note.mini {
  padding: 9px;
}

.planner-note.mini strong,
.planner-note.mini span {
  display: block;
  font-size: 12px;
}

@media (max-width: 1100px) {
  .tour-map-grid,
  .tour-map-live-grid {
    grid-template-columns: 1fr;
  }

  .tour-map-notes {
    position: static;
  }
}

.tour-journal-panel {
  margin-bottom: 0;
}

.tour-journal-form textarea {
  min-height: 104px;
  resize: vertical;
}

.tour-journal-list {
  max-height: 520px;
  overflow: auto;
  padding-right: 2px;
}

.tour-journal-entry {
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid #9fc5f8;
  border-radius: var(--radius);
}

.tour-journal-entry.published {
  border-left-color: #7cc8a8;
  background: #f5fbf7;
}

.tour-journal-entry.archived {
  opacity: 0.72;
}

.tour-journal-entry h3 {
  margin: 0;
  font-size: 16px;
}

.tour-journal-entry p,
.tour-journal-entry small {
  color: var(--muted);
  overflow-wrap: anywhere;
}
.incident-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.sla-pill.sla-ok {
  background: #effaf4;
  color: #256c49;
}

.sla-pill.sla-warning {
  background: #fff7d6;
  color: #8a5f00;
}

.sla-pill.sla-overdue,
.tour-incident.sla-overdue .sla-pill {
  background: #fff0f0;
  color: #b42318;
}

.tour-incident.sla-overdue {
  box-shadow: inset 0 0 0 1px rgba(180, 35, 24, 0.12);
}

.incident-escalation-panel {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.incident-escalation-form {
  background: #fbfdff;
}

.incident-escalation-list {
  display: grid;
  gap: 8px;
}

.incident-escalation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
