/* Ordem de Serviço + Clientes */
.wo-page { display: flex; flex-direction: column; gap: 12px; }
.wo-hint { color: var(--text-dim); font-size: 0.8125rem; margin: 0 0 12px; line-height: 1.5; }
.wo-muted { color: var(--text-dim); font-size: 0.875rem; }
.wo-code-internal { font-size: 0.8125rem; font-weight: 400; }
.wo-input-readonly { background: var(--bg-elevated); color: var(--text-dim); cursor: default; }
.wo-toolbar { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.wo-search-input { flex: 1; min-width: 180px; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-elevated); color: var(--text); }
.wo-badge { font-size: 0.75rem; padding: 3px 8px; border-radius: 999px; font-weight: 600; }
.wo-badge--blue { background: rgba(59,130,246,.15); color: #3b82f6; }
.wo-badge--ok { background: rgba(34,197,94,.15); color: #22c55e; }
.wo-badge--warn { background: rgba(245,158,11,.15); color: #f59e0b; }
.wo-badge--err { background: rgba(239,68,68,.15); color: #ef4444; }
.wo-badge--muted { background: rgba(148,163,184,.15); color: #94a3b8; }
.wo-cert-banner { display: flex; gap: 20px; flex-wrap: wrap; padding: 10px 14px; background: rgba(59,130,246,.08); border-radius: 8px; margin: 10px 0; font-size: 0.875rem; }
.wo-arrival-banner { display: flex; align-items: flex-start; gap: 10px; padding: 10px 14px; background: rgba(59,130,246,.1); border: 1px solid rgba(59,130,246,.25); border-radius: 8px; margin: 0 0 10px; font-size: 0.875rem; }
.wo-arrival-banner--late { background: rgba(245,158,11,.12); border-color: rgba(245,158,11,.4); color: #b45309; }
.wo-pause-banner { display: flex; align-items: flex-start; gap: 10px; padding: 10px 14px; background: rgba(234,88,12,.1); border: 1px solid rgba(234,88,12,.28); border-radius: 8px; margin: 0 0 10px; font-size: 0.875rem; color: #9a3412; }
.wo-pause-banner-icon { font-size: 1.1rem; line-height: 1.4; }
.wo-pause-banner-reason { margin-top: 4px; font-weight: 600; color: #7c2d12; }
.wo-cancel-banner {
  display: flex; align-items: flex-start; gap: 10px; padding: 10px 14px;
  background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.28);
  border-radius: 8px; margin: 0 0 10px; font-size: 0.875rem; color: #991b1b;
}
.wo-cancel-banner-icon { font-size: 1.1rem; line-height: 1.4; font-weight: 700; }
.wo-cancel-banner-reason { margin-top: 4px; font-weight: 600; color: #b91c1c; white-space: pre-wrap; }
.wo-cancel-reason-inline { color: #b91c1c; }
.wo-timeline-cancel-reason { color: #b91c1c; font-style: italic; }
.wo-locked-banner--cancel { background: rgba(239, 68, 68, 0.08); border-color: rgba(239, 68, 68, 0.25); color: #991b1b; }
.wo-delete-warn {
  margin: 0 0 10px; padding: 10px 12px; border-radius: 8px;
  background: rgba(239, 68, 68, 0.12); border: 1px solid rgba(239, 68, 68, 0.28);
  color: #991b1b; font-size: 0.875rem;
}
.auvo-task-pause { color: #c2410c; font-weight: 600; }
.wo-pause-reason-inline { color: #c2410c; }
.wo-timeline-pause-reason { color: #9a3412; font-style: italic; }
.wo-arrival-icon { font-size: 1.25rem; line-height: 1.2; }
.wo-arrival-hint { color: var(--text-dim); }
.wo-locked-banner { padding: 10px 14px; background: rgba(148,163,184,.12); border: 1px solid var(--border); border-radius: 8px; font-size: 0.8125rem; color: var(--text-dim); margin-bottom: 10px; }
.wo-detail-header { flex-wrap: wrap; gap: 8px; }
.wo-detail-header-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.wo-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.wo-back { margin-bottom: 4px; align-self: flex-start; }
.wo-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin: 12px 0; flex-wrap: wrap; }
.wo-tab { background: none; border: none; padding: 8px 14px; color: var(--text-dim); cursor: pointer; font-size: 0.875rem; border-bottom: 2px solid transparent; }
.wo-tab.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.wo-tab-panel { padding: 8px 0; }
.wo-tab-panel.hidden { display: none; }
.wo-q-block { padding: 12px; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 10px; }
.wo-q-block h4 { margin: 0 0 6px; font-size: 0.9375rem; }
.wo-q-block--detail { padding: 14px 16px; }
.wo-q-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.wo-q-meta { margin: 0 0 10px; }
.wo-detail-table th { width: 38%; font-weight: 600; color: var(--text-dim); vertical-align: top; }
.wo-detail-table td { word-break: break-word; }
.wo-relato-box { margin-top: 12px; padding: 12px 14px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 8px; }
.wo-relato-box--main { margin-bottom: 16px; }
.wo-relato-lbl { display: block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-dim); margin-bottom: 6px; }
.wo-relato-box p { margin: 0; line-height: 1.55; white-space: pre-wrap; }
.wo-report-summary { padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-elevated); margin-bottom: 16px; }
.wo-report-summary-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.wo-report-progress { font-size: 0.8125rem; color: var(--accent); font-weight: 600; }
.wo-report-checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.wo-report-checklist li { display: flex; align-items: center; gap: 8px; font-size: 0.875rem; color: var(--text-dim); }
.wo-report-checklist--ok { color: var(--text); }
.wo-report-check { width: 18px; text-align: center; font-weight: 700; }
.wo-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin: 10px 0 16px; }
.wo-photo-grid--q { grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 12px; }
.wo-photo-thumb { display: block; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--bg-elevated); aspect-ratio: 1; }
.wo-photo-thumb-btn { padding: 0; cursor: zoom-in; font: inherit; color: inherit; text-align: inherit; width: 100%; }
.wo-photo-thumb-btn:hover { border-color: var(--accent, #3b82f6); box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25); }
.wo-photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.wo-q-photo-block { margin-top: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-elevated); }
.wo-q-photo-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.wo-q-photo-count { font-size: 0.75rem; font-weight: 600; color: var(--accent, #3b82f6); background: rgba(59, 130, 246, 0.12); padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.wo-q-photo-block .wo-photo-grid { margin-top: 4px; margin-bottom: 0; }
.wo-q-photo-upload { display: grid; gap: 10px; }
.wo-q-photo-upload-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.wo-q-photo-hint { margin: 0; font-size: 0.8125rem; }
.wo-q-photo-preview-item { position: relative; }
.wo-q-photo-preview-thumb { border-radius: 10px; }
.wo-q-photo-remove {
  position: absolute; top: 6px; right: 6px; width: 24px; height: 24px;
  border: 0; border-radius: 999px; background: rgba(220, 38, 38, 0.92); color: #fff;
  font-size: 0.75rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.wo-q-photo-remove:hover { background: #b91c1c; }
.wo-location { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 10px 14px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 8px; margin: 8px 0 12px; }
.wo-location-text { flex: 1; min-width: 200px; font-size: 0.875rem; line-height: 1.45; }
.wo-location-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.wo-nav-btn { white-space: nowrap; text-decoration: none; }
.wo-map-panel { display: flex; flex-direction: column; gap: 12px; }
.wo-map-wrap { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: #e8eaed; min-height: 120px; }
.wo-map-canvas { width: 100%; z-index: 1; background: #e8eaed; }
.wo-map-loading { padding: 24px; text-align: center; color: var(--text-dim); font-size: 0.875rem; margin: 0; }
.wo-address-row { display: flex; gap: 8px; align-items: stretch; }
.wo-address-row input { flex: 1; min-width: 0; }
.wo-map-preview-wrap { margin-top: -4px; }
.wo-map-wrap--tall { min-height: 360px; }
.wo-map-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.wo-map-auto { font-size: 0.75rem; }
.wo-tech-legend { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 16px; }
.wo-tech-legend li { display: flex; align-items: center; gap: 6px; font-size: 0.8125rem; }
.wo-tech-legend-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.wo-tech-marker { background: none !important; border: none !important; }
.wo-tech-marker-dot {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%; color: #fff; font-size: 0.75rem; font-weight: 700;
  border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35);
}
.wo-tech-marker-dot--live {
  width: 32px !important;
  height: 32px !important;
  font-size: 0.8125rem !important;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.25), 0 2px 6px rgba(0,0,0,.35);
}
.wo-dest-marker { background: none !important; border: none !important; }
.wo-dest-marker-pin { font-size: 1.25rem; line-height: 1; filter: drop-shadow(0 1px 2px rgba(0,0,0,.3)); }
.leaflet-container { font-family: inherit; }
.wo-comment { font-style: italic; color: var(--text-dim); background: var(--bg-elevated); padding: 8px; border-radius: 6px; margin-top: 6px; }
.wo-internal-banner { background: rgba(245,158,11,.12); border: 1px solid rgba(245,158,11,.35); color: #b45309; padding: 8px 12px; border-radius: 8px; font-size: 0.8125rem; margin-bottom: 10px; }
.wo-modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 9000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.wo-modal { width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto; }
.wo-modal--wide { max-width: 560px; }
.wo-modal--task {
  max-width: min(680px, 96vw);
  max-height: min(88vh, 760px);
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 14px;
}
.wo-task-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.wo-task-modal-head .card-title { margin: 0; font-size: 1.05rem; }
.wo-modal--task .co-modal-tabs {
  padding: 10px 14px;
  flex-shrink: 0;
  margin: 0;
  border-bottom: 1px solid var(--border);
}
.wo-modal--task .co-modal-body {
  flex: 1;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(59, 130, 246, 0.35) transparent;
}
.wo-modal--task .co-modal-body .form-group { margin-bottom: 0; }
.wo-modal--task .co-modal-body .wo-form-grid { gap: 10px 12px; }
.wo-modal--task .co-modal-body .form-group small { font-size: 0.72rem; line-height: 1.35; margin-top: 3px; display: block; }
.wo-modal--task .wo-map-preview-wrap { margin-top: 0; }
.wo-modal--task .wo-map-wrap { min-height: 96px; }
.wo-modal--task .wo-map-wrap .wo-map-canvas,
.wo-modal--task .wo-map-wrap .leaflet-container { height: 130px !important; min-height: 130px !important; }
.wo-modal-foot--task {
  flex-shrink: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  background: var(--bg-card, var(--bg));
}
.wo-modal-foot--task.hidden { display: none; }
.wo-task-panel-hint {
  margin: 0 0 10px;
  font-size: 0.8125rem;
  color: var(--text-dim);
  line-height: 1.45;
}
body.wo-modal-open { overflow: hidden; }
.wo-modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border); }

.wo-pdf-viewer-overlay {
  position: fixed; inset: 0; z-index: 9500;
  background: rgba(0, 0, 0, 0.72);
  display: flex; align-items: center; justify-content: center;
  padding: 12px;
}
.wo-pdf-viewer-overlay.hidden { display: none; }
body.wo-pdf-viewer-open { overflow: hidden; }
.wo-pdf-viewer-panel {
  width: min(96vw, 920px);
  height: min(92vh, 780px);
  background: var(--bg-card, #1e293b);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex; flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}
.wo-pdf-viewer-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 14px; border-bottom: 1px solid var(--border);
  background: var(--bg-elevated, rgba(15, 23, 42, 0.5));
}
.wo-pdf-viewer-title { font-weight: 600; font-size: 0.9rem; }
.wo-pdf-viewer-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.wo-pdf-viewer-frame { flex: 1; width: 100%; min-height: 0; border: 0; background: #0f172a; display: block; }
.wo-email-panel { display: grid; gap: 12px; max-width: 640px; }
.wo-email-panel .form-group { margin: 0; }
.wo-email-message { min-height: 180px; resize: vertical; font-family: inherit; line-height: 1.55; font-size: 0.875rem; }
.wo-email-field-hint { margin: 6px 0 0; font-size: 0.75rem; }
.wo-email-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.wo-email-attach-hint { margin-top: -4px; }
.wo-email-preview-meta { display: grid; gap: 6px; font-size: 0.8125rem; color: var(--text-dim); margin-bottom: 12px; padding: 10px 12px; background: var(--bg-elevated, rgba(0,0,0,.04)); border-radius: 8px; border: 1px solid var(--border); }
.wo-email-preview-body { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: #f1f5f9; min-height: 320px; }
.wo-email-preview-body iframe { width: 100%; min-height: 480px; border: 0; display: block; background: #f1f5f9; }
.wo-email-preview-modal { max-width: 760px; }
.wo-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wo-span-2 { grid-column: span 2; }
@media (max-width: 600px) { .wo-form-grid { grid-template-columns: 1fr; } .wo-span-2 { grid-column: span 1; } }
.wo-sig-canvas { border: 1px solid var(--border); border-radius: 8px; background: #fff; touch-action: none; width: 100%; max-width: 400px; cursor: crosshair; }
.wo-table td, .wo-table th { font-size: 0.8125rem; }

/* Mapa técnicos — aba dedicada (estilo Google Maps) */
.page-content--map { padding: 0 !important; overflow: hidden; }
.wom-page {
  display: flex;
  flex-direction: column;
  height: calc(100dvh - 88px);
  min-height: 420px;
  gap: 8px;
}
.wom-page--gmap {
  height: calc(100dvh - 56px);
  gap: 0;
}
.wom-map-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  width: 100%;
  overflow: hidden;
  border-radius: 0;
  background: #e8eaed;
}
.gmap-map-root,
.wom-map {
  position: absolute;
  inset: 0;
  border: none;
  border-radius: 0;
  background: #e8eaed;
}
.wom-map .wo-map-canvas,
.wom-map .gmap-canvas { height: 100% !important; min-height: 100%; width: 100%; }
.wo-map-wrap--tall .wo-map-canvas,
.wo-map-wrap--tall .gmap-canvas,
.wo-map-wrap--tall .leaflet-container {
  height: 380px !important;
  min-height: 360px;
  width: 100%;
}
.leaflet-container.gmap-canvas,
.leaflet-container { background: #e8eaed; font-family: 'Roboto', system-ui, -apple-system, sans-serif; }

/* Barra + painel lateral empilhados — sem sobreposição */
.gmap-left-stack {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 800;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(320px, calc(100% - 24px));
  max-height: calc(100% - 24px);
  pointer-events: none;
}
.gmap-float-toolbar {
  position: static;
  top: auto;
  left: auto;
  right: auto;
  z-index: auto;
  max-width: none;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  flex-shrink: 0;
}
.gmap-search-bar,
.gmap-toolbar-row2 {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px 10px;
  padding: 10px 12px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,.12), 0 0 1px rgba(0,0,0,.08);
  pointer-events: auto;
}
.gmap-search-icon {
  font-size: 1.25rem;
  color: #5f6368;
  align-self: center;
  margin-right: 2px;
}
.gmap-field { min-width: 0; margin: 0; }
.gmap-field label { font-size: 0.6875rem; color: #5f6368; text-transform: uppercase; letter-spacing: .03em; }
.gmap-field--compact { flex: 0 0 auto; min-width: 88px; }
.gmap-field--grow { flex: 1; min-width: 140px; }
.gmap-select,
.gmap-input {
  border: 1px solid #dadce0;
  border-radius: 8px;
  background: #f8f9fa;
  color: #1f2937;
  min-width: 0;
  padding: 8px 10px;
  font-size: 0.875rem;
  font-weight: 500;
}
.gmap-select option {
  color: #1f2937;
  background: #fff;
}
/* Barra de filtros do mapa: fundo claro — texto sempre escuro */
.gmap-search-bar .wom-select,
.gmap-search-bar .gmap-select {
  color: #1f2937 !important;
  background: #f8f9fa !important;
  border-color: #dadce0 !important;
}
.gmap-search-bar .wom-field label,
.gmap-search-bar .gmap-field label {
  color: #374151 !important;
  font-weight: 700;
}
.gmap-search-bar .wo-picker-input {
  color: #1f2937 !important;
  background: #f8f9fa !important;
  border-color: #dadce0 !important;
}
.gmap-search-bar .wo-picker-input::placeholder {
  color: #6b7280;
}
.gmap-search-bar .wo-picker-input--all {
  color: #374151 !important;
  font-style: normal;
  font-weight: 500;
}
.gmap-search-bar .wo-picker-all {
  color: #374151 !important;
  background: #e8eaed !important;
  border: 1px solid #dadce0;
}
.gmap-search-bar .wo-picker-dropdown {
  color: #1f2937;
  background: #fff !important;
  border-color: #dadce0;
}
.gmap-search-bar .wo-picker-opt {
  color: #1f2937;
}
.gmap-date-input {
  min-width: 132px;
  color-scheme: light;
}
.wom-field--date label {
  color: #7c3aed !important;
  font-weight: 700;
}
.wom-field--muted {
  opacity: 0.45;
  pointer-events: none;
}
.gmap-toolbar-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: #f1f3f4;
  color: #3c4043;
  font-size: 1.125rem;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0,0,0,.08);
}
.gmap-toolbar-btn:hover { background: #e8eaed; }
.gmap-toolbar-btn--primary { background: #1a73e8; color: #fff; }
.gmap-toolbar-btn--primary:hover { background: #1765cc; }
.gmap-status { font-size: 0.75rem; color: #5f6368; align-self: center; margin-left: auto; }

/* Painel lateral — abaixo da barra de filtros */
.gmap-float-sidebar {
  position: static;
  top: auto;
  left: auto;
  width: 100%;
  z-index: auto;
  pointer-events: none;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.gmap-sidebar-content {
  pointer-events: auto;
  background: #fff !important;
  color: #374151 !important;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,.14), 0 0 1px rgba(0,0,0,.1);
  overflow: auto;
  max-height: min(420px, calc(100vh - 220px));
  flex: 1;
  min-height: 120px;
}
.gmap-panel { padding: 12px 14px; }
.gmap-panel-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.gmap-panel-head strong { color: #111827 !important; font-size: 0.9375rem; }
.gmap-panel-head--compact { font-size: 0.8125rem; color: #5f6368; }
.gmap-panel-head--compact strong { font-size: 0.875rem; }
.gmap-panel-addr { margin: 0 0 6px; font-size: 0.875rem; }
.gmap-panel-addr--loading { color: #9aa0a6; font-style: italic; font-size: 0.8125rem; }
.gmap-panel-meta { font-size: 0.75rem; color: #5f6368; margin-bottom: 8px; }
.gmap-panel-link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #1a73e8;
  text-decoration: none;
}
.gmap-panel-link:hover { text-decoration: underline; }
.gmap-os-mini {
  list-style: none;
  margin: 10px 0 0;
  padding: 8px 0 0;
  border-top: 1px solid #e8eaed;
  font-size: 0.75rem;
  color: #5f6368;
}
.gmap-os-mini li { display: flex; align-items: center; gap: 6px; padding: 3px 0; }
.gmap-os-dot {
  width: 8px; height: 8px;
  border-radius: 2px;
  background: #ea4335;
  flex-shrink: 0;
}
.gmap-os-mini-label {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #e8eaed;
  font-size: 0.75rem;
  color: #5f6368;
}
.gmap-rows { display: flex; flex-direction: column; }
.gmap-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #f1f3f4;
}
.gmap-row:last-child { border-bottom: none; }
.gmap-row-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.gmap-row-body strong { font-size: 0.8125rem; color: #111827 !important; }
.gmap-row-body span {
  font-size: 0.75rem;
  color: #5f6368;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gmap-row small { font-size: 0.6875rem; color: #9aa0a6; flex-shrink: 0; }
.gmap-empty { padding: 14px; font-size: 0.8125rem; color: #5f6368; margin: 0; }
.gmap-empty strong { color: #111827; }
.gmap-field--grow { flex: 1; min-width: 140px; }
.gmap-status { font-size: 0.6875rem; color: #9aa0a6; align-self: center; white-space: nowrap; }
.gmap-sidebar-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  padding: 12px 14px 8px;
  border-bottom: 1px solid #e8eaed;
  font-size: 0.8125rem;
  color: #5f6368;
}
.gmap-sidebar-head strong { color: #202124; font-size: 0.9375rem; }
.gmap-info-cards {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
}
.gmap-info-card {
  padding: 12px 14px !important;
  border: none !important;
  border-bottom: 1px solid #e8eaed !important;
  border-left: none !important;
  border-radius: 0 !important;
  min-width: 0 !important;
  background: #fff !important;
}
.gmap-info-card:last-child { border-bottom: none !important; }
.gmap-info-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.gmap-info-pin {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--pin-color, #4285F4);
  flex-shrink: 0;
  box-shadow: 0 0 0 2px #fff, 0 1px 3px rgba(0,0,0,.25);
}
.gmap-info-pin--live { box-shadow: 0 0 0 2px #fff, 0 0 0 5px rgba(52,168,83,.25); }
.gmap-info-pin--os { background: #ea4335; border-radius: 2px; width: 10px; height: 14px; }
.wom-info-addr {
  font-size: 0.875rem;
  line-height: 1.45;
  color: #111827 !important;
  margin: 4px 0 6px;
}
.wom-info-addr .wo-map-addr-street,
.wom-info-addr .wo-map-addr-detail,
.wom-info-addr .wo-map-addr-cep {
  color: inherit;
}
.wom-info-addr--loading { color: #9aa0a6; font-style: italic; font-size: 0.8125rem; }
.gmap-info-meta { color: #5f6368 !important; font-size: 0.8125rem; }
.gmap-card-maps-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #1a73e8;
  text-decoration: none;
}
.gmap-card-maps-link:hover { text-decoration: underline; }
.gmap-os-section { border-top: 1px solid #e8eaed; }
.gmap-os-title {
  padding: 10px 14px 4px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #5f6368;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.gmap-os-count {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e8f0fe;
  color: #1967d2;
}
.gmap-mode-hint { margin: 8px 0 0; font-size: 0.75rem; }
.gmap-sidebar-empty { padding: 16px 14px; }
.gmap-sidebar-hint { font-size: 0.8125rem; margin-top: 4px; }

/* Pins estilo Google Maps */
.gmap-marker-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.gmap-street-label {
  display: block;
  max-width: 150px;
  padding: 3px 8px;
  border-radius: 6px;
  background: #fff;
  color: #111827 !important;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 1px 4px rgba(0,0,0,.22);
  border: 1px solid #e5e7eb;
  pointer-events: none;
}
.gmap-pin-wrap { background: none !important; border: none !important; }
.gmap-pin {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.35));
}
.gmap-pin-bubble {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--pin-color, #4285F4);
  border: 2px solid #fff;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
}
.gmap-pin-bubble > * { transform: rotate(45deg); }
.gmap-pin-letter { display: block; line-height: 1; }
.gmap-pin--dest .gmap-pin-bubble,
.gmap-pin--os .gmap-pin-bubble {
  background: #ea4335;
  font-size: 0.75rem;
}
.gmap-pin--base .gmap-pin-bubble {
  background: #1a73e8;
  font-size: 0.75rem;
}
.gmap-pin-tail {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid var(--pin-color, #4285F4);
  margin-top: -2px;
}
.gmap-pin--dest .gmap-pin-tail,
.gmap-pin--os .gmap-pin-tail { border-top-color: #ea4335; }
.gmap-pin--base .gmap-pin-tail { border-top-color: #1a73e8; }
.gmap-legend-pin--os {
  background: #ea4335 !important;
  border: 2px solid #fff;
}
.gmap-remain-label-wrap { background: none; border: none; }
.gmap-remain-label {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(234, 67, 53, 0.92);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0,0,0,.25);
  transform: translate(-50%, -50%);
}
.wo-os-monitor-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-elevated);
  color: var(--text, #f1f5f9);
}
.wo-os-monitor-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.wo-os-monitor-row--client { padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.wo-os-monitor-row .gmap-legend-body { display: flex; flex-direction: column; gap: 2px; }
.wo-os-monitor-panel .gmap-legend-body strong {
  color: var(--text, #f1f5f9) !important;
  font-weight: 600;
}
.wo-os-monitor-panel small,
.wo-os-monitor-row small {
  color: var(--text-secondary, #cbd5e1) !important;
  line-height: 1.45;
  font-size: 0.8125rem;
}
.wo-os-monitor-panel small strong {
  color: var(--accent-bright, #60a5fa) !important;
  font-weight: 600;
}
.wo-os-monitor-panel .wo-map-addr--monitor,
.wo-os-monitor-panel .wo-map-addr {
  display: block;
  color: var(--text-secondary, #cbd5e1) !important;
}
.wo-os-monitor-panel .wo-map-addr-street {
  color: var(--text, #f1f5f9) !important;
  font-weight: 500;
}
.wo-os-monitor-panel .wo-map-addr-detail {
  color: var(--text-dim, #94a3b8) !important;
}
.wo-os-monitor-panel .wo-map-addr-cep {
  color: var(--accent-bright, #60a5fa) !important;
}
.wo-os-monitor-wait { margin: 0; font-size: 0.875rem; color: var(--text-dim, #94a3b8) !important; }
.wo-os-monitor-panel .wom-live-pill {
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
  vertical-align: middle;
}
.gmap-info-pin--base {
  font-size: 1.1rem;
  line-height: 1;
  width: auto;
  height: auto;
  background: none;
  border: none;
}
.gmap-row--base { border-bottom: 1px solid var(--border, #e8eaed); margin-bottom: 8px; padding-bottom: 8px; }
.gmap-panel-link--inline { font-size: 0.75rem; align-self: center; white-space: nowrap; }
.gmap-pin-wrap--live .gmap-pin-bubble {
  animation: gmap-pulse 2s ease-in-out infinite;
}
@keyframes gmap-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(66,133,244,.45); }
  50% { box-shadow: 0 0 0 10px rgba(66,133,244,0); }
}

/* Controles de zoom */
.gmap-controls {
  position: absolute;
  right: 12px;
  bottom: 80px;
  z-index: 800;
  display: flex;
  flex-direction: column;
  gap: 2px;
  pointer-events: auto;
}
.gmap-ctrl-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: #fff;
  color: #3c4043;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.gmap-ctrl-btn:first-child { border-radius: 8px 8px 0 0; }
.gmap-ctrl-btn:last-child { border-radius: 0 0 8px 8px; }
.gmap-ctrl-btn--locate {
  margin-top: 8px;
  border-radius: 50% !important;
  font-size: 1.125rem;
  color: #1a73e8;
}
.gmap-ctrl-btn:hover { background: #f8f9fa; }

/* Tooltip e popup */
.gmap-tooltip {
  background: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 6px 10px !important;
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  color: #202124 !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.18) !important;
}
.gmap-tooltip--street {
  font-size: 0.75rem !important;
  max-width: 180px;
  white-space: normal;
  text-align: center;
}
.gmap-tooltip::before { border-top-color: #fff !important; }
.gmap-popup { min-width: 200px; max-width: 280px; }
.gmap-popup-title { font-size: 1rem; font-weight: 700; color: #202124; margin-bottom: 4px; }
.gmap-popup-addr { margin: 6px 0 !important; color: #111827 !important; }
.gmap-popup-addr .wo-map-addr-street { color: #111827 !important; }
.gmap-popup-addr .wo-map-addr-detail { color: #4b5563 !important; }
.gmap-popup-addr .wo-map-addr-cep { color: #1d4ed8 !important; }
.gmap-popup-meta { font-size: 0.8125rem; color: #5f6368; line-height: 1.4; }
.gmap-popup-meta--muted { font-style: italic; }
.gmap-popup-link {
  display: inline-block;
  margin-top: 8px;
  font-weight: 600;
  color: #1a73e8 !important;
  text-decoration: none;
}
.gmap-popup-link:hover { text-decoration: underline; }
.leaflet-popup-content-wrapper {
  border-radius: 12px !important;
  box-shadow: 0 2px 10px rgba(0,0,0,.18) !important;
  padding: 0 !important;
}
.leaflet-popup-content { margin: 12px 14px !important; line-height: 1.45; color: #202124 !important; }
.leaflet-popup-content .wo-map-addr,
.leaflet-popup-content .gmap-popup-meta {
  color: #4b5563 !important;
}
.leaflet-popup-content .gmap-popup-title,
.leaflet-popup-content .wo-map-addr-street {
  color: #111827 !important;
}
.leaflet-popup-content .wo-map-addr-cep {
  color: #1d4ed8 !important;
  font-weight: 700;
}
.leaflet-popup-tip { box-shadow: none !important; }

/* Legenda */
.gmap-legend { flex-direction: column !important; gap: 8px !important; }
.gmap-legend li { align-items: flex-start !important; gap: 10px !important; }
.gmap-legend-pin {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--pin-color);
  flex-shrink: 0;
  margin-top: 3px;
  box-shadow: 0 1px 2px rgba(0,0,0,.2);
}
.gmap-legend-body { display: flex; flex-direction: column; gap: 2px; }
.gmap-legend-addr { font-size: 0.8125rem; color: #111827 !important; line-height: 1.35; }
.gmap-legend-addr .wo-map-addr-detail { color: #4b5563 !important; }
.gmap-legend-addr .wo-map-addr-cep { color: #1d4ed8 !important; font-weight: 600; }
.gmap-legend-body strong { color: #111827 !important; }
.gmap-info-card strong { color: #111827 !important; }
.gmap-sidebar-head strong { color: #111827 !important; }

.wom-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px 14px;
  padding: 10px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.wom-field { display: flex; flex-direction: column; gap: 4px; min-width: 160px; }
.wom-field label { font-size: 0.75rem; color: var(--text-dim); font-weight: 600; }
.wom-select {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 0.875rem;
  min-width: 180px;
  color-scheme: dark;
}
.wom-select option {
  color: #e2e8f0;
  background-color: #151d2e;
}
.wom-status { margin-left: auto; font-size: 0.75rem; color: var(--text-dim); align-self: center; }
.wom-info { font-size: 0.8125rem; }
.wom-info-head { margin-bottom: 6px; color: var(--text-dim); }
.wom-info-cards { display: flex; flex-wrap: wrap; gap: 8px; }
.wom-info-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left-width: 4px;
  border-radius: 8px;
  min-width: 160px;
  font-size: 0.8125rem;
}
.wom-info-card span { color: var(--text-dim); }
.wom-info-card small { color: var(--text-dim); font-size: 0.75rem; }
.wom-info-card--live { background: rgba(34, 197, 94, 0.08); }
.wom-live-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.15);
  color: #166534;
  font-weight: 600;
  font-size: 0.75rem;
}
.wo-map-addr {
  display: block;
  line-height: 1.5;
  font-size: 0.92rem;
  color: #111827 !important;
  margin: 4px 0;
}
.wo-map-addr-street {
  display: block;
  color: #111827 !important;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}
.wo-map-addr-detail {
  display: block;
  color: #4b5563 !important;
  font-size: 0.8125rem;
  margin-top: 3px;
  font-weight: 500;
}
.wo-map-addr-cep {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 6px;
  background: #e8f0fe;
  color: #1d4ed8 !important;
  font-size: 0.8125rem;
  font-weight: 700;
}
.wo-map-addr small { color: #1d4ed8 !important; font-weight: 700; }
/* Mapa: painéis claros — nunca herdar texto branco do tema escuro */
.wom-map-stage .wo-map-addr,
.wom-map-stage .wom-info-addr,
.gmap-float-sidebar .wo-muted,
.gmap-float-sidebar .gmap-sidebar-hint {
  color: #4b5563 !important;
}
.gmap-float-sidebar .wo-muted strong {
  color: #111827 !important;
}
.leaflet-popup-content a { color: #2563eb; font-weight: 600; }
.wom-legend {
  padding: 6px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.8125rem;
}
/* Dentro do mapa flutuante: sempre painel claro legível */
.gmap-float-sidebar .wom-legend {
  background: #fff !important;
  border: none !important;
}
.wom-legend-os { margin: 4px 0 0; font-size: 0.75rem; }
.wom-empty { padding: 24px; text-align: center; }
@media (max-width: 768px) {
  .wom-page--gmap { height: calc(100dvh - 52px); }
  .gmap-left-stack {
    top: 8px;
    left: 8px;
    right: 8px;
    width: auto;
    max-height: calc(100% - 16px);
  }
  .gmap-sidebar-content { max-height: min(240px, 32vh); min-height: 100px; }
  .gmap-controls { bottom: calc(32vh + 24px); right: 8px; }
}
@media (max-width: 600px) {
  .wom-page { height: calc(100dvh - 72px); }
  .wom-field { min-width: 140px; flex: 1; }
  .wom-select { min-width: 0; width: 100%; }
  .wom-status { width: 100%; margin-left: 0; }
}

.wom-field--picker { min-width: 220px; flex: 1; max-width: 320px; }
.wom-tech-picker { width: 100%; }
.wom-hint { width: 100%; margin: 0 0 4px; font-size: 0.8125rem; color: var(--text-dim); }
.wom-field--label-edit { min-width: 200px; flex: 1; max-width: 280px; }
.wo-os-marker-pin {
  font-size: 1.1rem;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.35));
}

/* Busca com seleção */
.wo-picker { position: relative; display: flex; flex-direction: column; gap: 6px; }
.wo-picker-chips { display: flex; flex-wrap: wrap; gap: 6px; min-height: 0; }
.wo-picker-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 8px; border-radius: 999px;
  background: rgba(59,130,246,.12); border: 1px solid rgba(59,130,246,.25);
  font-size: 0.8125rem;
}
.wo-picker-chip-rm {
  border: none; background: none; color: var(--text-dim); cursor: pointer;
  font-size: 1rem; line-height: 1; padding: 0 2px;
}
.wo-picker-input-wrap { display: flex; align-items: center; gap: 4px; }
.wo-picker-input {
  flex: 1; min-width: 0; padding: 8px 10px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--bg); color: var(--text); font-size: 0.875rem;
}
.wo-picker-input--all { color: var(--text-dim); font-style: italic; }
.wo-picker-all {
  border: none; background: var(--bg-elevated); color: var(--text-dim);
  width: 28px; height: 28px; border-radius: 6px; cursor: pointer; flex-shrink: 0;
}
.wo-picker-dropdown {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 50; margin: 2px 0 0; padding: 4px 0;
  list-style: none; max-height: 220px; overflow-y: auto;
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}
.wo-picker-dropdown.hidden { display: none; }
.wo-picker-opt {
  padding: 8px 12px; cursor: pointer; font-size: 0.875rem;
}
.wo-picker-opt:hover, .wo-picker-opt--all:hover { background: rgba(59,130,246,.1); }
.wo-picker-opt--all { color: var(--accent); font-weight: 600; }
.wo-picker-opt--muted { color: var(--text-dim); font-style: italic; cursor: default; pointer-events: none; }
.wo-picker-opt-label { display: block; }
.wo-picker-opt-sub {
  display: block;
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wo-standards-edit { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; max-width: 480px; }
.wo-tech-filter { display: flex; flex-direction: column; gap: 4px; min-width: 200px; flex: 1; max-width: 280px; }
.wo-tech-filter label { font-size: 0.75rem; color: var(--text-dim); font-weight: 600; }
.wo-validity--ok { color: #22c55e; }
.wo-validity--soon { color: #f59e0b; font-weight: 600; }
.wo-validity--expired { color: #ef4444; font-weight: 600; }
input[readonly] { background: var(--bg-elevated); color: var(--text-dim); cursor: default; }

/* Estilo Auvo — tarefas */
.auvo-page .card-title { font-size: 1.125rem; }
.auvo-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.auvo-dot--lg { width: 14px; height: 14px; }
.auvo-dot--red { background: #ef4444; }
.auvo-dot--green { background: #22c55e; }
.auvo-dot--gray { background: #94a3b8; }
.auvo-dot--blue { background: #3b82f6; }
.auvo-dot--yellow { background: #f59e0b; }
.auvo-legend { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.auvo-legend .auvo-dot { margin-right: 4px; }
.auvo-select {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #f8fafc;
  color: #111827;
  font-size: 0.875rem;
  font-weight: 500;
  color-scheme: light;
  cursor: pointer;
}
.auvo-select:hover {
  border-color: rgba(59, 130, 246, 0.45);
}
.auvo-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}
.auvo-select option {
  color: #111827;
  background-color: #fff;
}
.auvo-filters { align-items: center; }
.auvo-task-list { display: flex; flex-direction: column; gap: 8px; }
.auvo-task-card {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--bg-elevated); cursor: pointer; transition: border-color .15s, background .15s;
}
.auvo-task-card:hover { border-color: var(--accent); background: rgba(59,130,246,.06); }
.auvo-task-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.auvo-task-title { font-weight: 600; font-size: 0.9375rem; color: var(--text); }
.auvo-task-meta { font-size: 0.8125rem; color: var(--text-dim); }
.auvo-task-cert { margin-left: 6px; color: var(--accent); }
.auvo-task-arrow { color: var(--text-dim); font-size: 1.25rem; }

/* Vista calendário — OS agendadas */
.wo-view-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.wo-view-tab {
  background: none;
  border: none;
  padding: 8px 16px;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 0.875rem;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.wo-view-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 600;
}
.wo-calendar.hidden,
.auvo-task-list.hidden { display: none; }
.wo-cal-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.wo-cal-title {
  flex: 1;
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  min-width: 140px;
}
.wo-cal-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 1.25rem;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}
.wo-cal-arrow:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.wo-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.wo-cal-head {
  text-align: center;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  padding: 10px 4px;
  background: var(--bg-elevated);
}
.wo-cal-day {
  min-height: 110px;
  padding: 6px 4px 4px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}
.wo-cal-day.other-month {
  background: var(--bg-elevated);
  opacity: 0.55;
}
.wo-cal-day.today .wo-cal-day-num {
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.wo-cal-day.selected {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  z-index: 1;
}
.wo-cal-day-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-dim);
  line-height: 1;
  margin-bottom: 2px;
  padding-left: 2px;
}
.wo-cal-entries {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.wo-cal-entry {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  text-align: left;
  padding: 2px 3px;
  border: none;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  font: inherit;
  color: var(--text);
  min-width: 0;
}
.wo-cal-entry:hover {
  background: rgba(59, 130, 246, 0.1);
}
.wo-cal-entry .auvo-dot {
  width: 7px;
  height: 7px;
  margin-top: 4px;
}
.wo-cal-time {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-dim);
  flex-shrink: 0;
  min-width: 32px;
}
.wo-cal-label {
  font-size: 0.6875rem;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex: 1;
}
.wo-cal-label em {
  font-style: normal;
  font-weight: 400;
  color: var(--text-dim);
}
.wo-cal-more {
  border: none;
  background: none;
  padding: 2px 3px;
  font-size: 0.6875rem;
  color: var(--accent);
  cursor: pointer;
  text-align: left;
  font-weight: 600;
}
.wo-cal-more:hover { text-decoration: underline; }
.wo-cal-loading {
  grid-column: 1 / -1;
  padding: 32px;
  text-align: center;
  color: var(--text-dim);
  background: var(--bg);
}
.wo-cal-day-panel {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-elevated);
}
.wo-cal-day-panel.hidden { display: none; }
.wo-cal-day-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.wo-cal-day-panel-head h4 {
  margin: 0;
  font-size: 0.9375rem;
  text-transform: capitalize;
}
.wo-cal-day-panel-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.wo-cal-day-panel-list .wo-cal-entry {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
}
.wo-cal-day-panel-list .wo-cal-label {
  white-space: normal;
}
@media (max-width: 900px) {
  .wo-cal-day { min-height: 80px; }
  .wo-cal-label em { display: none; }
}
@media (max-width: 640px) {
  .wo-cal-grid { font-size: 0.9em; }
  .wo-cal-day { min-height: 64px; }
  .wo-cal-time { display: none; }
}

.auvo-detail-head { align-items: center !important; gap: 12px; }
.auvo-detail-title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.auvo-detail-title small { color: var(--text-dim); font-size: 0.8125rem; font-weight: 400; }
.auvo-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.wo-workflow-pipeline {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  margin: 12px 0 4px; padding: 10px 12px;
  background: rgba(15, 23, 42, 0.04); border-radius: 10px;
}
.wo-wf-step {
  font-size: 0.78rem; font-weight: 600; padding: 4px 10px; border-radius: 999px;
  background: rgba(148, 163, 184, 0.2); color: #64748b;
}
.wo-wf-step--active { background: rgba(59, 130, 246, 0.18); color: #2563eb; }
.wo-wf-step--done { background: rgba(34, 197, 94, 0.18); color: #16a34a; }
.wo-wf-arrow { color: #94a3b8; font-size: 0.75rem; }
.wo-workflow-actions .btn-warning { background: #ea580c; color: #fff; border: none; }
.wo-pause-list { margin: 0 0 12px; padding-left: 18px; color: #475569; }
.wo-pause-list li { margin-bottom: 8px; }
.wo-form-loading { padding: 24px; text-align: center; }
.wo-map-wrap--placeholder {
  min-height: 80px; display: flex; align-items: center; justify-content: center;
  color: #94a3b8; font-size: 0.85rem; background: rgba(148,163,184,.08);
}
.auvo-tabs { overflow-x: auto; flex-wrap: nowrap; }
.auvo-section-title { font-size: 0.9375rem; margin: 16px 0 10px; color: var(--text); font-weight: 600; }

.wm-os-form { padding: 4px 0 8px; }
.wm-os-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.wm-os-title { margin: 0 0 4px; font-size: 1.125rem; }
.wm-os-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; font-size: 0.8125rem; }
.wm-os-badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; }
.wm-os-badge--out { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.wm-os-badge--in { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
.wm-os-actions { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.wm-manual-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; align-items: center; }
.wm-manual-row input { flex: 1; min-width: 120px; }
.wm-type-pill { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 0.75rem; font-weight: 600; }
.wm-type-pill--saida { background: rgba(59, 130, 246, 0.12); color: #93c5fd; }
.wm-type-pill--entrada { background: rgba(34, 197, 94, 0.12); color: #86efac; }
.auvo-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin-bottom: 12px; }
.auvo-info-span2 { grid-column: span 2; }
.auvo-info-lbl { display: block; font-size: 0.75rem; color: var(--text-dim); margin-bottom: 2px; }
.auvo-timeline { list-style: none; margin: 0 0 16px; padding: 0; border-left: 2px solid var(--border); }
.auvo-timeline-item { position: relative; padding: 0 0 14px 18px; }
.auvo-timeline-dot {
  position: absolute; left: -6px; top: 4px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--accent); border: 2px solid var(--bg-elevated);
}
.auvo-timeline-item strong { display: block; font-size: 0.875rem; }
.auvo-timeline-item small { color: var(--text-dim); font-size: 0.75rem; }

/* Monitoramento OS — linha do tempo horizontal compacta */
.wo-mon-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 14px 18px;
  align-items: start;
  margin-bottom: 12px;
}
.wo-mon-block { min-width: 0; }
.auvo-section-title--compact { margin: 0 0 8px; font-size: 0.9375rem; }
.wo-hint--compact { margin: 0 0 8px; font-size: 0.78rem; line-height: 1.35; }
.wo-timeline-compact {
  display: flex;
  align-items: flex-start;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 2px 8px;
  scrollbar-width: thin;
}
.wo-timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 88px;
  max-width: 120px;
  flex: 0 0 auto;
  text-align: center;
}
.wo-timeline-step-time {
  font-size: 0.68rem;
  color: var(--text-dim);
  line-height: 1.2;
  white-space: nowrap;
}
.wo-timeline-step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg-elevated);
  flex-shrink: 0;
}
.wo-timeline-step-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.wo-timeline-step-note {
  margin-left: 2px;
  font-size: 0.7rem;
  opacity: 0.85;
}
.wo-timeline-step-line {
  flex: 0 0 18px;
  height: 2px;
  background: var(--border);
  margin-top: 22px;
  align-self: flex-start;
}
.wo-trail-hint {
  margin: 0 0 8px;
  font-size: 0.8125rem;
  color: var(--text-dim);
  line-height: 1.35;
}
.wo-trail-hint strong { color: var(--accent-bright, #60a5fa); }
.wo-monitor-route-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  padding: 10px 12px;
  margin-bottom: 10px;
  border-radius: 8px;
  background: rgba(96, 165, 250, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.35);
}
.wo-monitor-route-km {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent-bright, #60a5fa);
  line-height: 1;
}
.wo-monitor-route-meta {
  font-size: 0.8125rem;
  color: var(--text-dim, #94a3b8);
}
.gmap-trail-km-wrap { background: transparent !important; border: none !important; }
.gmap-trail-km {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  background: var(--trail-color, #4285F4);
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
  transform: translate(-50%, -50%);
}
.wo-os-monitor-done { color: #86efac !important; margin: 0; font-size: 0.8125rem; }
.wo-os-monitor-wait { margin: 0; font-size: 0.8125rem; }
.wo-mon-block .auvo-timeline {
  max-height: 280px;
  overflow-y: auto;
  margin-bottom: 0;
  padding-right: 4px;
}
.wo-map-wrap--monitor {
  min-height: 260px;
  height: 300px;
}
.wo-map-wrap--monitor .wo-map-canvas,
.wo-map-wrap--monitor .leaflet-container {
  height: 300px !important;
  min-height: 260px !important;
}
.wo-mon-collab {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 12px 10px;
  background: var(--bg-elevated);
}
.wo-mon-collab summary {
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 10px 0 8px;
  color: var(--text-secondary);
  list-style: none;
}
.wo-mon-collab summary::-webkit-details-marker { display: none; }
.wo-mon-collab summary::before {
  content: '▸ ';
  color: var(--text-dim);
}
.wo-mon-collab[open] summary::before { content: '▾ '; }
.wo-mon-collab .auvo-assignees { margin-bottom: 0; }
@media (max-width: 900px) {
  .wo-mon-layout { grid-template-columns: 1fr; }
}

.auvo-assignees { margin-bottom: 16px; }
.auvo-sig-block { margin-top: 16px; padding: 12px; border: 1px solid var(--border); border-radius: 8px; }
.auvo-sig-img { max-width: 280px; border: 1px solid var(--border); border-radius: 4px; margin-top: 8px; }
.auvo-radio-row { display: flex; gap: 16px; flex-wrap: wrap; font-size: 0.875rem; }
.auvo-radio-row label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.btn-link { background: none; border: none; color: var(--accent); cursor: pointer; padding: 0; font-size: inherit; text-decoration: underline; }
.hidden { display: none !important; }
@media (max-width: 600px) {
  .auvo-info-grid { grid-template-columns: 1fr; }
  .auvo-info-span2 { grid-column: span 1; }
}

/* OS Padrões — listagem agrupada */
.wpo-page .wpo-hero { overflow: visible; }
.wpo-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.wpo-toolbar .wo-search-input { flex: 1; min-width: 200px; }
.wpo-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.wpo-filter {
  border: 1px solid var(--border); background: var(--bg-elevated); color: var(--text-dim);
  padding: 6px 12px; border-radius: 999px; font-size: 0.8125rem; cursor: pointer;
}
.wpo-filter.active { border-color: var(--accent); color: var(--accent); background: rgba(59,130,246,.1); font-weight: 600; }
.wpo-stats { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; font-size: 0.8125rem; color: var(--text-dim); }
.wpo-stat strong { color: var(--text); font-size: 1rem; margin-right: 4px; }
.wpo-stat--warn strong { color: #f59e0b; }
.wpo-stat--blue strong { color: #60a5fa; }
.wpo-stat--ok strong { color: #22c55e; }
.wpo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.wpo-card {
  border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px;
  background: var(--bg-elevated); display: flex; flex-direction: column; gap: 10px;
  transition: border-color .15s, box-shadow .15s;
}
.wpo-card:hover { border-color: rgba(59,130,246,.4); box-shadow: 0 4px 16px rgba(0,0,0,.12); }
.wpo-card--campo { border-left: 3px solid #f59e0b; }
.wpo-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.wpo-os-ref { font-size: 1.0625rem; font-weight: 700; letter-spacing: -.02em; }
.wpo-client { font-size: 0.875rem; color: var(--text-dim); margin-top: 2px; }
.wpo-status {
  font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  padding: 4px 8px; border-radius: 6px; white-space: nowrap;
}
.wpo-status--aberta { background: rgba(34,197,94,.12); color: #4ade80; }
.wpo-card--aberta { border-left: 3px solid #22c55e; }
.wpo-status--done { background: rgba(34,197,94,.12); color: #4ade80; }
.wpo-card-meta { display: flex; flex-direction: column; gap: 4px; font-size: 0.8125rem; color: var(--text-dim); }
.wpo-card-stds { font-size: 0.8125rem; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.wpo-std-label { font-weight: 600; color: var(--text); }
.wpo-chip-warn { font-size: 0.6875rem; padding: 2px 6px; border-radius: 4px; background: rgba(245,158,11,.15); color: #f59e0b; }
.wpo-card-actions { display: flex; gap: 8px; margin-top: 4px; flex-wrap: wrap; }
.wpo-empty { text-align: center; padding: 32px 16px; color: var(--text-dim); }
.wpo-empty p { margin: 0 0 12px; }
.wpo-detail { margin: 0; border: none; background: transparent; box-shadow: none; }
.wpo-detail-header { align-items: flex-start !important; flex-wrap: wrap; }
.wpo-back { margin-bottom: 8px; }
.wpo-detail-title { margin: 8px 0 2px; font-size: 1.25rem; }
.wpo-detail-sub { margin: 0; color: var(--text-dim); font-size: 0.9375rem; }
.wpo-detail-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 16px; margin-bottom: 16px; }
.wpo-detail-block { min-width: 0; }
.wpo-kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 0.875rem; margin: 0; }
.wpo-kv dt { color: var(--text-dim); margin: 0; }
.wpo-kv dd { margin: 0; font-weight: 500; }
.wpo-std-table td { vertical-align: top; }
.wpo-timeline { list-style: none; margin: 0; padding: 0; }
.wpo-tl-item { display: flex; gap: 12px; padding: 0 0 16px; position: relative; }
.wpo-tl-item:not(:last-child)::before {
  content: ''; position: absolute; left: 5px; top: 14px; bottom: 0; width: 2px; background: var(--border);
}
.wpo-tl-dot {
  width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; margin-top: 4px;
  border: 2px solid var(--bg-elevated); background: var(--accent);
}
.wpo-tl-item--saida .wpo-tl-dot { background: #3b82f6; }
.wpo-tl-item--entrada .wpo-tl-dot { background: #22c55e; }
.wpo-tl-body { flex: 1; min-width: 0; }
.wpo-tl-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 0.875rem; }
.wpo-tl-meta { font-size: 0.75rem; color: var(--text-dim); margin-top: 4px; }
.wpo-tl-notes { font-size: 0.8125rem; color: var(--text-dim); margin-top: 6px; font-style: italic; }
@media (max-width: 768px) {
  .wpo-detail-grid { grid-template-columns: 1fr; }
  .wpo-toolbar { flex-direction: column; align-items: stretch; }
}
