/*
  Cards + lista (22/10) — telas que mostravam SÓ cards (Triagem, Em Cotação, Histórico de Atendimentos) ganharam o alternador "Cards | Lista".
  Estes estilos moravam num <style> dentro de AtendimentoHibrido.razor (só existiam enquanto essa página estava aberta — o Histórico, que usa os
  mesmos cards, ficava sem estilo). Agora são globais; as cópias que continuam na página são idênticas (sem efeito colateral).

    .b9-view-toggle           alternador "Cards | Lista" (pílula roxa no item ativo)
    .b9-triage-grid/-card     feed de cards
    .b9-grid + helpers        tabela da visão Lista (coluna Ações fixa à direita, texto longo quebra linha)
*/

.b9-view-toggle {
    display: inline-flex;
    background: #fff;
    border-radius: 12px;
    padding: 4px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .06);
    gap: 4px;
}

.b9-view-toggle button {
    border: none;
    background: transparent;
    border-radius: 9px;
    padding: 7px 16px;
    font-size: 12.5px;
    font-weight: 700;
    color: #6E6E7A;
}

.b9-view-toggle button.active {
    background: #845ADF;
    color: #fff;
}

.b9-triage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.b9-triage-card {
    background: #fff;
    border: 1px solid rgba(16, 24, 40, .08);
    border-radius: 16px;
    box-shadow: 0 2px 6px rgba(16, 24, 40, .08), 0 1px 2px rgba(16, 24, 40, .06);
    overflow: hidden;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.b9-triage-code {
    font-size: 14px;
    font-weight: 800;
    color: #845ADF;
}

.b9-triage-time {
    font-size: 12px;
    color: #9C9AA8;
    font-weight: 600;
}

.b9-piece-chip {
    background: #F1EEFC;
    color: #6B4FC7;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12.5px;
    font-weight: 600;
}

.b9-triage-vehicle, .b9-triage-customer {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6E6E7A;
}

.b9-triage-customer {
    color: #3A3A45;
    font-weight: 600;
}

.b9-btn-primary {
    background: #845ADF;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 0;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.b9-btn-primary:hover {
    background: #7345c9;
    color: #fff;
}

/* ---- visão Lista ---- */
.b9-grid th {
    white-space: nowrap;
}

.b9-grid-id {
    max-width: 120px;
}

.b9-cell-wrap {
    min-width: 140px;
    max-width: 260px;
    white-space: normal;
    overflow-wrap: anywhere;
}

.b9-cell-wide {
    min-width: 220px;
    max-width: 340px;
}

.b9-col-sticky {
    position: sticky;
    right: 0;
    z-index: 1;
    white-space: nowrap;
    background-color: var(--custom-white, #fff);
    box-shadow: inset 0 0 0 9999px var(--bs-table-bg-state, transparent), -8px 0 8px -8px rgba(15, 23, 42, 0.22);
}

.b9-grid thead .b9-col-sticky {
    z-index: 2;
}

/* botão de ação compacto dentro da linha da lista (o .b9-btn-primary dos cards é largo, de largura total) */
.b9-btn-primary.b9-btn-inline {
    display: inline-flex;
    padding: 6px 12px;
    white-space: nowrap;
}
