/* Ferramentas → Agendamento Full. Prefixo af- para não colidir com o resto do sistema. */
.af { --verde: #2f6f4f; --tinta: #1b2430; --suave: #7a8594; --linha: #e5e8ec; --neg: #b42318; color: var(--tinta); padding-bottom: 24px; }
.af-guias { display: flex; gap: 2px; flex-wrap: wrap; border-bottom: 1px solid #e3e7ec; margin-bottom: 14px; }
.af-guia { padding: 8px 14px 9px; border: none; background: transparent; font: inherit; font-size: 13px; color: var(--suave); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.af-guia:hover { color: var(--tinta); }
.af-guia.ativo { color: var(--verde); font-weight: 600; border-bottom-color: var(--verde); }
.af-barra-topo { display: flex; justify-content: flex-end; margin-bottom: 12px; min-height: 0; }
.af-botao { height: 34px; padding: 0 14px; border: 1px solid #d9dee5; border-radius: 8px; background: #fff; font: inherit; font-size: 13px; font-weight: 600; color: var(--tinta); cursor: pointer; }
.af-botao:hover { background: #f4f6f8; }
.af-botao.principal { background: var(--verde); border-color: var(--verde); color: #fff; }
.af-botao.principal:hover { background: #285f43; }

.af-grupo { display: flex; margin-bottom: 14px; background: #fff; border: 1px solid var(--linha); border-radius: 14px; overflow: hidden; box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04); }
.af-barra-cor { width: 6px; flex: none; }
.af-grupo-conteudo { flex: 1; min-width: 0; }
.af-grupo-topo { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 16px; border: none; background: transparent; font: inherit; font-size: 14px; cursor: pointer; text-align: left; }
.af-grupo-topo:hover { background: #f7f8fa; }
.af-grupo-topo b { font-weight: 700; }
.af-grupo-topo em { font-style: normal; font-size: 12px; font-weight: 600; padding: 1px 9px; border-radius: 999px; background: #eef1f5; color: #5b6573; }
.af-seta { width: 14px; color: var(--suave); }
.af-rolagem { overflow-x: auto; }
.af-tabela { width: 100%; border-collapse: collapse; font-size: 13px; }
.af-tabela th { text-align: left; padding: 8px 12px; border-top: 1px solid var(--linha); border-bottom: 1px solid var(--linha); background: #fbfcfd; }
.af-tabela th button { border: none; background: none; font: inherit; font-size: 12.5px; font-weight: 600; color: #3b4654; cursor: pointer; white-space: nowrap; padding: 0; }
.af-tabela th button i { font-style: normal; color: #c3cad3; margin-left: 4px; }
.af-tabela th button i.ativa { color: var(--tinta); }
.af-tabela td { padding: 7px 12px; border-bottom: 1px solid #f0f2f5; vertical-align: middle; }
.af-tabela tr.atrasada td { background: rgba(180, 35, 24, 0.07); }
.af-tabela tr.atrasada:hover td { background: rgba(180, 35, 24, 0.11); }
.af-celula { display: flex; align-items: center; gap: 8px; }
.af-alerta { color: var(--neg); font-size: 14px; flex: none; }
.af-campo { width: 100%; height: 32px; padding: 0 9px; border: 1px solid #d9dee5; border-radius: 8px; background: #fff; font: inherit; font-size: 13px; color: var(--tinta); box-sizing: border-box; }
.af-campo:focus { outline: none; border-color: var(--verde); box-shadow: 0 0 0 3px rgba(47, 111, 79, 0.15); }
.af-campo:disabled { background: #f6f7f9; color: #5b6573; }
.af-data { position: relative; display: flex; align-items: center; height: 32px; padding: 0 10px; border: 1px solid #d9dee5; border-radius: 8px; background: #fff; font-size: 13px; cursor: pointer; }
.af-data.vazia { color: var(--suave); }
.af-data input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.af-status { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; height: 32px; padding: 0 10px; border: 1px solid #d9dee5; border-radius: 8px; background: #fff; font: inherit; font-size: 13px; color: var(--tinta); cursor: pointer; text-align: left; }
.af-status span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.af-status i { font-style: normal; font-size: 11px; opacity: 0.8; flex: none; }
.af-status:disabled { cursor: default; }
.af-arquivos { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; min-width: 0; }
.af-clipe { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex: none; border: 1px solid #d9dee5; border-radius: 8px; background: #fff; cursor: pointer; font-size: 13px; }
.af-clipe:hover { background: #f4f6f8; }
.af-chip { display: inline-flex; align-items: center; gap: 4px; min-width: 0; max-width: 150px; padding: 2px 4px 2px 8px; border: 1px solid var(--linha); border-radius: 8px; background: #f6f7f9; font-size: 12px; }
.af-chip a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--tinta); text-decoration: none; }
.af-chip a:hover { text-decoration: underline; }
.af-chip button { border: none; background: none; color: var(--suave); cursor: pointer; font-size: 14px; line-height: 1; padding: 0 2px; }
.af-chip button:hover { color: var(--neg); }
.af-mais { flex: none; height: 28px; padding: 0 9px; border: none; border-radius: 8px; background: #eef1f5; font: inherit; font-size: 12px; font-weight: 600; color: #3b4654; cursor: pointer; }
.af-pontos { width: 30px; height: 30px; border: none; border-radius: 8px; background: none; font-size: 16px; color: #5b6573; cursor: pointer; }
.af-pontos:hover { background: #f1f3f6; }
.af-rodape { padding: 8px; border-top: 1px solid var(--linha); }
.af-adicionar { border: none; background: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--tinta); padding: 6px 10px; border-radius: 8px; cursor: pointer; }
.af-adicionar:hover { background: #f1f3f6; }
.af-vazio { color: var(--suave); text-align: center; padding: 18px; font-size: 13px; }
.af-erro { color: var(--neg); }

.af-menu { position: fixed; z-index: 500; padding: 4px; background: #fff; border: 1px solid #e0e4e9; border-radius: 10px; box-shadow: 0 10px 30px -8px rgba(16, 24, 40, 0.25); display: flex; flex-direction: column; font-size: 13px; }
.af-menu button { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border: none; border-radius: 6px; background: none; font: inherit; color: var(--tinta); cursor: pointer; text-align: left; white-space: nowrap; }
.af-menu button:hover { background: #f1f3f6; }
.af-menu button i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.af-menu button.novo { color: var(--verde); font-weight: 600; }
.af-menu button.perigo { color: var(--neg); }

.af-fundo { position: fixed; inset: 0; z-index: 400; display: flex; align-items: flex-start; justify-content: center; padding: 8vh 16px 16px; background: rgba(16, 24, 40, 0.42); overflow: auto; }
.af-janela { width: 100%; background: #fff; border-radius: 14px; box-shadow: 0 24px 60px -20px rgba(16, 24, 40, 0.45); font-size: 13px; color: var(--tinta); }
.af-janela-topo { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 8px; }
.af-janela-topo h3 { margin: 0; font-size: 16px; font-weight: 700; }
.af-x { border: none; background: none; font-size: 22px; line-height: 1; color: var(--suave); cursor: pointer; }
.af-janela-corpo { padding: 6px 20px 8px; display: flex; flex-direction: column; gap: 12px; }
.af-janela-rodape { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px 18px; }
.af-rotulo { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: #5b6573; }
.af-entrada { height: 34px; padding: 0 10px; border: 1px solid #d9dee5; border-radius: 8px; font: inherit; font-size: 13px; color: var(--tinta); box-sizing: border-box; width: 100%; }
.af-entrada:focus { outline: none; border-color: var(--verde); box-shadow: 0 0 0 3px rgba(47, 111, 79, 0.15); }
.af-cor { display: flex; align-items: center; gap: 10px; }
.af-cor input { width: 56px; height: 34px; border: 1px solid #d9dee5; border-radius: 8px; padding: 2px; background: none; cursor: pointer; }
.af-cor code { font-size: 12px; color: var(--suave); }
.af-status-lista { display: flex; flex-direction: column; gap: 8px; max-height: 50vh; overflow: auto; }
.af-status-linha { display: flex; align-items: center; gap: 8px; }
.af-status-linha input[type=color] { width: 42px; height: 34px; border: 1px solid #d9dee5; border-radius: 8px; padding: 2px; background: none; cursor: pointer; flex: none; }
.af-lixeira { border: none; background: none; cursor: pointer; font-size: 14px; padding: 6px; border-radius: 8px; color: var(--neg); }
.af-lixeira:hover { background: #fdecec; }
.af-status-novo { border-top: 1px solid var(--linha); padding-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.af-lista-arquivos { display: flex; flex-direction: column; gap: 6px; max-height: 60vh; overflow: auto; }
.af-arquivo-linha { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border: 1px solid var(--linha); border-radius: 8px; background: #f8f9fb; }
.af-arquivo-linha a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--tinta); text-decoration: none; }
.af-arquivo-linha a:hover { text-decoration: underline; }
.af-arquivo-linha span { color: var(--suave); font-size: 12px; flex: none; }
.af-arquivo-linha button { border: none; background: none; color: var(--suave); cursor: pointer; font-size: 16px; }
.af-arquivo-linha button:hover { color: var(--neg); }
