/* Dashboard do coordenador. Cores e base (inputs, botões) vêm dos temas do
   oneKey (/ok/onekey.css); aqui só o layout próprio. */

body {
    display: block;
    padding: 0 0 64px;
}

/* o onekey.css põe todos os <label> em absoluto (por cima do input) */
label.campo,
label.seguir {
    position: static;
    padding: 0;
}

/* ---------- topo ---------- */
.topo {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 28px;
    padding: 12px 32px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
}

.topo-marca {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.topo-marca i { color: var(--accent); margin-right: 6px; }

.topo-nav { display: flex; gap: 4px; }

.topo-nav a {
    padding: 6px 12px;
    border-radius: 6px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
}

.topo-nav a:hover { background: var(--config-item-hover); color: var(--text-primary); }
.topo-nav a.activo { background: var(--accent-selected); color: var(--text-primary); }

.topo-estado {
    margin-left: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 12px;
    color: var(--text-muted);
}

.servico i { font-size: 9px; margin-right: 4px; vertical-align: 1px; }
.servico.vivo i { color: var(--icon-add); }
.servico.parado i { color: var(--error); }

/* ---------- conteúdo ---------- */
.conteudo {
    max-width: 1500px;
    margin: 0 auto;
    padding: 24px 32px 0;
}

.painel {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 18px 22px;
    margin-bottom: 20px;
}

.painel h1 { font-size: 18px; margin: 0; }
.painel h2 { font-size: 15px; margin: 0 0 12px; color: var(--text-heading); text-align: left; }
.painel h2 i { color: var(--text-muted); margin-right: 6px; }

.painel-topo {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.painel-topo h2 { margin: 0; }
.painel-topo input[type="search"] { width: 260px; }

.painel-form { max-width: 980px; }

.vazio, .dica { color: var(--text-muted); font-size: 13px; margin: 8px 0 0; }
.aviso { color: var(--error); }
.mono { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; }

/* ---------- cartões de resumo ---------- */
.resumo {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.cartao {
    display: flex;
    flex-direction: column;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-surface);
    color: var(--text-primary);
    text-decoration: none;
}

a.cartao:hover { border-color: var(--accent); }
.cartao.activo { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.cartao-num { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cartao-rot { font-size: 12px; color: var(--text-muted); }

/* ---------- estados ---------- */
.etiqueta {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    vertical-align: middle;
    border: 1px solid currentColor;
}

.estado-novo      { color: var(--text-muted); }
.estado-em_curso  { color: var(--accent); }
.estado-concluido { color: var(--icon-add); }
.estado-falhado   { color: var(--error); }
.estado-cancelado { color: var(--favorite); }

.cartao.estado-novo .cartao-num, .cartao.estado-em_curso .cartao-num,
.cartao.estado-concluido .cartao-num, .cartao.estado-falhado .cartao-num,
.cartao.estado-cancelado .cartao-num { color: inherit; }
.cartao[class*="estado-"] .cartao-rot { color: var(--text-muted); }

/* ---------- tabelas ---------- */
.tabela-scroll { overflow-x: auto; }

.tabela {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.tabela th {
    text-align: left;
    padding: 10px;
    font-size: 12px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    border-right: none;
    white-space: nowrap;
}

.tabela td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--border-separator);
    border-right: none;
    vertical-align: top;
}

.tabela tbody tr { cursor: pointer; }
.tabela tbody tr:hover { background: var(--config-item-hover); }
.tabela .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tabela .data { white-space: nowrap; }
.tabela .titulo { max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tabela a { color: var(--accent); text-decoration: none; font-weight: 600; }

.tabela-log td:first-child { white-space: nowrap; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.tabela-log .tipo { white-space: nowrap; font-weight: 600; }
.tabela-log .resumo {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.tipo-ferramenta .tipo { color: var(--accent); }
.tipo-erro .tipo, .tipo-negado .tipo { color: var(--error); }
.tipo-fim .tipo { color: var(--icon-add); }
.tipo-sistema .tipo, .tipo-resultado .tipo { color: var(--text-muted); font-weight: 400; }
.tipo-resultado td { color: var(--text-muted); }

.contador { font-size: 12px; font-weight: 400; color: var(--text-muted); margin-left: 6px; }
.seguir { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; cursor: pointer; }

/* ---------- lista de pedidos em cartões ----------
   Todas as linhas partilham as mesmas colunas (--pc-cols), por isso cada dado
   fica sempre na mesma posição; um campo vazio mostra «—» e guarda o lugar.
   As colunas de texto são frações (minmax(0, Nfr)), nunca mínimos fixos: a
   grelha cabe sempre no painel e, quando aperta, saem colunas por prioridade. */
.painel-topo select { margin-left: auto; width: auto; }

.lista-pedidos {
    --pc-cols: 40px minmax(0, 3fr) 100px minmax(0, 1.2fr) minmax(0, 1fr) 72px 60px 116px 96px 120px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.pc, .pc-cabecalho {
    display: grid;
    grid-template-columns: var(--pc-cols);
    align-items: center;
    column-gap: 12px;
    padding: 0 12px;
}

.pc-cabecalho {
    padding-bottom: 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-separator);
}

.pc {
    min-height: 40px;
    border: 1px solid var(--border-separator);
    border-left: 3px solid transparent;
    border-radius: 6px;
    background: var(--bg-surface);
    color: var(--text-muted);
    font-size: 12px;
    line-height: 16px;
    text-decoration: none;
    transition: background-color .12s, border-color .12s;
}
.pc:hover { background: var(--config-item-hover); border-color: var(--border-color); }
.pc[data-executor="coordenador"] { border-left-color: var(--favorite); }
.pc:hover[data-executor="coordenador"] { border-left-color: var(--favorite); }
.pc[hidden] { display: none; }

.pc > span, .pc-cabecalho > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-dir { text-align: right; font-variant-numeric: tabular-nums; }
.pc-centro { text-align: center; }
.pc-vazio { color: var(--text-muted); opacity: .5; }

.pc-num { font-variant-numeric: tabular-nums; text-align: right; color: var(--text-muted); }
.pc-titulo { font-size: 13px; font-weight: 500; color: var(--text-primary); }
.pc i.pc-ref { margin-right: 6px; color: var(--text-muted); }

.pc i { width: 14px; text-align: center; font-size: 12px; }
.pc-executor { display: flex; align-items: center; gap: 4px; }
.pc-executor i { flex: none; color: var(--accent); }
.pc-executor.coord i { color: var(--favorite); }

/* o badge ocupa a coluna inteira: estado e resultado ficam sempre com a mesma largura */
.pc .etiqueta {
    box-sizing: border-box;
    width: 100%;
    padding: 1px 6px;
    line-height: 16px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}

/* ≤1400: saem canal/modelo e custo */
@media (max-width: 1400px) {
    .lista-pedidos { --pc-cols: 40px minmax(0, 3fr) 100px minmax(0, 1.2fr) 72px 116px 96px 120px; }
    .pc-canal, .pc-custo, .pc-cabecalho > :nth-child(5), .pc-cabecalho > :nth-child(7) { display: none; }
}

/* ≤1100 (iPhone/iPad deitado): executor só com o ícone e sai a duração */
@media (max-width: 1100px) {
    .lista-pedidos { --pc-cols: 36px minmax(0, 3fr) 16px minmax(0, 1.2fr) 112px 88px 108px; }
    .pc-duracao, .pc-cabecalho > :nth-child(6) { display: none; }
    .pc-executor span, .pc-cabecalho > :nth-child(3) { font-size: 0; }
    .pc, .pc-cabecalho { column-gap: 10px; }
}

/* ---------- ficha ---------- */
.ficha {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px 24px;
    margin: 0;
}

.ficha div.largo { grid-column: 1 / -1; }
.ficha dt { font-size: 11px; font-weight: 600; color: var(--text-label); text-transform: uppercase; letter-spacing: .03em; }
.ficha dd { margin: 2px 0 0; color: var(--text-primary); }
.ficha small { color: var(--text-muted); }
.copiar { display: flex; align-items: center; gap: 8px; }
.copiar code { background: var(--bg-input); padding: 4px 8px; border-radius: 4px; font-size: 12px; }

pre.erro {
    margin: 14px 0 0;
    padding: 10px 12px;
    border-left: 3px solid var(--error);
    background: var(--bg-input);
    color: var(--error);
    white-space: pre-wrap;
    font-size: 12px;
}

.texto-pedido { white-space: pre-wrap; word-break: break-word; margin: 0; font-family: inherit; }

.markdown { line-height: 1.6; max-width: 70em; }
.markdown table { border-collapse: collapse; margin: 10px 0; }
.markdown th, .markdown td { border: 1px solid var(--border-separator); padding: 4px 10px; text-align: left; }
.markdown code { background: var(--bg-input); padding: 1px 4px; border-radius: 4px; font-size: 12px; }
.markdown pre { background: var(--bg-input); padding: 10px; border-radius: 6px; overflow-x: auto; }
.markdown pre code { padding: 0; }
.markdown a { color: var(--accent); }

/* ---------- formulários ---------- */
.campos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px 28px;
    margin: 18px 0 22px;
}

.campo { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 600; color: var(--text-label); }
.campo.largo { grid-column: 1 / -1; }
.campo textarea { resize: vertical; font-family: inherit; }

.botoes { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-cancel { background-color: var(--btn-cancel-bg); color: var(--btn-cancel-text); }
.btn-cancel:hover { background-color: var(--btn-cancel-hover); }

.btn-icone {
    background: none;
    color: var(--text-muted);
    padding: 4px 8px;
}

.btn-icone:hover { background: var(--config-item-hover); color: var(--text-primary); }

/* ---------- modal e notificação ---------- */
.modal-fundo {
    position: fixed;
    inset: 0;
    background: var(--overlay);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.modal-fundo[hidden] { display: none; }

.modal {
    width: min(1000px, calc(100vw - 48px));
    max-height: 86vh;
    overflow: auto;
    background: var(--bg-modal);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 16px 20px 20px;
}

.modal-topo { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border-separator); margin-bottom: 12px; }
.modal-topo h3 { margin: 0 0 10px; font-size: 15px; }
.detalhe { white-space: pre-wrap; word-break: break-word; font-size: 12px; margin: 0; }

.notificacao {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 10px 16px;
    border-radius: 8px;
    background: var(--notification-bg);
    color: var(--notification-text);
    box-shadow: 0 4px 16px var(--shadow);
    z-index: 200;
}

.notificacao[hidden] { display: none; }

@media (max-width: 700px) {
    .topo, .conteudo { padding-left: 16px; padding-right: 16px; }
    .topo-estado { margin-left: 0; }
    .painel-topo input[type="search"] { width: 100%; }
}

/* ---------- aprovações ---------- */
.estado-aprovacao { color: var(--favorite); }
.painel-aprovacao { border-color: var(--favorite); box-shadow: inset 3px 0 0 var(--favorite); }
.painel-aprovacao.decidido { border-color: var(--border-color); box-shadow: none; }
.painel-aprovacao p { margin: 0 0 12px; }
.nota { margin: 14px 0 0; color: var(--text-muted); font-size: 13px; }
.nota a, .painel-aprovacao a { color: var(--accent); }

/* ---------- avaliação do resultado ---------- */
.avaliacao { font-weight: 600; white-space: nowrap; }
.avaliacao::before { font-family: "Font Awesome 6 Free"; font-weight: 900; margin-right: 5px; }
.aval-sucesso     { color: var(--icon-add); }
.aval-sucesso::before     { content: "\f00c"; }
.aval-parcial     { color: var(--favorite); }
.aval-parcial::before     { content: "\f042"; }
.aval-sem_sucesso { color: var(--error); }
.aval-sem_sucesso::before { content: "\f00d"; }
.aval-falta_info  { color: var(--accent); }
.aval-falta_info::before  { content: "\f128"; }
.avaliacao-ficha { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.avaliacao-ficha select { width: auto; min-width: 180px; }
.avaliacao-nota em { color: var(--text-muted); font-style: normal; font-size: 12px; }
.integracao-conflito, .integracao-erro { color: var(--error); }
.nota code { background: var(--bg-input); padding: 1px 5px; border-radius: 4px; font-size: 12px; }

.btn-tema { font-size: 15px; order: 10; }   /* fica à direita, depois dos indicadores */

/* ---------- telemóvel (iPhone ~390 px) ---------- */
html { -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; }
.markdown, .texto-pedido, .ficha dd { overflow-wrap: anywhere; }
.markdown { max-width: 100%; }
.markdown pre { max-width: 100%; white-space: pre; }
.markdown table { display: block; max-width: 100%; overflow-x: auto; }
.markdown img { max-width: 100%; height: auto; }

@media (max-width: 700px) {
    .topo { gap: 8px 12px; padding-top: max(10px, env(safe-area-inset-top)); padding-bottom: 8px; }
    .topo-marca { flex: 1; }
    .topo-nav { order: 20; width: 100%; }
    .topo-nav a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 6px; font-size: 13px; }
    .topo-estado { order: 30; width: 100%; gap: 6px 14px; }
    .btn-tema { order: 1; }
    .form-sair { order: 2; }
    .conteudo { padding-top: 14px; padding-bottom: env(safe-area-inset-bottom); }
    .painel { padding: 14px; border-radius: 8px; }
    .resumo { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
    .cartao { padding: 10px 12px; }
    .cartao-num { font-size: 19px; }

    /* toques: botões e inputs com pelo menos 44 px; 16 px evita o zoom do Safari */
    button, .botoes button { min-height: 44px; }
    .btn-icone { min-width: 44px; min-height: 44px; }
    input, select, textarea { font-size: 16px; }
    input[type="checkbox"] { width: 22px; height: 22px; }
    .seguir { min-height: 44px; }
    .botoes button { flex: 1 1 auto; }
    .avaliacao-ficha select { width: 100%; }
    .campos, .ficha { grid-template-columns: 1fr; }

    #tabelaLog thead { display: none; }
    #tabelaLog, #tabelaLog tbody { display: block; }
    #tabelaLog tr { display: flex; flex-wrap: wrap; gap: 2px 10px; padding: 8px 0; border-bottom: 1px solid var(--border-separator); }
    #tabelaLog td { display: block; padding: 0; border: none; }
    #tabelaLog td:nth-child(4) { width: 100%; }
    #tabelaLog td[colspan] { width: 100%; }

    .modal { width: calc(100vw - 16px); max-height: 90vh; padding: 12px; }
    .notificacao { left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); }
}

/* ---------- login ---------- */
.form-sair { margin: 0; order: 11; }
.btn-sair { font-size: 15px; }
.pagina-login { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center;
                padding: env(safe-area-inset-top) 16px env(safe-area-inset-bottom); box-sizing: border-box; }
.login-caixa { width: 100%; max-width: 360px; }
.login-marca { font-size: 20px; text-align: center; margin: 0 0 18px; color: var(--text-heading); }
.login-marca i { color: var(--accent); margin-right: 6px; }
.login-form { display: flex; flex-direction: column; gap: 16px; }
.login-form input[type="password"], .login-form input[type="text"] { font-size: 16px; min-height: 44px; box-sizing: border-box; width: 100%; }  /* 16 px: o iOS não faz zoom */
.login-form button { min-height: 44px; font-size: 15px; }
.login-erro { margin: 0; color: var(--error); font-size: 13px; }

/* ---------- chat (chat.php) ---------- */
.chat { display: flex; flex-direction: column; height: calc(100dvh - 150px); min-height: 360px; }
.chat .painel-topo { flex: none; }
.chat-vigia { font-size: 12px; color: var(--text-muted); }
.chat-vigia::before { content: "\25CF"; margin-right: 5px; }
.chat-vigia.vivo::before { color: var(--icon-add); }
.chat-vigia.parado::before { color: var(--error); }
.chat-aviso { flex: none; margin: 4px 0 10px; font-size: 12px; color: var(--text-muted); }
.chat-aviso i { color: var(--accent); margin-right: 4px; }
.chat-mensagens {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 8px 2px;
    overscroll-behavior: contain;
}
.chat-msg {
    max-width: min(80%, 900px);
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow-wrap: anywhere;
}
.chat-eu { align-self: flex-end; background: var(--accent-selected); border-bottom-right-radius: 4px; }
.chat-coord { align-self: flex-start; background: var(--bg-page); border-bottom-left-radius: 4px; }
.chat-eu .chat-corpo { white-space: pre-wrap; }
.chat-corpo > :first-child { margin-top: 0; }
.chat-corpo > :last-child { margin-bottom: 0; }
.chat-corpo pre { overflow-x: auto; }
.chat-corpo table { border-collapse: collapse; }
.chat-corpo th, .chat-corpo td { border: 1px solid var(--border-color); padding: 3px 8px; }
.chat-anexos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chat-anexos img { max-width: 220px; max-height: 220px; border-radius: 8px; display: block; }
.chat-ficheiro { font-size: 13px; }
.chat-hora { margin-top: 4px; font-size: 11px; color: var(--text-muted); text-align: right; }
.chat-visto { margin-left: 6px; }
.chat-visto.fa-check-double { color: var(--accent); }
.chat-form { flex: none; padding-top: 10px; border-top: 1px solid var(--border-color); }
.chat-linha { display: flex; align-items: flex-end; gap: 8px; }
.chat-linha textarea { flex: 1; resize: none; min-height: 40px; max-height: 200px; box-sizing: border-box; }
label.chat-clip { position: static; padding: 8px 10px; cursor: pointer; font-size: 17px; }
.chat-escolhidos { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; font-size: 12px; }
.chat-escolhido { display: inline-flex; align-items: center; gap: 2px; padding: 2px 4px 2px 10px;
                  border: 1px solid var(--border-color); border-radius: 12px; }

@media (max-width: 700px) {
    .chat { height: calc(100dvh - 190px); padding-bottom: max(14px, env(safe-area-inset-bottom)); }
    .chat-msg { max-width: 92%; }
    .chat-anexos img { max-width: 160px; max-height: 160px; }
    .chat-linha button { min-width: 44px; min-height: 44px; }
}

/* ≤900: cartão compacto em 2 linhas com zonas fixas
   [número][título.............][estado]
   [executor][BD · empresa......][data] */
@media (max-width: 900px) {
    .painel-topo select { flex: 1; margin-left: 0; }
    .pc-cabecalho { display: none; }
    .lista-pedidos { gap: 6px; }
    .pc {
        grid-template-columns: 40px minmax(0, 1fr) 96px;
        grid-template-areas: "num titulo estado" "exec bd data";
        row-gap: 4px;
        column-gap: 8px;
        padding: 8px 10px;
    }
    .pc-num { grid-area: num; text-align: left; }
    .pc-titulo { grid-area: titulo; font-size: 14px; }
    .pc-estado { grid-area: estado; }
    .pc-executor { grid-area: exec; }
    .pc-executor span { display: none; }
    .pc-bd { grid-area: bd; }
    .pc-data { grid-area: data; }
    .pc-canal, .pc-duracao, .pc-custo, .pc-aval { display: none; }
}

/* ecrã baixo (telemóvel deitado): o topo deixa de ser fixo para não comer metade do ecrã */
@media (max-height: 500px) {
    .topo { position: static; }
}

/* ---------- indicador de utilização (topo) e página Utilização ---------- */
.uso { color: var(--text-muted); text-decoration: none; white-space: nowrap; min-width: 0; }
.uso:hover, .uso.activo { color: var(--text-primary); }
.uso .fa-gauge { margin-right: 2px; }
.uso-reset { opacity: .8; }
@media (max-width: 700px) {
    .uso-reset { display: none; }   /* no telemóvel o reset fica no tooltip e na página */
}

.uso-janelas { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.uso-janela-cartao { border: 1px solid var(--border-color); border-radius: 10px; padding: 14px 16px; min-width: 0; }
.uso-janela-cartao h3 { margin: 0 0 8px; font-size: 14px; color: var(--text-heading); }
.uso-pct { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.uso-barra { height: 10px; border-radius: 5px; background: var(--border-separator); overflow: hidden; margin: 8px 0; }
.uso-barra > div { height: 100%; background: var(--accent); }
.uso-barra.alto > div { background: var(--favorite); }
.uso-barra.critico > div { background: var(--error); }
.uso-linha { font-size: 13px; color: var(--text-muted); overflow-wrap: anywhere; }
.uso-linha b { color: var(--text-primary); font-weight: 600; }
.tabela-rolar { max-width: 100%; overflow-x: auto; }
.uso-grafico { width: 100%; height: auto; display: block; }
.uso-grafico text { fill: var(--text-muted); font-size: 11px; }
.uso-grafico .grelha { stroke: var(--border-separator); stroke-width: 1; }
.uso-grafico .l5 { stroke: var(--accent); fill: none; stroke-width: 2; }
.uso-grafico .l7 { stroke: var(--favorite); fill: none; stroke-width: 2; }
.uso-legenda { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--text-muted); margin-top: 6px; }
.uso-legenda i { display: inline-block; width: 14px; height: 3px; vertical-align: middle; margin-right: 5px; }

/* botões desactivados (ex.: aprovar/recusar fora da rede local): cinzentos, sem hover nem toque */
button:disabled, button:disabled:hover,
.btn-cancel:disabled, .btn-cancel:disabled:hover {
    background-color: var(--btn-cancel-bg);
    color: var(--text-muted);
    opacity: .5;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
    pointer-events: none;
}
