/* Barra de busca — faixa branca logo abaixo do título Dispositivos */
.avsl-busca-dock.avsl-busca-topo {
    background: #fff !important;
    border-bottom: 1px solid #e5e7eb !important;
    padding: 6px 8px !important;
}

html.theme-dark .avsl-busca-dock.avsl-busca-topo {
    background: #1e293b !important;
    border-color: #334155 !important;
}

.avsl-busca-dock .x-form-text {
    height: 34px !important;
    border-radius: 10px !important;
    font-size: 13px !important;
}

.avsl-busca-dock .x-form-text:focus {
    border-color: #c40000 !important;
}

/* Toolbar Dispositivos: rolagem horizontal + botões AVSL sempre clicáveis */
body.avsl-ui-fase3 #fleet-panel .avsl-tbar-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    max-width: 100%;
}

body.avsl-ui-fase3 #fleet-panel .avsl-tbar-scroll .x-box-inner {
    min-width: max-content;
}

body.avsl-ui-fase3 #fleet-panel .avsl-tbar-scroll .x-btn.avsl-fase3-btn,
body.avsl-ui-fase3 #fleet-panel .avsl-tbar-scroll .x-btn:not(.x-item-disabled) {
    opacity: 1 !important;
}

body.avsl-ui-fase3 #fleet-panel .avsl-tbar-scroll .x-btn-inner {
    opacity: 1 !important;
}

body.avsl-ui-fase3 #fleet-panel .avsl-tbar-scroll .x-btn.avsl-fase3-btn {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    margin: 0 2px !important;
}

body.avsl-ui-fase3 #fleet-panel .avsl-tbar-scroll .x-btn.avsl-fase3-btn .x-btn-inner {
    color: #7f0a0a !important;
    font-weight: 600 !important;
}

body.avsl-ui-fase3 #fleet-panel .avsl-tbar-scroll .x-btn.avsl-wa-btn {
    background: #25d366 !important;
    border: 1px solid #1ebe57 !important;
}

body.avsl-ui-fase3 #fleet-panel .avsl-tbar-scroll .x-btn.avsl-wa-btn .x-btn-glyph,
body.avsl-ui-fase3 #fleet-panel .avsl-tbar-scroll .x-btn.avsl-wa-btn .x-btn-icon-el:before {
    color: #fff !important;
    opacity: 1 !important;
}

.avsl-alerta-chip {
    display: inline-block;
    max-width: 88px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
    color: #b45309;
    font-weight: 600;
}

.avsl-fin-icon {
    color: #dc2626;
    margin-right: 4px;
}
