#view-roteirizacao.is-loading { display: none !important; }
.global-loader-overlay.route-editor-loading { z-index: 9600; }
.global-loader-overlay.route-editor-loading .global-loader-spinner { border-top-color: #2563eb; }
.roteiro-topbar.roteiro-toolbar { display: flex; flex-direction: column; align-items: stretch; gap: 6px; padding: 6px 12px; }
.roteiro-toolbar-main { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 20px; min-width: 0; }
.roteiro-toolbar .roteiro-topbar-center { flex: 1; min-width: 0; padding: 0; justify-content: flex-start; gap: 6px; flex-wrap: wrap; }
.roteiro-toolbar .roteiro-back-btn { white-space: nowrap; border-right: 1px solid var(--border-card); border-radius: 0; padding: 5px 10px 5px 0; margin-right: 4px; }
.roteiro-toolbar .roteiro-nome-input { flex: 1; width: 180px; min-width: 140px; max-width: 320px; text-align: left; padding: 4px 6px; font-size: 13px; }
.roteiro-toolbar .roteiro-metrics { display: flex; gap: 12px; padding: 0; border: 0; white-space: nowrap; font-size: 11px; color: var(--text-muted); }
.roteiro-toolbar .roteiro-metrics strong { color: var(--text-main); }
.roteiro-toolbar .roteiro-topbar-right { display: flex; flex-direction: row; align-items: center; justify-content: flex-end; gap: 8px; width: auto; flex-shrink: 0; grid-column: auto; }
.roteiro-toolbar .roteiro-topbar-right button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 5px 10px; font-size: 11px; min-height: 30px; white-space: nowrap; }
.roteiro-toolbar-controls { display: grid; grid-template-columns: minmax(350px, 470px) minmax(180px, 1fr) auto; gap: 12px; align-items: center; }
.roteiro-toolbar .roteiro-topbar-left { display: grid; grid-template-columns: 1.2fr 1fr; gap: 12px; min-width: 0; }
.roteiro-toolbar-field { display: flex; align-items: center; gap: 7px; min-width: 0; }
.roteiro-toolbar-field label { font-size: 10px; font-weight: 600; text-transform: uppercase; color: var(--text-muted); white-space: nowrap; }
.roteiro-toolbar-field .dark-input { width: 100%; min-width: 0; height: 28px; padding: 4px 8px; font-size: 11px; }
.roteiro-toolbar .roteiro-search-wrap { width: 100%; min-width: 0; }
.roteiro-toolbar .roteiro-search-wrap .dark-input { width: 100%; height: 28px; padding: 4px 8px 4px 28px; font-size: 11px; }
.roteiro-toolbar .roteiro-search-icon { display: flex; align-items: center; color: var(--text-muted); }
.roteiro-toolbar-tools { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.roteiro-toolbar-tools button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 4px 9px; font-size: 11px; min-height: 28px; white-space: nowrap; }
.roteiro-toolbar #btnLimparMarcasRoteiroD2 { padding: 4px 9px; font-size: 11px; min-height: 28px; }
.roteiro-toolbar #blocoAgenteIaRoteiroD2 { align-items: center; gap: 6px; }
#blocoAgenteIaRoteiroD2 .agente-pro-start { position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; flex-shrink: 0; width: 27.6px; height: 27.6px; min-height: 27.6px; padding: 3px; border: 1px solid #0b111b; border-radius: 50%; cursor: pointer; color: #f0faff; background: radial-gradient(circle at 50% 33%, #283f52, #08111e 66%); box-shadow: 0 2px 0 #07111a, 0 3px 5px #0005, inset 0 0 0 1px #678b9c, inset 0 0 0 2px #b2edff, inset 0 0 0 3px #19acd2; font-family: inherit; line-height: 1; white-space: normal; transition: transform .15s, box-shadow .15s; }
.agente-pro-start::before { content: ''; position: absolute; inset: 3px; z-index: -1; border-radius: 50%; border: 1px solid #6ddfff; background: linear-gradient(160deg, #b8eeff26, transparent 55%); box-shadow: 0 0 3px #32cfff99, inset 0 1px 2px #0009; }
#blocoAgenteIaRoteiroD2 .agente-pro-start:hover { transform: translateY(-1px); box-shadow: 0 3px 0 #07111a, 0 4px 6px #20bde944, inset 0 0 0 1px #7ca9ba, inset 0 0 0 2px #d9f8ff, inset 0 0 0 3px #28c7e9; }
#blocoAgenteIaRoteiroD2 .agente-pro-start:active { transform: translateY(1px); }
#blocoAgenteIaRoteiroD2 .agente-pro-start:focus-visible { outline: 2px solid var(--accent-primary, #8338ec); outline-offset: 5px; }
.agente-pro-name { font-size: 8px; font-weight: 600; color: #f0faff; text-shadow: 0 1px 2px #000b; }
.roteiro-toolbar #btnRelatorioAgenteProRoteiroD2 { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; min-height: 24px; padding: 0; border-radius: 50%; }
@media (max-width: 1100px) {
  .roteiro-toolbar-main { display: flex; flex-wrap: wrap; gap: 8px 18px; }
  .roteiro-toolbar .roteiro-topbar-center { flex-basis: calc(100% - 280px); }
  .roteiro-toolbar .roteiro-metrics { order: 3; width: 100%; }
  .roteiro-toolbar-controls { grid-template-columns: minmax(0, 1fr) auto; gap: 10px 14px; }
  .roteiro-toolbar .roteiro-topbar-left { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .roteiro-topbar.roteiro-toolbar { padding: 6px 8px; }
  .roteiro-toolbar .roteiro-topbar-center { flex-basis: 100%; order: 0; }
  .roteiro-toolbar .roteiro-nome-input { min-width: 100px; }
  .roteiro-toolbar .roteiro-topbar-right { width: 100%; justify-content: flex-end; flex-wrap: wrap; }
  .roteiro-toolbar .roteiro-topbar-right .btn-cyan-action { width: auto; }
  .roteiro-toolbar-field { flex-direction: column; align-items: stretch; gap: 4px; }
  .roteiro-toolbar .roteiro-topbar-left { gap: 10px; }
  .roteiro-toolbar-controls { grid-template-columns: 1fr; }
  .roteiro-toolbar .roteiro-topbar-left, .roteiro-toolbar-tools { grid-column: 1; }
  .roteiro-toolbar-tools { justify-content: flex-end; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) { #blocoAgenteIaRoteiroD2 .agente-pro-start { transition: none; } }
