/* Botões maiores, para tocar facilmente no telemóvel e no tablet */
.btn { min-height: 3rem; }
.btn-sm { min-height: 2.25rem; }

/* Barra de topo: marca + 🏠 + 👤 numa linha só */
.barra-topo .navbar-brand { margin-right: .75rem; min-width: 0; }
.assinatura-marca { font-size: .6rem; letter-spacing: .04em; margin-top: .2rem; }
.barra-topo .btn-topo {
    width: 3rem; height: 3rem; min-height: 0; padding: 0; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; line-height: 1;
}
.barra-topo .dropdown-menu { min-width: 14rem; }

/* Cabeçalho do ecrã: título à esquerda, seta «voltar» encostada ao lado direito
   (mais fácil de alcançar com o polegar no telemóvel). */
.cabecalho-ecra { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
/* Linha do topo das fichas (templates/_historico.html): partes separadas por « · » */
.linha-historico > span + span::before { content: " · "; }
/* 🕘 dos cards (movimento_card): discreto, mas fácil de tocar no telemóvel */
.botao-historico { cursor: pointer; opacity: .7; padding: 0 .25rem; }
.botao-historico:hover, .botao-historico:focus { opacity: 1; }
.cabecalho-ecra h1 {
    min-width: 0; white-space: nowrap; overflow-x: auto;
    font-size: clamp(1.05rem, 4.8vw, 1.5rem);
}
/* «Voltar»: botão em pílula, azul, com seta e texto — mais visível do que a antiga seta cinzenta
   (pedido do António, 2026-09-26). A seta é desenhada em CSS (máscara SVG com a cor do texto). */
.seta-voltar {
    display: inline-flex; align-items: center; gap: .3rem; flex-shrink: 0;
    min-height: 2.75rem; padding: .35rem 1rem .35rem .7rem; border-radius: 999px;
    background: var(--bs-primary); color: #fff; border: 0;
    font-weight: 600; font-size: 1rem; line-height: 1; text-decoration: none;
    box-shadow: 0 .15rem .4rem rgba(0, 0, 0, .18);
}
.seta-voltar::before {
    content: ""; width: 1.15rem; height: 1.15rem; background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 18l-6-6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 18l-6-6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.seta-voltar:hover, .seta-voltar:focus-visible { filter: brightness(.88); color: #fff; }
.seta-voltar:active { transform: translateY(1px); box-shadow: none; }
/* Telemóveis muito estreitos: só a seta, para o título caber */
@media (max-width: 359.98px) {
    .seta-voltar { padding: .35rem .7rem; }
    .seta-voltar span { display: none; }
}

/* Menus: botões grandes e coloridos. Uma coluna no telemóvel, duas no tablet, até quatro no PC. */
.grelha-menu { display: grid; grid-template-columns: 1fr; gap: .9rem; }
@media (min-width: 576px) { .grelha-menu { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .grelha-menu { grid-template-columns: repeat(4, 1fr); } }

.botao-menu {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem;
    min-height: 7.5rem; padding: 1rem; border-radius: 1rem;
    color: #fff; text-decoration: none; text-align: center;
    font-size: 1.35rem; font-weight: 600; line-height: 1.2;
    box-shadow: 0 .2rem .5rem rgba(0, 0, 0, .15);
    transition: transform .08s, filter .08s;
}
.botao-menu:hover, .botao-menu:focus { color: #fff; filter: brightness(1.08); }
.botao-menu:active { transform: scale(.97); }
.botao-menu .emoji { font-size: 2.2rem; }
.botao-menu small { font-size: .85rem; font-weight: 400; }
.botao-menu.inativo { opacity: .45; box-shadow: none; cursor: default; }

.botao-azul { background: #0d6efd; }
.botao-verde { background: #198754; }
.botao-laranja { background: #e8710a; }
.botao-vermelho { background: #dc3545; }
.botao-roxo { background: #6f42c1; }
.botao-turquesa { background: #0f9d9a; }
.botao-cinzento { background: #6c757d; }
.botao-escuro { background: #343a40; }
.botao-rosa { background: #d6205e; }

/* Caixa de escolha grande (ex.: «Manter sessão iniciada» no login) */
.form-check-grande { display: flex; align-items: center; gap: .75rem; padding-left: 0; min-height: 3rem; }
.form-check-grande .form-check-input { width: 1.75rem; height: 1.75rem; margin: 0; float: none; flex-shrink: 0; }
.form-check-grande .form-check-label { font-size: 1.1rem; }

/* Opções clicáveis (urgência, estado, utilizadores a avisar): botões que quebram linha */
.grelha-opcoes { display: flex; flex-wrap: wrap; gap: .5rem; }
.grelha-opcoes .btn { flex: 1 1 auto; }

/* Sugestões da pesquisa de clientes, por cima do resto do formulário */
.sugestoes {
    position: absolute; left: 0; right: 0; z-index: 1050;
    max-height: 60vh; overflow-y: auto; box-shadow: 0 .4rem 1rem rgba(0, 0, 0, .2);
}
.sugestoes .list-group-item { min-height: 3rem; }
/* Pesquisa numa coluna de uma .row: a lista alinha com o campo, sem o espaço entre colunas */
.row > [data-pesquisa] > .sugestoes, .row > .position-relative > .sugestoes { left: calc(var(--bs-gutter-x) * .5); right: calc(var(--bs-gutter-x) * .5); }

/* Anexos: miniaturas quadradas */
.grelha-anexos { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .5rem; }
.anexo-quadrado {
    position: relative; aspect-ratio: 1; overflow: hidden;
    background: var(--bs-secondary-bg); border-radius: var(--bs-border-radius);
}
.anexo-quadrado img { width: 100%; height: 100%; object-fit: cover; display: block; }
.anexo-quadrado .botao-eliminar { position: absolute; top: .2rem; right: .2rem; min-height: 0; padding: 0 .45rem; }
/* Quadrado "a enviar…" enquanto um anexo novo é gravado na ficha (static/js/anexos_formulario.js) */
.anexo-a-enviar { display: flex; align-items: center; justify-content: center; }
.anexo-documento {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    height: 100%; padding: .4rem; text-align: center; text-decoration: none; color: var(--bs-body-color);
    font-size: .75rem;
}
.anexo-documento span { font-size: 2rem; }

/* Listagem de pedidos em cards */
.lista-pedidos { display: grid; grid-template-columns: 1fr; gap: .75rem; }
@media (min-width: 992px) { .lista-pedidos { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1400px) { .lista-pedidos { grid-template-columns: repeat(3, 1fr); } }
.cartao-pedido .card-body:hover { background: var(--bs-tertiary-bg); }
.artigo-pedido { white-space: pre-line; max-height: 9.5em; overflow: hidden; }
.obs-pedido {
    white-space: pre-line; margin-top: .5rem; padding: .4rem .6rem;
    background: #fff3cd; border-radius: .25rem;
    color: #664d03;
}
.grelha-miniaturas { display: flex; flex-wrap: wrap; gap: .4rem; }
.grelha-miniaturas .miniatura {
    width: 64px; height: 64px; border-radius: var(--bs-border-radius); overflow: hidden;
    background: var(--bs-secondary-bg); display: flex; align-items: center; justify-content: center;
    text-decoration: none; font-size: 1.8rem;
}
.grelha-miniaturas .miniatura img { width: 100%; height: 100%; object-fit: cover; }

/* Cores dos estados (app/pedidos.py COR_ESTADO): cada .cor-<nome> define a cor de fundo, a do texto
   por cima dela e a do contorno/texto dos botões por escolher. O amarelo leva texto escuro. */
.cor-amarelo { --cor: #f5b700; --cor-texto: #212529; --cor-contorno: #8a6700; }
.cor-azul { --cor: #0d6efd; --cor-texto: #fff; --cor-contorno: #0d6efd; }
.cor-verde { --cor: #198754; --cor-texto: #fff; --cor-contorno: #198754; }
.cor-cinzento { --cor: #6c757d; --cor-texto: #fff; --cor-contorno: #6c757d; }
.cor-escuro { --cor: #343a40; --cor-texto: #fff; --cor-contorno: #343a40; }
.cor-vermelho { --cor: #dc3545; --cor-texto: #fff; --cor-contorno: #dc3545; }

.botao-amarelo { background: #f5b700; color: #212529; }
.botao-amarelo:hover, .botao-amarelo:focus { color: #212529; }

.etiqueta-estado { background: var(--cor); color: var(--cor-texto); }

/* Botões de estado na ficha: contorno na cor do estado; o escolhido fica preenchido */
.btn-estado {
    --bs-btn-color: var(--cor-contorno);
    --bs-btn-border-color: var(--cor);
    --bs-btn-hover-color: var(--cor-texto);
    --bs-btn-hover-bg: var(--cor);
    --bs-btn-hover-border-color: var(--cor);
    --bs-btn-active-color: var(--cor-texto);
    --bs-btn-active-bg: var(--cor);
    --bs-btn-active-border-color: var(--cor);
    border-width: 2px;
}

/* Miniaturas dos anexos (pedidos/_anexo.html): PDF com a primeira página e um selo */
.anexo-quadrado .anexo-ligacao { display: block; width: 100%; height: 100%; position: relative; }
.grelha-miniaturas .miniatura { position: relative; }
.grelha-miniaturas .miniatura small { display: none; }
.selo-pdf {
    position: absolute; left: .2rem; bottom: .2rem; padding: 0 .3rem; border-radius: .25rem;
    background: #dc3545; color: #fff; font-size: .6rem; font-weight: 700; line-height: 1.4;
}

/* Visualizador de anexos (static/js/visualizador.js) — ecrã inteiro por cima da página */
body.vis-aberto { overflow: hidden; }
.vis {
    position: fixed; inset: 0; z-index: 2000; color: #fff; outline: none;
    background: rgba(10, 12, 16, .95); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility 0s linear .2s;
}
.vis.aberto { opacity: 1; visibility: visible; transition: opacity .2s ease; }
.vis-topo {
    position: absolute; top: 0; left: 0; right: 0; z-index: 3;
    display: flex; align-items: center; gap: .5rem;
    padding: max(.5rem, env(safe-area-inset-top)) .75rem 1.25rem;
    background: linear-gradient(rgba(0, 0, 0, .7), rgba(0, 0, 0, 0));
}
.vis-titulo { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.vis-nome { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vis-contador { font-size: .8rem; opacity: .7; }
.vis-acoes { display: flex; gap: .35rem; flex-shrink: 0; }
.vis-acoes button, .vis-acoes a {
    width: 2.75rem; height: 2.75rem; min-height: 0; padding: 0; border: 0; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .14); color: #fff; font-size: 1.3rem; text-decoration: none;
    transition: background .15s;
}
.vis-acoes button:hover, .vis-acoes a:hover { background: rgba(255, 255, 255, .28); color: #fff; }
.vis-acoes .vis-fechar { background: rgba(255, 255, 255, .24); }
.vis-pdf-aberto .so-imagem { display: none !important; }
@media (max-width: 420px) { .vis-acoes button, .vis-acoes a { width: 2.4rem; height: 2.4rem; font-size: 1.1rem; } }

.vis-palco {
    position: absolute; inset: 0; overflow: hidden; touch-action: none;
    display: flex; align-items: center; justify-content: center;
}
.vis-palco.ampliado { cursor: grab; }
.vis-palco.ampliado:active { cursor: grabbing; }
.vis-imagem {
    max-width: 100%; max-height: 100%; user-select: none; -webkit-user-drag: none;
    transition: transform .2s ease; will-change: transform; animation: vis-entrar .2s ease;
}
.vis-imagem.a-mexer { transition: none; }
.vis-pdf {
    position: absolute; inset: 0; overflow: auto; touch-action: pan-y; -webkit-overflow-scrolling: touch;
    padding: 4.75rem .75rem 2.5rem; animation: vis-entrar .2s ease;
}
.vis-pagina {
    display: block; width: calc(min(100%, 900px) * var(--zoom, 1)); max-width: none; min-height: 12rem;
    margin: 0 auto 1rem; background: #fff; border-radius: .25rem; box-shadow: 0 .5rem 2rem rgba(0, 0, 0, .6);
    user-select: none; -webkit-user-drag: none;
}
.vis-seta {
    position: absolute; top: 50%; z-index: 2; transform: translateY(-50%);
    width: 3rem; height: 3rem; min-height: 0; padding: 0; border: 0; border-radius: 50%;
    background: rgba(255, 255, 255, .14); color: #fff; font-size: 2rem; line-height: 1;
}
.vis-seta:hover { background: rgba(255, 255, 255, .28); }
.vis-anterior { left: .75rem; }
.vis-seguinte { right: .75rem; }
@media (hover: none) { .vis-seta { opacity: .55; } }
.vis-aviso {
    position: absolute; left: 50%; bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 3; transform: translateX(-50%);
    max-width: calc(100% - 2rem); padding: .5rem .9rem; border-radius: 2rem;
    background: rgba(0, 0, 0, .75); font-size: .85rem; text-align: center;
}
.vis-erro { text-align: center; padding: 1rem; }
.vis-a-carregar { width: 3rem; height: 3rem; }
@keyframes vis-entrar { from { opacity: 0; transform: scale(.97); } to { opacity: 1; } }

/* Filtros das consultas: caixa com destaque discreto em cinzento (escolha do António);
   a lista/data com um filtro escolhido fica com contorno escuro e texto a negrito. */
.caixa-filtros {
    --bs-gutter-x: .5rem;
    margin: 0 0 .5rem; padding: .5rem .6rem .6rem;
    background: #eceef1;
    border: 1px solid #d3d7dc;
    border-radius: .6rem;
}
.caixa-filtros .form-label { font-weight: 600; color: #495057; }
.caixa-filtros .filtro-ativo {
    border-color: #6c757d; box-shadow: 0 0 0 .15rem rgba(108, 117, 125, .2); font-weight: 600;
}

/* NT: a fotografia é o essencial — grande no topo de cada card */
.cartao-nt { overflow: hidden; }
.foto-nt { height: 11rem; background: var(--bs-secondary-bg); }
.foto-nt .foto-grande { display: block; position: relative; width: 100%; height: 100%; }
/* Mostra o topo da fotografia (cabeçalho da NT: nº, data, cliente), não o meio */
.foto-nt .foto-grande img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.foto-nt.sem-foto { display: flex; align-items: center; justify-content: center; color: var(--bs-secondary-color); height: 4rem; }
.acoes-nt .btn { min-height: 2.75rem; }
/* Ações dos cards: a ação principal ocupa o espaço e o «🔔 Avisar» fica encostado à direita */
.acoes-card { display: flex; gap: .5rem; align-items: stretch; }
.acoes-card > form:first-child { flex: 1 1 auto; min-width: 0; }
.acoes-card .btn { min-height: 2.75rem; }
.botao-avisar { flex-shrink: 0; white-space: nowrap; font-weight: 600; }
.grelha-anexos-grande { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.bloco-fotos-nt .btn-lg { min-height: 3.5rem; }
.vis-acoes [hidden] { display: none !important; }
.vis-acoes .vis-gravar { background: #198754; }

/* Formulários de registo/edição em secções: cada grupo de campos num cartão branco com título,
   letra dos campos em tamanho normal e rótulos a negrito, para se ver onde começa cada parte. */
.seccao-form {
    background: #fff; border: 1px solid #dee2e6;
    border-radius: .6rem; padding: .85rem 1rem .1rem; margin-bottom: 1rem;
    box-shadow: 0 .1rem .25rem rgba(0, 0, 0, .04);
}
.seccao-titulo {
    font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    color: #0d6efd; margin: 0 0 .8rem; padding-bottom: .5rem; border-bottom: 1px solid #e9ecef;
}
.seccao-titulo .opcional { text-transform: none; letter-spacing: 0; }
/* Título com um nome (ex.: cartões dos utilizadores): sem maiúsculas */
.seccao-titulo-nome { font-size: 1rem; text-transform: none; letter-spacing: 0; color: var(--bs-body-color); }
.formulario-seccoes .form-label { font-size: .9rem; font-weight: 600; color: #343a40; margin-bottom: .3rem; }
.formulario-seccoes .form-control, .formulario-seccoes .form-select { min-height: 2.75rem; }
.formulario-seccoes .form-text { font-size: .8rem; }
.formulario-seccoes .grelha-opcoes { gap: .35rem; }
.formulario-seccoes .grelha-opcoes .btn { min-height: 2.1rem; padding: .2rem .55rem; font-size: .85rem; }
/* «Tirar fotografia» e «Escolher ficheiros» sempre lado a lado, numa linha */
.botoes-anexos { display: flex; gap: .5rem; }
.botoes-anexos .btn { flex: 1 1 0; min-width: 0; white-space: nowrap; font-size: clamp(.8rem, 3.6vw, 1rem); padding-left: .4rem; padding-right: .4rem; }
.formulario-seccoes .form-check-grande .form-check-label { font-size: 1rem; }
.opcional { font-weight: 400; color: var(--bs-secondary-color); font-size: .85em; }

/* Janela do estado DHL (static/js/dhl.js): o evento mais recente em destaque */
.eventos-dhl .list-group-item { border-left: 3px solid transparent; padding-left: .6rem !important; }
.eventos-dhl .evento-atual { border-left-color: #0d6efd; }

/* Administração → Acessos (static/js/acessos.js): a cor e o texto de cada célula dizem o nível */
.ac-n0 { background: #f1f3f5; color: #5c636a; font-weight: 500; }
.ac-n1 { background: #dbe9ff; color: #0a4fb5; }
.ac-n2 { background: #d3f1ee; color: #0b6259; }
.ac-n3 { background: #d4edda; color: #14632f; }
.ac-adm { background: #343a40; color: #fff; }
.ac-av { background: #fff0c2; color: #6b4f00; }
.ac-filtros {
    display: grid; grid-template-columns: minmax(180px, 1.6fr) minmax(130px, 1fr) minmax(130px, 1fr) auto; gap: .6rem .8rem;
    align-items: end; background: #fff; border: 1px solid #dee2e6; border-radius: .6rem; padding: .7rem .8rem;
}
.ac-inativos { min-height: 2.4rem; display: flex; align-items: center; gap: .4rem; white-space: nowrap; }
.ac-inativos .form-check-input { margin: 0; float: none; }
.ac-inativos.form-check { padding-left: 0; }
.ac-legenda { display: flex; flex-wrap: wrap; gap: .35rem .9rem; font-size: .82rem; color: var(--bs-secondary-color); }
.ac-legenda span { display: inline-flex; gap: .35rem; align-items: center; }
.ac-amostra { width: .95rem; height: .95rem; border-radius: .2rem; display: inline-block; border: 1px solid rgba(0, 0, 0, .1); }
.ac-envolve { background: #fff; border: 1px solid #dee2e6; border-radius: .6rem; overflow-x: auto; }
.ac-tabela { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 980px; }
.ac-tabela th, .ac-tabela td { padding: .32rem .3rem; border-bottom: 1px solid #dee2e6; vertical-align: middle; }
.ac-tabela tbody tr:last-child td { border-bottom: 0; }
.ac-tabela thead th { font-size: .78rem; font-weight: 700; text-align: center; background: #f1f3f5; line-height: 1.15; }
.ac-tabela .ac-grupos th { font-size: .72rem; letter-spacing: .03em; text-transform: uppercase; color: var(--bs-secondary-color); }
.ac-tabela .ac-col-util { position: sticky; left: 0; z-index: 1; background: #fff; text-align: left; min-width: 170px; padding-left: .7rem; box-shadow: 1px 0 0 #dee2e6; }
.ac-tabela thead .ac-col-util { background: #f1f3f5; font-size: .85rem; text-transform: none; letter-spacing: 0; color: inherit; }
.ac-tabela .ac-inicio { border-left: 2px solid #dee2e6; }
.ac-tabela thead th.ac-filtrada { background: #cfe2ff; }
.ac-tabela td.ac-filtrada { background: #f3f8ff; }
.ac-inativo td, .ac-cartao.ac-inativo { opacity: .62; }
.ac-nome { font-weight: 700; font-size: .95rem; line-height: 1.2; }
.ac-sub { font-size: .76rem; color: var(--bs-secondary-color); line-height: 1.25; }
.ac-celula {
    width: 100%; min-height: 2.75rem; border: 1px solid transparent; border-radius: .4rem; padding: .2rem .25rem;
    font-size: .78rem; font-weight: 600; line-height: 1.12; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: .1rem; text-align: center;
}
.ac-celula:hover { filter: brightness(.95); border-color: rgba(0, 0, 0, .25); }
.ac-celula.ac-av { border-color: #d9a800; }
.ac-celula.ac-alterada { outline: 2px solid #0d6efd; outline-offset: -2px; }
.ac-era { font-size: .66rem; font-weight: 500; opacity: .9; }
.ac-cartoes { display: flex; flex-direction: column; gap: .75rem; }
.ac-cartao { background: #fff; border: 1px solid #dee2e6; border-radius: .6rem; padding: .7rem .8rem; }
.ac-grupo-cartao { font-size: .7rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--bs-secondary-color); margin: .6rem 0 .25rem; }
.ac-linha-app { display: grid; grid-template-columns: 1fr 9.5rem; gap: .5rem; align-items: center; padding: .15rem 0; font-size: .92rem; }
.ac-barra {
    position: sticky; bottom: 0; z-index: 5; background: #fff; border: 1px solid #9ec5fe; border-radius: .6rem; padding: .55rem .7rem;
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; box-shadow: 0 -.2rem .6rem rgba(0, 0, 0, .1);
}
.ac-barra[hidden], .ac-opcoes[hidden] { display: none; }
.ac-opcoes {
    position: fixed; z-index: 1040; width: 300px; max-width: calc(100vw - 24px); max-height: calc(100vh - 24px); overflow-y: auto;
    background: #fff; border: 1px solid #adb5bd; border-radius: .6rem; box-shadow: 0 .5rem 1.4rem rgba(0, 0, 0, .25); padding: .6rem;
}
.ac-opcao {
    width: 100%; display: grid; grid-template-columns: 1.3rem 1fr; gap: .3rem; align-items: center; text-align: left; min-height: 2.75rem;
    background: #fff; border: 1px solid #dee2e6; border-radius: .4rem; padding: .4rem .5rem; margin-top: .3rem;
}
.ac-opcao:hover { background: #f1f3f5; }
.ac-opcao[aria-pressed="true"] { border-color: #0d6efd; background: #eaf2ff; }
.ac-opcao b { display: block; font-size: .92rem; }
.ac-opcao small { display: block; color: var(--bs-secondary-color); font-size: .77rem; line-height: 1.25; }
.ac-explica { margin: .35rem 0 0; font-size: .85rem; line-height: 1.35; }
.ac-explica-aviso { background: #fff0c2; color: #6b4f00; padding: .4rem .5rem; border-radius: .35rem; }
@media (max-width: 759.98px) {
    .ac-filtros { grid-template-columns: 1fr 1fr; }
    .ac-campo-nome, .ac-inativos { grid-column: 1 / -1; }
}

/* Administração → Backups */
.dados-base { display: grid; grid-template-columns: auto 1fr; gap: .15rem .75rem; margin: 0; }
.dados-base dt { font-weight: 400; color: var(--bs-secondary-color); white-space: nowrap; }
.dados-base dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.acoes-base { display: flex; flex-wrap: wrap; gap: .5rem; }
.acoes-base .btn, .acoes-base form { flex: 1 1 auto; }
.nome-base { font-family: var(--bs-font-monospace); font-weight: 700; font-size: 1.15rem; overflow-wrap: anywhere; }
.comando { background: #212529; color: #f8f9fa; padding: .6rem .75rem; border-radius: .5rem; font-size: .85rem; overflow-x: auto; white-space: pre; margin: .25rem 0 .75rem; }
.linha-hist .ficheiro { font-family: var(--bs-font-monospace); font-size: .8rem; color: var(--bs-secondary-color); overflow-wrap: anywhere; }
.campo-curto { max-width: 10rem; }
.grelha-opcoes .btn-check + .btn { flex: 1 1 auto; min-width: 3.25rem; display: inline-flex; align-items: center; justify-content: center; }
/* O interruptor grande fica redondo sem esta largura */
.form-agenda .form-switch .form-check-input { width: 3rem; }
