/* Portal Tecnorav: cores da marca (azul e amarelo do logo) */
:root {
  --azul: #037EA7;
  --azul-esc: #05578A;
  --navy: #053F5C;
  --navy-2: #0A5577;
  --amarelo: #FFD215;
  --ouro: #D29C0B;
  --texto: #0F2233;
  --cinza: #4A5D6E;
  --linha: #DDE5EC;
  --linha-2: #EEF2F5;
  --fundo: #F3F6F9;
  --ok-bg: #E3F4EA; --ok: #1B6B3A;
  --warn-bg: #FFF4CC; --warn: #6B4B00;
  --late-bg: #FDE7E4; --late: #A1291B;
  --mute-bg: #ECEFF2; --mute: #4A5D6E;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--texto); background: var(--fundo); font-size: 15px; line-height: 1.45; }
a { color: var(--azul-esc); }
a:hover { color: var(--navy); }
h1 { margin: 0; font-size: 26px; line-height: 1.2; }
h2 { margin: 0 0 12px; font-size: 18px; }
.h3 { margin: 0 0 10px; font-size: 15px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted, .m { color: var(--cinza); }
.m { font-size: 13px; }
.small { font-size: 13px; }
.mt { margin-top: 10px; }
.nowrap { white-space: nowrap; }
.prewrap, .alt { white-space: pre-line; }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.grow { flex: 1; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.narrow { max-width: 640px; }
.fit { align-self: flex-start; }

/* Estrutura */
.app { display: flex; flex-wrap: wrap; min-height: 100vh; }
.side { flex: 1 1 240px; max-width: 100%; background: var(--navy); color: #fff; padding: 22px 14px; display: flex; flex-direction: column; gap: 4px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; color: #fff; text-decoration: none; }
.brand strong { display: block; font-size: 17px; }
.brand small { display: block; font-size: 12px; color: #8FB7CC; }
.brand.dark { color: var(--texto); padding: 0; }
.brand.dark small { color: var(--cinza); }
.logo { width: 36px; height: 36px; border-radius: 8px; background: var(--amarelo); color: var(--azul-esc); font-weight: 800; font-size: 22px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.navlist { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.navfoot { display: flex; flex-direction: column; gap: 4px; padding-top: 16px; }
.nav { display: block; width: 100%; text-align: left; padding: 11px 14px; border-radius: 8px; color: #DCEBF3; text-decoration: none; font-weight: 600; font-size: 15px; background: none; border: 0; font-family: inherit; cursor: pointer; }
.nav:hover { background: var(--navy-2); color: #fff; }
.nav.on { background: var(--amarelo); color: var(--texto); }
.soon { white-space: nowrap; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; background: var(--navy-2); color: #CFE3EE; border-radius: 4px; padding: 2px 5px; vertical-align: 2px; }
.nav.on .soon { background: rgba(0,0,0,.12); color: var(--texto); }
.soon.dark { background: var(--warn-bg); color: var(--warn); }
.sec { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #8FB7CC; padding: 16px 14px 4px; font-weight: 700; }
.main { flex: 999 1 560px; min-width: 0; padding: 26px 32px 48px; display: flex; flex-direction: column; gap: 20px; }
.top { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.sub { font-size: 14px; color: var(--cinza); margin-top: 4px; }
.av { width: 40px; height: 40px; border-radius: 50%; background: var(--azul); color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; flex: none; }
.av:hover { color: #fff; background: var(--azul-esc); }
.av-sm { width: 30px; height: 30px; font-size: 12px; }
.who { display: inline-flex; align-items: center; gap: 10px; }

/* Cartões e grades */
.card { background: #fff; border: 1px solid var(--linha); border-radius: 12px; padding: 20px; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.card-head h2 { margin: 0; }
.grid4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 16px; align-items: start; }
.kpi { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
a.kpi:hover { border-color: var(--azul); color: inherit; }
.lbl { font-size: 13px; color: var(--cinza); font-weight: 600; }
.n { font-size: 34px; font-weight: 800; margin-top: 4px; }
.n-late { color: var(--late); }
.n-warn { color: var(--warn); }
.row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--linha-2); }
.row:first-of-type, .card-head + .row, form + .row { border-top: 0; }
.t { font-weight: 600; }

/* Etiquetas */
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.b-ok { background: var(--ok-bg); color: var(--ok); }
.b-warn { background: var(--warn-bg); color: var(--warn); }
.b-late { background: var(--late-bg); color: var(--late); }
.b-mute { background: var(--mute-bg); color: var(--mute); }
.b-info { background: #E1F1F8; color: #035C7A; }
.b-crit { background: var(--late); color: #fff; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.pill { font-size: 12px; font-weight: 600; background: #E1F1F8; color: #035C7A; padding: 3px 9px; border-radius: 999px; }

/* Formulários */
.l { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.in { width: 100%; padding: 11px 12px; border: 1px solid #B9C8D4; border-radius: 8px; font: inherit; font-weight: 400; background: #fff; color: var(--texto); }
.in:focus { outline: 2px solid var(--azul); outline-offset: 1px; border-color: var(--azul); }
textarea.in { resize: vertical; }
.in-sm { padding: 8px 10px; font-size: 14px; }
.hint { font-size: 12px; font-weight: 400; color: var(--cinza); }
.form2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.addline { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 6px; }
.addline .grow { flex: 1 1 240px; }
.check-line { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.check-line input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--azul); }
details summary { cursor: pointer; color: var(--azul-esc); font-weight: 600; font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.inline { display: inline-flex; gap: 8px; align-items: center; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; background: var(--azul); color: #fff; border: 1px solid var(--azul); border-radius: 8px; padding: 10px 16px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--azul-esc); border-color: var(--azul-esc); color: #fff; }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-sec { background: #fff; color: var(--texto); border-color: #B9C8D4; }
.btn-sec:hover { background: var(--fundo); color: var(--texto); border-color: var(--azul); }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: 14px; }
.btn-full { width: 100%; }
.btn-link { background: none; border: 0; padding: 6px 0; font: inherit; font-weight: 600; font-size: 14px; color: var(--azul-esc); cursor: pointer; text-decoration: underline; }
.btn-link.danger { color: var(--late); }

.chip { display: inline-block; border: 1px solid #B9C8D4; background: #fff; border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 600; color: var(--texto); text-decoration: none; }
.chip:hover { border-color: var(--azul); color: var(--texto); }
.chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }
.toolbar-right { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.flash { padding: 12px 14px; border-radius: 8px; font-weight: 600; font-size: 14px; }
.flash-ok { background: var(--ok-bg); color: var(--ok); }
.flash-erro { background: var(--late-bg); color: var(--late); }

/* Tarefas */
.check { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #8AA2B4; background: #fff; cursor: pointer; padding: 0; margin-top: 1px; flex: none; position: relative; }
.check::after { content: ''; position: absolute; inset: -10px; }
.check:hover { border-color: var(--azul); background: #E1F1F8; }
.check.on { background: var(--azul); border-color: var(--azul); }
.check.on::before { content: ''; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.task.done .t { text-decoration: line-through; color: var(--cinza); }
.edit { margin-top: 6px; }
.edit[open] { background: var(--fundo); border-radius: 8px; padding: 10px 12px; }

/* Tabelas */
.scroll { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 760px; }
.tbl th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--cinza); padding: 10px 12px; border-bottom: 1px solid var(--linha); }
.tbl td { padding: 13px 12px; border-bottom: 1px solid var(--linha-2); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl tr.inativo td { opacity: .6; }
.prog { display: flex; align-items: center; gap: 8px; }
progress { width: 110px; height: 8px; appearance: none; border: 0; border-radius: 99px; background: #E6EDF2; overflow: hidden; }
progress::-webkit-progress-bar { background: #E6EDF2; border-radius: 99px; }
progress::-webkit-progress-value { background: var(--azul); border-radius: 99px; }
progress::-moz-progress-bar { background: var(--azul); border-radius: 99px; }

/* Permissões */
.perms { display: flex; flex-direction: column; }
.perm { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--linha-2); }
.perm:first-child { border-top: 0; }
.perm select { width: auto; }

/* Janelas (dialog) */
.dlg { border: 0; border-radius: 14px; padding: 0; width: min(640px, calc(100vw - 24px)); max-height: calc(100vh - 32px); box-shadow: 0 20px 60px rgba(5, 63, 92, .3); color: var(--texto); }
.dlg-wide { width: min(980px, calc(100vw - 24px)); }
.dlg::backdrop { background: rgba(15, 34, 51, .45); }
.dlg > form, .dlg-head, .dlg-body, .dlg-foot { padding: 20px 22px; }
.dlg > form .dlg-head { padding: 0; }
.dlg-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; border-bottom: 1px solid var(--linha-2); }
.dlg > form .dlg-head { border: 0; }
.dlg-head h2 { margin: 0; }
.dlg-body { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; align-items: start; }
.dlg-foot { border-top: 1px solid var(--linha-2); padding-top: 10px; padding-bottom: 14px; }
.x { width: 40px; height: 40px; border-radius: 8px; border: 0; background: var(--fundo); font-size: 24px; line-height: 1; cursor: pointer; color: var(--texto); flex: none; }
.x:hover { background: var(--linha); }
.hist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; max-height: 56vh; overflow-y: auto; }
.hist li { border-left: 3px solid var(--azul); background: var(--fundo); border-radius: 0 8px 8px 0; padding: 10px 12px; }
.hist .quem { font-size: 13px; font-weight: 700; }
.hist .quando { font-weight: 400; color: var(--cinza); }
.hist .txt { white-space: pre-line; margin-top: 4px; }
.hist .alt { font-size: 13px; color: var(--warn); background: var(--warn-bg); border-radius: 6px; padding: 6px 8px; margin-top: 6px; }

/* Login */
.login { display: flex; flex-wrap: wrap; min-height: 100vh; }
.login-hero { flex: 1 1 400px; background: var(--navy); color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.login-hero .brand { padding: 0; }
.login-hero h1 { font-size: 40px; line-height: 1.12; max-width: 520px; }
.login-hero p { font-size: 18px; color: #CFE3EE; max-width: 480px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips span { background: var(--navy-2); padding: 8px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.login-form { flex: 1 1 400px; display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.login-form form { width: 100%; max-width: 400px; }
.login-form h2 { font-size: 26px; margin: 0 0 4px; }
.ou { display: flex; align-items: center; gap: 12px; color: var(--cinza); font-size: 13px; }
.ou::before, .ou::after { content: ''; flex: 1; height: 1px; background: var(--linha); }

.erro-pagina { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.erro-pagina .card { max-width: 480px; width: 100%; }

/* Celular */
@media (max-width: 820px) {
  .side { flex-basis: 100%; padding: 12px; gap: 8px; }
  .brand { padding: 4px; }
  .navlist { flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 4px; }
  .navlist .nav { white-space: nowrap; width: auto; }
  .sec { display: none; }
  .navfoot { flex-direction: row; padding-top: 0; }
  .navfoot .nav { width: auto; }
  .main { padding: 18px 16px 40px; }
  .grid2 { grid-template-columns: 1fr; }
  .login-hero { padding: 32px 20px; }
  .login-hero h1 { font-size: 30px; }
}

/* ===== Visão geral: abas ===== */
.abas { display: flex; gap: 4px; border-bottom: 1px solid var(--linha); overflow-x: auto; }
.aba { padding: 12px 18px; font-weight: 700; color: var(--cinza); text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.aba:hover { color: var(--texto); }
.aba.on { color: var(--texto); border-bottom-color: var(--azul); }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.n-ouro { color: #9A6B00; }
.n-info { color: #035C7A; }
.cap::first-letter { text-transform: uppercase; }
.dia-grid { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 20px; align-items: start; }

/* Calendário */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-head h2 { margin: 0; text-transform: capitalize; font-size: 17px; }
.cal-head .x { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-size: 22px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.cal-sem { text-align: center; font-size: 11px; font-weight: 700; color: var(--cinza); padding: 4px 0; }
.cal-dia { aspect-ratio: 1; min-height: 40px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 8px; text-decoration: none; color: var(--texto); font-weight: 600; font-size: 14px; }
.cal-dia:hover { background: var(--fundo); color: var(--texto); }
.cal-dia.fora { color: #9AABB8; }
.cal-dia.hoje { box-shadow: inset 0 0 0 2px var(--azul); }
.cal-dia.sel { background: var(--navy); color: #fff; }
.pontos { display: flex; gap: 2px; height: 6px; }
.pontos i, .legenda i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; }
.legenda { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.legenda span { display: inline-flex; align-items: center; gap: 5px; }
.p-lembrete { background: #7C3AED; }
.p-marco { background: var(--ouro); }
.p-etapa { background: var(--azul); }
.p-tarefa { background: #8AA2B4; }
.p-atraso { background: var(--late); }
.cal-dia.sel .pontos i { box-shadow: 0 0 0 1px #fff; }

/* Itens da agenda */
.itens { list-style: none; margin: 0; padding: 0; }
.item { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-top: 1px solid var(--linha-2); }
.itens .item:first-child { border-top: 0; }
.tipo { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: 3px 6px; border-radius: 5px; white-space: nowrap; margin-top: 1px; }
.tipo-lembrete { background: #EDE9FB; color: #5B21B6; }
.tipo-marco { background: var(--warn-bg); color: var(--warn); }
.tipo-etapa { background: #E1F1F8; color: #035C7A; }
.tipo-tarefa { background: var(--mute-bg); color: var(--mute); }
.item-lembrete .t { color: #5B21B6; }
.hora { font-variant-numeric: tabular-nums; }
.agenda-dia { padding: 12px 0; border-top: 1px solid var(--linha); }
.agenda-dia:first-of-type { border-top: 0; }
.agenda-dia.atraso { background: var(--late-bg); border-radius: 10px; padding: 12px 14px; border: 0; margin-bottom: 6px; }
.agenda-rot { font-size: 14px; margin-bottom: 4px; }
.dsem { text-transform: uppercase; font-size: 12px; letter-spacing: .06em; color: var(--cinza); }

/* Resumo e ranking */
.destaque { border-left: 4px solid #7C3AED; }
.resumo { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 12px; }
.resumo .alt { color: var(--warn); }
.quando { color: var(--cinza); }
.rank { display: flex; flex-direction: column; }
.rank-item { border-top: 1px solid var(--linha-2); }
.rank-item:first-child { border-top: 0; }
.rank-item summary { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 4px; list-style: none; cursor: pointer; color: var(--texto); font-weight: 400; font-size: 15px; }
.rank-item summary::-webkit-details-marker { display: none; }
.rank-item summary:hover { background: var(--fundo); }
.rank-item[open] summary { background: var(--fundo); }
.rank-n { width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.rank-corpo { padding: 6px 4px 16px 40px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.rank-corpo p { margin: 0; }
.lista { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.roxo { color: #5B21B6; font-weight: 600; }

/* Janela do projeto: imagens e cronograma */
.anexar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.anexar label { cursor: pointer; }
.previas { display: flex; flex-wrap: wrap; gap: 8px; }
.previas:empty { display: none; }
.previa { position: relative; width: 84px; height: 84px; border-radius: 8px; overflow: hidden; border: 1px solid var(--linha); }
.previa img { width: 100%; height: 100%; object-fit: cover; }
.previa-x { position: absolute; top: 2px; right: 2px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(15,34,51,.75); color: #fff; font-size: 16px; line-height: 1; cursor: pointer; }
.fotos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.fotos a { display: block; width: 120px; height: 80px; border-radius: 6px; overflow: hidden; border: 1px solid var(--linha); background: #fff; }
.fotos img { width: 100%; height: 100%; object-fit: cover; }
.cronograma { border-top: 1px solid var(--linha-2); padding-top: 14px; }
.etapas { list-style: none; margin: 0 0 10px; padding: 0; }
.etapa { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--linha-2); }
.etapa:first-child { border-top: 0; }
.etapa.done .t { text-decoration: line-through; color: var(--cinza); }
.etapa .btn-link { font-size: 13px; }

@media (max-width: 900px) {
  .dia-grid { grid-template-columns: 1fr; }
  .rank-corpo { padding-left: 4px; }
}

/* ===== Cronograma do Drive na janela do projeto ===== */
.drive-box { border: 1px solid var(--linha); background: #F7FAFC; border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.drive-linha { display: flex; gap: 10px; align-items: flex-start; color: var(--azul-esc); }
.drive-linha .t { color: var(--texto); word-break: break-word; }
.drive-acoes { display: flex; flex-wrap: wrap; gap: 8px; }
.aviso-crono { background: var(--warn-bg); color: var(--warn); border-radius: 8px; padding: 8px 10px; font-size: 13px; font-weight: 600; white-space: pre-line; }
.crono-filtro { display: flex; gap: 6px; margin-bottom: 8px; }
.crono-filtro .chip { padding: 6px 12px; font-size: 13px; cursor: pointer; font-family: inherit; }
.etapas-box { max-height: 52vh; overflow-y: auto; padding-right: 4px; margin-bottom: 10px; }
.grupo { margin-bottom: 10px; }
.grupo-t { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--azul-esc); padding: 6px 0 2px; border-bottom: 1px solid var(--linha); }
.etapa.pai .t { font-weight: 800; }
.etapa.pai .pct { opacity: .6; }
.pct { flex: none; min-width: 44px; height: 26px; border-radius: 13px; background: var(--mute-bg); color: var(--mute); font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.pct.on { background: var(--ok-bg); color: var(--ok); }
.resp { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 4px; background: #E1F1F8; color: #035C7A; }
.resp-cliente { background: #EDE9FB; color: #5B21B6; }
.obs { font-size: 12px; color: var(--warn); background: var(--warn-bg); border-radius: 5px; padding: 3px 7px; margin-top: 4px; display: inline-block; }
.mt-s { margin-top: 4px; }
input[readonly] { background: var(--fundo); color: var(--cinza); }

/* ===== Tela Cronogramas do Drive ===== */
.drive-status { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.email-sa { font-family: Consolas, monospace; font-size: 14px; font-weight: 700; word-break: break-all; user-select: all; }
code { font-family: Consolas, monospace; background: var(--fundo); padding: 1px 5px; border-radius: 4px; word-break: break-all; }
.erro-sync { color: var(--late); max-width: 320px; }
.achados { display: flex; flex-direction: column; }
.achado { border-top: 1px solid var(--linha-2); }
.achado:first-child { border-top: 0; }
.achado summary { display: flex; align-items: center; gap: 12px; padding: 12px 4px; list-style: none; color: var(--texto); font-weight: 400; }
.achado summary::-webkit-details-marker { display: none; }
.achado summary:hover, .achado[open] summary { background: var(--fundo); }
.achado-corpo { padding: 8px 4px 18px; display: flex; flex-direction: column; gap: 12px; }
.achado-corpo .lbl { display: block; margin-bottom: 6px; }

/* ===== Layout com menu no topo ===== */
body.com-topo { min-height: 100vh; }
.topbar { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--linha); box-shadow: 0 1px 0 rgba(5, 63, 92, .04); }
.topbar-in { max-width: 1600px; margin: 0 auto; padding: 0 24px; min-height: 64px; display: flex; align-items: center; gap: 28px; }
.marca { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); flex: none; }
.marca:hover { color: var(--navy); }
.marca-img { height: 40px; width: auto; max-width: 200px; display: block; object-fit: contain; }
.marca-txt { font-weight: 800; font-size: 19px; letter-spacing: -.01em; }
.menu { display: flex; align-items: stretch; gap: 2px; flex: 1; min-width: 0; align-self: stretch; }
.menu-i { display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; color: var(--cinza); font-weight: 700; font-size: 15px; text-decoration: none; border-bottom: 3px solid transparent; border-top: 3px solid transparent; white-space: nowrap; cursor: pointer; list-style: none; min-height: 61px; }
.menu-i::-webkit-details-marker { display: none; }
.menu-i:hover { color: var(--texto); background: var(--fundo); }
.menu-i.on { color: var(--navy); border-bottom-color: var(--amarelo); }
.menu-i .soon { background: var(--warn-bg); color: var(--warn); }
.drop { position: relative; display: flex; }
.drop > summary { list-style: none; }
.drop > summary::-webkit-details-marker { display: none; }
.drop[open] > summary { color: var(--texto); background: var(--fundo); }
.drop-m { position: absolute; top: 100%; left: 0; min-width: 230px; background: #fff; border: 1px solid var(--linha); border-radius: 10px; box-shadow: 0 12px 32px rgba(5, 63, 92, .16); padding: 6px; display: flex; flex-direction: column; z-index: 60; margin-top: 4px; }
.drop-r { left: auto; right: 0; }
.drop-m a, .drop-m button { display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 7px; color: var(--texto); text-decoration: none; font: inherit; font-weight: 600; font-size: 14px; background: none; border: 0; cursor: pointer; }
.drop-m a:hover, .drop-m button:hover { background: var(--fundo); color: var(--texto); }
.drop-m a.on { background: #FFF6CC; }
.drop-nome { padding: 8px 12px 10px; border-bottom: 1px solid var(--linha-2); margin-bottom: 4px; display: flex; flex-direction: column; }
.drop-nome span { font-size: 12px; color: var(--cinza); word-break: break-all; }
.drop-user { margin-left: auto; align-items: center; }
.drop-user > summary.av { cursor: pointer; }
body.com-topo .main { max-width: 1600px; width: 100%; margin: 0 auto; padding: 26px 24px 48px; box-sizing: border-box; flex: none; }
body.com-topo .top { min-height: 0; }

/* ===== Login e páginas de aviso ===== */
body.tela-login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; background: var(--navy); background-image: radial-gradient(circle at 15% 10%, rgba(3, 126, 167, .45), transparent 45%); }
.login-card { width: 100%; max-width: 400px; background: #fff; border-radius: 16px; padding: 36px 32px 32px; box-shadow: 0 24px 60px rgba(0, 0, 0, .28); }
.login-marca { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 28px; color: var(--navy); }
.login-marca img { height: 80px; width: auto; display: block; }
.logo-g { width: 48px; height: 48px; font-size: 30px; border-radius: 11px; }
.marca-g { font-size: 28px; font-weight: 800; }
.erro-t { font-size: 22px; text-align: center; margin: 0; }
.login-card p { text-align: center; color: var(--cinza); margin: 0; }

@media (max-width: 900px) {
  .topbar-in { flex-wrap: wrap; gap: 0 12px; padding: 0 12px; min-height: 56px; }
  .marca { min-height: 56px; }
  .marca-img { height: 32px; }
  .drop-user { order: 2; }
  .menu { order: 3; flex-basis: 100%; overflow-x: auto; margin: 0 -12px; padding: 0 6px; border-top: 1px solid var(--linha-2); }
  .menu-i { min-height: 46px; padding: 0 12px; font-size: 14px; }
  .menu .drop { position: static; }
  .menu .drop-m { left: 12px; right: 12px; top: auto; }
  body.com-topo .main { padding: 18px 16px 40px; }
}

/* ===== Suporte ===== */
.sup-filtros { display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.sup-linha1 { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.sup-linha1 .grow { flex: 1 1 280px; }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; cursor: pointer; }
.toggle input { width: 18px; height: 18px; accent-color: var(--azul); }
.sup-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.multi { position: relative; border: 1px solid #B9C8D4; border-radius: 9px; background: #fff; }
.multi[open] { border-color: var(--azul); box-shadow: 0 0 0 2px #CFE7F1; }
.multi-s { list-style: none; cursor: pointer; padding: 7px 12px; display: flex; flex-direction: column; color: var(--texto); }
.multi-s::-webkit-details-marker { display: none; }
.multi-s::after { content: ''; position: absolute; right: 12px; top: 50%; width: 7px; height: 7px; border: solid var(--cinza); border-width: 0 2px 2px 0; transform: translateY(-60%) rotate(45deg); }
.multi-r { font-size: 12px; font-weight: 800; color: var(--cinza); text-transform: uppercase; letter-spacing: .03em; }
.multi-v { font-weight: 600; font-size: 14px; padding-right: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.multi-m { position: absolute; z-index: 40; top: calc(100% + 4px); left: 0; width: max(100%, 280px); background: #fff; border: 1px solid var(--linha); border-radius: 10px; box-shadow: 0 12px 32px rgba(5, 63, 92, .18); padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.multi-lista { max-height: 260px; overflow-y: auto; display: flex; flex-direction: column; }
.multi-op { display: flex; align-items: center; gap: 8px; padding: 7px 6px; border-radius: 6px; cursor: pointer; font-size: 14px; }
.multi-op:hover { background: var(--fundo); }
.multi-op input { width: 17px; height: 17px; accent-color: var(--azul); flex: none; }
.multi-op span { flex: 1; min-width: 0; }
.multi-op small { color: var(--cinza); font-variant-numeric: tabular-nums; }
.multi-acoes { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--linha-2); padding-top: 8px; }
.multi.datas { padding: 7px 12px; display: flex; flex-direction: column; gap: 4px; }
.datas-in { display: flex; gap: 6px; }
.datas-in input { padding: 4px 6px; font-size: 13px; }
.sup-rodape { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.sup-btns { display: inline-flex; gap: 14px; align-items: center; }
.sync-form { display: flex; justify-content: flex-end; margin-top: -8px; }
.txt-erro { color: var(--late); font-weight: 700; }
.txt-warn { color: var(--warn); font-weight: 700; }
pre.codigo { background: var(--navy); color: #E6F1F7; padding: 12px 14px; border-radius: 8px; overflow-x: auto; font-size: 13px; margin: 0; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.kpi-c { background: var(--navy); color: #fff; border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; text-decoration: none; }
a.kpi-c:hover { background: var(--navy-2); color: #fff; }
.kpi-c .n { font-size: 30px; font-weight: 800; margin: 0; line-height: 1.1; }
.kpi-c .lbl { color: #CFE3EE; font-size: 13px; }
.kpi-c .n-late { color: #FFB4A8; }
.kpi-c .n-warn { color: var(--amarelo); }
.kpi-c.destaque-k { background: var(--azul); }

.graficos { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.barras { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.barras a { display: grid; grid-template-columns: minmax(110px, 42%) 1fr 38px; gap: 10px; align-items: center; padding: 5px 6px; border-radius: 6px; text-decoration: none; color: var(--texto); font-size: 13px; }
.barras a:hover { background: var(--fundo); }
.barra-r { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.barra-t { height: 14px; background: #E6EDF2; border-radius: 4px; overflow: hidden; }
.barra-f { display: block; height: 100%; background: var(--azul-esc); border-radius: 4px; }
.barra-v { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }

.tbl-sup td { font-size: 13.5px; }
.tbl-sup .assunto { max-width: 340px; }
.linha-ch { cursor: pointer; }
.linha-ch:hover td { background: #F4FAFD; }
.ch-n { background: none; border: 0; padding: 0; font: inherit; font-weight: 800; color: var(--azul-esc); cursor: pointer; text-decoration: underline; font-size: 14px; }
.emp { display: inline-block; font-size: 11px; font-weight: 800; border-radius: 4px; padding: 1px 6px; margin: 2px 0; background: #E1F1F8; color: #035C7A; }
.emp-tecnosiga { background: #EDE9FB; color: #5B21B6; }
.tag-q { white-space: normal; line-height: 1.3; }
.paginas { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 14px; }

/* Painel lateral do chamado */
.painel { margin: 0 0 0 auto; height: 100vh; max-height: 100vh; width: min(760px, 100vw); border: 0; border-radius: 0; padding: 0; box-shadow: -12px 0 40px rgba(5, 63, 92, .25); color: var(--texto); }
.painel::backdrop { background: rgba(15, 34, 51, .35); }
.painel-in { display: flex; flex-direction: column; height: 100%; }
.ch-cab { display: flex; gap: 12px; align-items: flex-start; padding: 18px 22px 12px; border-bottom: 1px solid var(--linha-2); }
.ch-cab h2 { margin: 4px 0 8px; font-size: 20px; line-height: 1.3; }
.ch-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ch-chips .tag { white-space: normal; }
.pend::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: currentColor; vertical-align: 0; }
.pend-cli { background: #E1F1F8; color: #035C7A; }
.pend-eq { background: var(--late-bg); color: var(--late); }
.ch-fatos { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; padding: 12px 22px; border-bottom: 1px solid var(--linha-2); background: #FAFCFD; }
.fato { display: flex; flex-direction: column; gap: 2px; }
.fato .lbl { font-size: 12px; }
.fato strong { font-size: 14px; }
.ch-corpo { flex: 1; overflow-y: auto; padding: 16px 22px; background: var(--fundo); }
.conversa { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.msg { display: flex; }
.msg-a { justify-content: flex-end; }
.bolha { max-width: 82%; background: #fff; border: 1px solid var(--linha); border-radius: 14px 14px 14px 4px; padding: 10px 14px; box-shadow: 0 1px 2px rgba(5, 63, 92, .05); }
.msg-a .bolha { background: #E8F4FA; border-color: #CFE7F1; border-radius: 14px 14px 4px 14px; }
.bolha-cab { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin-bottom: 4px; font-size: 13px; }
.bolha-txt { white-space: pre-line; font-size: 14.5px; line-height: 1.5; word-break: break-word; }
.bolha-anexos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.img-anexo { display: block; width: 140px; height: 96px; border-radius: 6px; overflow: hidden; border: 1px solid var(--linha); background: #fff; }
.img-anexo img { width: 100%; height: 100%; object-fit: cover; }
.anexo-link { display: inline-flex; align-items: center; font-size: 13px; font-weight: 600; background: #fff; border: 1px solid var(--linha); border-radius: 6px; padding: 4px 8px; }
.ev-status { align-self: center; text-align: center; font-size: 12.5px; color: var(--cinza); background: #fff; border: 1px dashed var(--linha); border-radius: 999px; padding: 4px 12px; max-width: 92%; }
.ev-status > span:first-child { font-weight: 700; color: var(--texto); }
.ev-obs { font-size: 12px; margin-top: 2px; white-space: pre-line; }
.ch-rodape { border-top: 1px solid var(--linha); padding: 12px 22px 16px; background: #fff; }
.seg { display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; font-weight: 600; }
.seg label { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.seg input { accent-color: var(--azul); }
.ch-envio { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ch-envio label { cursor: pointer; }
.aviso-tt { margin: 0; }
@media (max-width: 700px) {
  .painel { width: 100vw; }
  .bolha { max-width: 94%; }
}
.datas-in { display: grid; grid-template-columns: 1fr 1fr; }
.datas-in input { width: 100%; min-width: 0; }
.filtro-ativo { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-top:10px; padding:8px 12px; border-radius:8px; background:#fff7e6; border:1px solid #f3d9a4; }
.msg-i .bolha { background: #FFF8DB; border-color: #F1E2A6; }

/* ===== Notificações ===== */
.drop-notif { margin-left: auto; }
.drop-notif + .drop-user { margin-left: -16px; }
@media (max-width: 900px) { .drop-notif { order: 2; } .drop-notif + .drop-user { margin-left: 0; } }
.sino { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; color: var(--texto); cursor: pointer; list-style: none; }
.sino::-webkit-details-marker { display: none; }
.sino:hover { background: #EEF4F7; }
.sino-n { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #D64545; color: #fff; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; }
.notif-drop { width: min(380px, 92vw); max-height: 70vh; overflow-y: auto; padding: 0; }
.notif-cab { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--linha); }
.notif-cab form { margin: 0; }
.notif-i { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-bottom: 1px solid var(--linha); text-decoration: none; color: var(--texto); }
.notif-i:hover { background: #F4F9FC; }
.notif-i.nova { background: #EEF7FC; border-left: 3px solid var(--azul); }
.notif-i .t, .notif-lista .t { font-weight: 700; font-size: 14px; }
.notif-txt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.notif-vazio { padding: 14px; margin: 0; }
.notif-todas { display: block; padding: 10px 14px; text-align: center; font-weight: 700; }
.notif-lista { list-style: none; margin: 0; padding: 0; }
.notif-lista li a { display: flex; gap: 12px; align-items: flex-start; padding: 12px 6px; border-bottom: 1px solid var(--linha); text-decoration: none; color: var(--texto); }
.notif-lista li.nova a { background: #EEF7FC; }
.notif-lista .grow { display: flex; flex-direction: column; gap: 2px; }
.notif-ico { flex: none; width: 30px; height: 30px; border-radius: 50%; background: #E8F4FA; color: var(--azul); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }
.ponto { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--azul); margin-top: 8px; }

/* ===== @menções ===== */
.mencoes-pop { position: absolute; z-index: 60; background: #fff; border: 1px solid var(--linha); border-radius: 10px; box-shadow: 0 8px 24px rgba(5, 63, 92, .15); min-width: 220px; max-height: 220px; overflow-y: auto; padding: 4px; }
.mencoes-pop button { display: block; width: 100%; text-align: left; padding: 8px 10px; border: 0; background: none; border-radius: 6px; font: inherit; cursor: pointer; }
.mencoes-pop button.on, .mencoes-pop button:hover { background: #E8F4FA; }
.mencao { color: var(--azul); font-weight: 700; }

/* ===== Projetos: resumo dos últimos dias ===== */
.resumo-proj { display: grid; gap: 14px; }
.resumo-proj .card-head h2 { font-size: 16px; }
.resumo-it { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 4px 14px; padding: 10px 0; border-top: 1px solid var(--linha); }
.resumo-it:first-of-type { border-top: 0; }
.resumo-quando { font-size: 13px; color: var(--cinza); }
.resumo-quando strong { display: block; color: var(--texto); }
.resumo-txt { white-space: pre-line; word-break: break-word; }
.resumo-alt { font-size: 13px; color: var(--cinza); white-space: pre-line; margin-top: 4px; }
@media (max-width: 640px) { .resumo-it { grid-template-columns: 1fr; } }
.abas.mb { margin-bottom: 16px; }

/* ===== Projeto: chamados envolvidos ===== */
.chs { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--linha); }
.chs-lista { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.chs-i { display: flex; align-items: flex-start; gap: 6px; border: 1px solid var(--linha); border-radius: 10px; background: #fff; }
.chs-i .x { flex: none; margin: 6px; }
.chs-corpo { display: block; flex: 1; min-width: 0; padding: 8px 12px; color: var(--texto); text-decoration: none; }
a.chs-corpo:hover { background: #F4F9FC; border-radius: 10px 0 0 10px; }
.chs-topo { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.chs-topo strong { color: var(--azul); }
.chs-assunto { font-size: 14px; margin: 2px 0; overflow-wrap: anywhere; }
.chs-busca { position: relative; }
.chs-busca input { width: 100%; }
.chs-res { position: absolute; left: 0; right: 0; top: 100%; margin-top: 4px; z-index: 30; list-style: none; padding: 4px; background: #fff; border: 1px solid var(--linha); border-radius: 10px; box-shadow: 0 8px 24px rgba(5, 63, 92, .15); max-height: 320px; overflow-y: auto; }
.chs-op { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; border: 0; background: none; border-radius: 8px; padding: 0; font: inherit; cursor: pointer; }
.chs-op:hover:not(:disabled) { background: #E8F4FA; }
.chs-op:disabled { opacity: .55; cursor: default; }
.chs-vazio { padding: 8px 10px; }

/* ===== Pedidos de atenção ===== */
.atencao-card { border-left: 4px solid #E0A100; margin-bottom: 16px; }
.atencao-linha { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.atencao-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 4px 3px 10px; border-radius: 999px; background: #FFF4D6; border: 1px solid #F1D58A; font-size: 13px; font-weight: 600; color: #6B4A00; }
.atencao-chip .x { width: 22px; height: 22px; font-size: 15px; line-height: 1; padding: 0; border-radius: 50%; }
.atencao-chip small { font-weight: 400; color: #8a6a1c; }
.atencao-add { display: none; flex-wrap: wrap; gap: 6px; align-items: center; width: 100%; margin-top: 6px; }
.atencao-add.on { display: flex; }
.atencao-add select, .atencao-add input { min-width: 180px; }
.atencao-add input { flex: 1; }
.minha-atencao { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; background: #FFF4D6; border: 1px solid #F1D58A; border-radius: 10px; padding: 10px 14px; margin: 0 0 14px; }
.tag-atencao { background: #FFF4D6; color: #6B4A00; }
.dlg-body > .minha-atencao { grid-column: 1 / -1; margin: 0; }

/* ===== Aviso de notificação nova ===== */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; width: min(380px, calc(100vw - 32px)); }
.toast { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 12px 40px 12px 14px; background: #fff; border: 1px solid var(--linha); border-left: 4px solid var(--azul); border-radius: 10px; box-shadow: 0 12px 32px rgba(5, 63, 92, .2); color: var(--texto); text-decoration: none; animation: toast-in .25s ease-out; transition: opacity .4s, transform .4s; }
.toast .t { font-weight: 700; font-size: 14px; }
.toast .x { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; padding: 0; font-size: 16px; }
.toast.saindo { opacity: 0; transform: translateY(8px); }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .toast { animation: none; transition: none; } }

/* ===== Painel do chamado: mais espaço para a conversa ===== */
.painel { width: min(1080px, 100vw); }
.ch-cab { padding: 12px 20px 8px; }
.ch-cab h2 { font-size: 18px; margin: 2px 0 6px; }
.ch-fatos { grid-template-columns: repeat(auto-fit, minmax(105px, 1fr)); gap: 4px 12px; padding: 8px 20px; }
.ch-fatos .fato .lbl { font-size: 11px; }
.ch-fatos .fato strong { font-size: 13px; }
.ch-corpo { padding: 14px 20px; }
.ch-rodape { padding: 8px 20px 10px; }
.ch-rodape .stack { gap: 6px; }
.ch-rodape .seg { gap: 14px; font-size: 13px; }
.seg-avisar { margin-left: auto; font-weight: 500; color: var(--cinza); }
.ch-msg { min-height: 52px; resize: vertical; }
.ch-envio { gap: 8px; }
.conversa .bolha { max-width: 88%; }

/* ===== Agenda: reuniões do Google e atrasados antigos ===== */
.tipo-evento { background: #E3F5EA; color: #1E7A45; }
.item-evento .hora { color: #1E7A45; }
.ev-acoes { display: inline-flex; gap: 8px; align-items: center; flex: none; }
.btn-meet { background: #1E7A45; border-color: #1E7A45; }
.btn-meet:hover { background: #17623A; }
.atraso-antigo > summary { cursor: pointer; list-style: none; display: flex; gap: 8px; align-items: center; }
.atraso-antigo > summary::-webkit-details-marker { display: none; }
.atraso-antigo > summary::before { content: '▸'; color: var(--cinza); }
.atraso-antigo[open] > summary::before { content: '▾'; }
.atraso-antigo .item { opacity: .85; }
.p-evento { background: #1E7A45; }
.item-evento { flex-wrap: wrap; }
.item-evento .grow { min-width: 170px; }
/* Data de criação: ocupa duas colunas e os campos cabem dentro do quadro */
.sup-grade .multi.datas { grid-column: span 2; min-width: 0; }
.datas-in { grid-template-columns: 1fr 1fr; gap: 8px; }
.datas-in label { min-width: 0; display: block; }
.datas-in input { width: 100%; min-width: 0; box-sizing: border-box; }
@media (max-width: 460px) { .sup-grade .multi.datas { grid-column: auto; } }

/* Títulos de coluna que ordenam */
.th-ord { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.th-ord:hover { color: var(--azul); }
.th-ord.on { color: var(--azul); }
.th-ord .seta { font-size: 10px; min-width: 10px; }

/* Elemento com o atributo hidden fica sempre escondido, mesmo que outra regra dê display */
[hidden] { display: none !important; }

/* Anexos e prints colados na resposta do chamado */
.anexos-ch { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-width: 0; }
.anexo-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 4px; border: 1px solid var(--linha); border-radius: 8px; background: #F4F9FC; font-size: 12px; max-width: 220px; }
.anexo-chip img { width: 34px; height: 26px; object-fit: cover; border-radius: 4px; }
.anexo-chip .x { width: 20px; height: 20px; padding: 0; font-size: 14px; line-height: 1; }
.btn-fin { background: #1E7A45; border-color: #1E7A45; }
.btn-fin:hover { background: #17623A; }

/* ===== Caixa de mensagem com prints ===== */
.ch-editor { min-height: 64px; max-height: 300px; overflow-y: auto; white-space: pre-wrap; word-break: break-word; cursor: text; line-height: 1.5; padding: 10px 12px; }
.ch-editor:empty::before { content: attr(data-placeholder); color: var(--cinza); pointer-events: none; }
.ch-editor:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 3px rgba(3, 126, 167, .15); }
.ch-editor img.ed-img { display: block; max-width: min(100%, 560px); max-height: 320px; height: auto; margin: 6px 0; border: 1px solid var(--linha); border-radius: 6px; }
.fin-editor { min-height: 170px; max-height: 260px; }
.dlg-fin { width: min(760px, 96vw); }
.dlg-fin .l { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 14px; }
.dlg-fin .l .m, .dlg-fin .l .obrig { font-weight: 400; }
.obrig { color: #B42318; font-size: 12px; }
.fin-linha { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.fin-tempo { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.fin-tempo input { width: 70px; }
.btn-fin-abrir { color: #1E7A45; border-color: #9FD0B2; }
.dlg-fin .l-tit { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.ch-editor { max-height: 360px; }
.img-inline { display: block; margin: 6px 0; }
.img-inline img { display: block; max-width: min(100%, 480px); max-height: 320px; border: 1px solid var(--linha); border-radius: 6px; }
.ch-minha-atencao { margin: 8px 20px 0; }

/* ===== Aba Desenvolvimentos ===== */
.dev-topo { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 4px; }
.dev-empresas { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dev-acoes { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dev-acoes form { margin: 0; }
.dev-sync { margin: 0 0 12px; }
.dev-kpis { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.kpi-on { outline: 3px solid #E0A100; outline-offset: 2px; }
.dev-lista { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.dev-tit { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; font-size: 18px; margin: 0 0 4px; }
.dev-tit .m { font-weight: 400; font-size: 13px; }
.dev-card { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--linha); border-left: 4px solid var(--azul); border-radius: 10px; padding: 12px 16px; cursor: pointer; }
.dev-card:hover, .dev-card:focus-visible { box-shadow: 0 4px 16px rgba(5, 63, 92, .1); outline: none; }
.dev-card.atrasado { border-left-color: var(--late); }
.dev-t { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-bottom: 4px; }
.dev-num { color: var(--azul); font-weight: 800; font-size: 13px; }
.dev-prazo { flex: none; text-align: right; font-weight: 700; font-size: 13px; white-space: nowrap; }
.dlg-corpo { padding: 4px 22px 8px; max-height: 65vh; overflow-y: auto; }
.txt-ok { color: #1E7A45; }
@media (max-width: 640px) { .dev-card { flex-direction: column; } .dev-prazo { text-align: left; } }
#dlg-clientes, #dlg-fechamento { width: min(780px, calc(100vw - 24px)); }
.dlg-corpo .tbl { width: 100%; min-width: 0; }
.dlg-corpo .h3 { margin: 16px 0 6px; }
.lista-simples{margin:0;padding-left:20px;display:grid;gap:4px}
.perm-grupo{grid-column:1/-1;font-size:13px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted,#5b6875);margin:10px 0 0}
.perm-off{opacity:.6}
.link-linha{display:flex;flex-wrap:wrap;gap:10px;align-items:center;padding:10px 0;border-top:1px solid var(--line,#e3e8ec)}
.link-linha .grow{flex:1 1 260px;min-width:0}
/* Barra de formatação do editor do chamado */
.ed-barra{display:flex;gap:4px;margin-bottom:-6px}
.ed-bt{min-width:32px;height:28px;border:1px solid var(--line,#e3e8ec);background:var(--card,#fff);color:inherit;border-radius:6px;cursor:pointer;font-size:14px;line-height:1}
.ed-bt:hover{background:var(--bg,#f2f5f8)}
.ed-bt[aria-pressed="true"]{background:#e3f1f8;border-color:#0b7aa6;color:#0b7aa6}
.ed-bt-bold{font-weight:800}.ed-bt-italic{font-style:italic;font-family:Georgia,serif}.ed-bt-underline{text-decoration:underline}
/* Imagem ampliada */
.lightbox{width:100vw;height:100vh;max-width:100vw;max-height:100vh;margin:0;padding:0;border:0;background:rgba(10,20,30,.92);color:#fff;display:none}
.lightbox[open]{display:grid;grid-template-columns:56px 1fr 56px;grid-template-rows:auto 1fr;align-items:center}
.lightbox::backdrop{background:rgba(10,20,30,.6)}
.lb-topo{grid-column:1/-1;display:flex;align-items:center;gap:12px;padding:10px 16px}
.lb-nome{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}
.lb-topo .x{color:#fff}
.lb-img{grid-column:2;justify-self:center;max-width:100%;max-height:calc(100vh - 70px);object-fit:contain;background:#fff;border-radius:6px}
.lb-nav{background:rgba(255,255,255,.12);color:#fff;border:0;border-radius:50%;width:44px;height:44px;font-size:28px;line-height:1;cursor:pointer;justify-self:center}
.lb-nav:hover{background:rgba(255,255,255,.25)}
.lb-ant{grid-column:1;grid-row:2}.lb-prox{grid-column:3;grid-row:2}
.lb-img{grid-row:2}
.fato-linha{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.fato-trocar{font-size:12px}
.fato-escolha{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.fato-escolha select{max-width:220px}
.aba-n{display:inline-block;min-width:20px;padding:0 6px;border-radius:10px;background:#d64545;color:#fff;font-size:12px;line-height:18px;text-align:center;margin-left:4px}
.tbl-vincular .t{text-align:left;font-weight:600;padding:0}
.tbl-vincular tr.vinculado{background:#eef8f1}
.tbl-vincular tr.vinculado td:last-child{color:#1f7a3f;font-weight:600}
.area-sel select{display:inline-block;width:auto;padding:2px 6px;margin-left:2px}
.proj-busca{flex-wrap:wrap;gap:8px}
.proj-busca input[type=search]{min-width:220px}
.vinc-acao{display:flex;gap:6px;align-items:center}
.vinc-acao select{width:180px;max-width:100%}
@media (max-width:700px){.vinc-acao{flex-wrap:wrap}}
/* Painel do chamado em tela cheia (melhor para ler em telas pequenas) */
.painel { width: 100vw; max-width: 100vw; margin: 0; box-shadow: none; }
.painel .conversa .bolha { max-width: min(78%, 900px); }
/* Linha do projeto clicável */
tr.linha-clicavel { cursor: pointer; }
tr.linha-clicavel:hover td { background: var(--bg, #f2f5f8); }
tr.linha-clicavel:focus-visible { outline: 2px solid var(--azul, #0b7aa6); outline-offset: -2px; }
.msg-padrao{border-top:1px solid var(--line,#e3e8ec);padding-top:14px;display:grid;gap:8px}
.msg-padrao.inativo{opacity:.6}
.msg-padrao-topo{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.msg-padrao-topo .grow{flex:1 1 240px;min-width:0}
.cat-grade{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:16px}
.cat-conta{border:1px solid var(--line,#e3e8ec);border-radius:10px;padding:10px 14px;display:grid;gap:4px;max-height:420px;overflow:auto}
.cat-conta legend{font-weight:700;padding:0 6px}
.ed-modelos{height:28px;padding:0 6px;border:1px solid var(--line,#e3e8ec);border-radius:6px;background:var(--card,#fff);font:inherit;font-size:13px;max-width:240px;margin-left:6px}
