/* contrato.helpdesk — folha de estilo portada do design (Claude Design) */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: #F6F7F9; color: #1C1F24; font-family: Barlow, "Helvetica Neue", Helvetica, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: #0B3D7B; text-decoration: none; }
a:hover { color: #00A3E8; text-decoration: underline; }
input, textarea, select, button { font-family: inherit; font-size: inherit; }
input:focus, textarea:focus, select:focus { outline: 2px solid #00A3E8; outline-offset: 1px; }
button:focus-visible { outline: 2px solid #00A3E8; outline-offset: 2px; }
::placeholder { color: #98A2B3; }
.mono { font-family: "IBM Plex Mono", monospace; }
.hidden { display: none !important; }
@keyframes pulseDot { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; } }

/* ---------- Login ---------- */
.login-desktop { display: flex; flex-wrap: wrap; min-height: 100vh; align-items: stretch; }
.login-desktop .lado { flex: 1 1 420px; background: #F0EDE8; padding: 56px 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
.login-desktop .lado img { width: 300px; max-width: 100%; display: block; margin-left: -18px; }
.login-desktop .lado .eyebrow { margin: 0 0 10px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: #0B3D7B; font-weight: 600; }
.login-desktop .lado h1 { margin: 0 0 18px; font-size: 40px; line-height: 1.1; font-weight: 600; color: #1C1F24; text-wrap: pretty; }
.login-desktop .lado .sub { margin: 0; font-size: 17px; line-height: 1.55; color: #475467; text-wrap: pretty; }
.login-desktop .beneficios { display: flex; flex-direction: column; gap: 12px; }
.login-desktop .beneficios div { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: #475467; line-height: 1.45; }
.login-desktop .beneficios i { width: 8px; height: 8px; border-radius: 2px; flex: 0 0 auto; margin-top: 7px; display: block; }
.login-desktop .form-lado { flex: 1 1 420px; background: #FFFFFF; display: flex; align-items: center; justify-content: center; padding: 48px 32px; }
.login-desktop .form { width: 100%; max-width: 380px; }
.login-desktop .form .marca { width: 44px; height: 44px; display: block; margin-bottom: 20px; }
.login-desktop .form h2 { margin: 0 0 6px; font-size: 26px; font-weight: 600; }
.login-desktop .form .sub { margin: 0 0 28px; font-size: 15px; color: #667085; }
.login-movel { min-height: 100vh; background: #FFFFFF; display: flex; flex-direction: column; }
.login-movel .topo { background: #F0EDE8; padding: 22px 20px 20px; }
.login-movel .topo img { width: 210px; max-width: 70%; display: block; margin: 0 0 6px -12px; }
.login-movel .topo p { margin: 0; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #0B3D7B; font-weight: 700; }
.login-movel .form { padding: 24px 20px 32px; flex: 1 1 auto; }
.login-movel h1 { margin: 0 0 6px; font-size: 24px; font-weight: 600; line-height: 1.2; }
.login-movel .sub { margin: 0 0 22px; font-size: 15px; color: #667085; line-height: 1.45; }
.login-movel .input { height: 50px; font-size: 16px; border-radius: 8px; padding: 0 14px; }
.login-movel .btn-primario { height: 52px; border-radius: 8px; font-size: 17px; }
label.campo { display: block; font-size: 13px; font-weight: 600; color: #344054; margin-bottom: 6px; }
.input { width: 100%; height: 44px; padding: 0 12px; margin-bottom: 16px; border: 1px solid #D0D5DD; border-radius: 6px; background: #FFFFFF; color: #1C1F24; }
.input.h42 { height: 42px; }
.login-opcoes { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; font-size: 14px; }
.login-opcoes label { display: flex; align-items: center; gap: 8px; color: #475467; }
.login-opcoes input { width: 16px; height: 16px; accent-color: #0B3D7B; }
.login-erro { margin: -6px 0 14px; font-size: 13px; color: #B42318; min-height: 16px; }

/* ---------- Botões ---------- */
.btn-primario { width: 100%; height: 46px; border: 0; border-radius: 6px; background: #0B3D7B; color: #FFFFFF; font-size: 16px; font-weight: 600; cursor: pointer; }
.btn-primario:hover { background: #082E5C; }
.btn-primario:disabled { opacity: .6; cursor: progress; }
.btn { height: 40px; padding: 0 16px; border: 0; border-radius: 6px; background: #0B3D7B; color: #FFFFFF; font-size: 15px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.btn:hover { background: #082E5C; }
.btn-linha { height: 40px; padding: 0 16px; border: 1px solid #D0D5DD; border-radius: 6px; background: #FFFFFF; color: #344054; font-size: 15px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.btn-linha:hover { border-color: #0B3D7B; color: #0B3D7B; }
.btn-linha.sm { height: 32px; padding: 0 10px; font-size: 13px; color: #475467; }
.btn-acao { height: 34px; padding: 0 14px; border-radius: 6px; font-size: 14px; cursor: pointer; border: 1px solid #D0D5DD; background: #FFFFFF; color: #475467; font-weight: 500; }
.btn-acao.ativo { border-color: #0B3D7B; background: #0B3D7B; color: #FFFFFF; font-weight: 600; }
.btn-acao:hover:not(.ativo) { border-color: #0B3D7B; color: #0B3D7B; }
.btn-convidar { height: 32px; padding: 0 12px; border: 1px solid #0B3D7B; border-radius: 6px; background: #FFFFFF; color: #0B3D7B; font-size: 13px; font-weight: 600; cursor: pointer; }
.btn-convidar:hover { background: #0B3D7B; color: #FFFFFF; }
.chip { height: 32px; padding: 0 12px; border: 1px solid #D0D5DD; border-radius: 999px; background: #FFFFFF; color: #475467; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.chip.ativo { border-color: #0B3D7B; background: #0B3D7B; color: #FFFFFF; }
.chip.papel.ativo { background: #FFFFFF; color: #0B3D7B; }
.movel .chip { flex: 0 0 auto; height: 38px; padding: 0 16px; font-size: 14px; }

/* ---------- Shell ---------- */
.app { min-height: 100vh; background: #F6F7F9; }
.app > header { background: #FFFFFF; border-bottom: 1px solid #E4E7EC; }
.topbar { max-width: 1400px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.topbar img { width: 32px; height: 32px; display: block; }
.brand { display: flex; flex-direction: column; line-height: 1.15; }
.brand b { font-size: 16px; font-weight: 700; color: #0B3D7B; letter-spacing: -.01em; }
.brand b span { color: #00A3E8; }
.brand small { font-size: 12px; color: #98A2B3; }
.espaco { flex: 1 1 40px; }
.usuario { display: flex; align-items: center; gap: 12px; }
.usuario .info { text-align: right; line-height: 1.2; }
.usuario .info b { display: block; font-size: 14px; font-weight: 600; }
.usuario .info small { font-size: 12px; color: #667085; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: #E8F0FB; color: #0B3D7B; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; flex: 0 0 auto; }
.avatar.sm { width: 34px; height: 34px; background: #F0EDE8; font-size: 13px; }
.btn-sair { height: 34px; padding: 0 12px; border: 1px solid #D0D5DD; border-radius: 6px; background: #FFFFFF; color: #475467; font-size: 14px; cursor: pointer; }
.btn-sair:hover { border-color: #0B3D7B; color: #0B3D7B; }
.navwrap { max-width: 1400px; margin: 0 auto; padding: 0 24px; }
nav.principal { display: flex; flex-wrap: wrap; gap: 4px; }
nav.principal button { padding: 10px 14px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #667085; font-size: 15px; font-weight: 500; cursor: pointer; }
nav.principal button.ativo { border-bottom-color: #00A3E8; color: #0B3D7B; font-weight: 600; }
.movel .topbar { padding: 10px 16px; gap: 10px; }
.movel .topbar img { width: 28px; height: 28px; }
.movel .brand b { font-size: 15px; }
.movel .brand small, .movel .usuario .info { display: none; }
.movel .avatar { width: 32px; height: 32px; font-size: 13px; }
.movel .btn-sair { height: 32px; padding: 0 10px; font-size: 13px; }
.movel .navwrap { padding: 0 16px; }
.movel nav.principal { flex-wrap: nowrap; gap: 2px; overflow-x: auto; white-space: nowrap; }
.movel nav.principal button { flex: 0 0 auto; padding: 10px 12px; font-size: 14px; }
main.conteudo { max-width: 1400px; margin: 0 auto; padding: 28px 24px 64px; }
.movel main.conteudo { padding: 20px 16px 96px; }

/* ---------- Tipografia de página ---------- */
.cabecalho { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.cabecalho h1, h1.titulo { margin: 0 0 4px; font-size: 26px; font-weight: 600; text-wrap: pretty; }
.cabecalho p, p.sub { margin: 0; font-size: 15px; color: #667085; }
p.sub.mb { margin-bottom: 20px; }
h2.sec { margin: 0; font-size: 16px; font-weight: 600; }

/* ---------- Cards / grid ---------- */
.card { background: #FFFFFF; border: 1px solid #E4E7EC; border-radius: 10px; }
.card.pad { padding: 20px; }
.card.pad24 { padding: 24px; }
.card.clip { overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 20px; border-bottom: 1px solid #E4E7EC; }
.card-head p { margin: 0; font-size: 13px; color: #667085; }
.grid-kpi { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-bottom: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; align-items: start; }
.grid-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 16px; }
.coluna { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.kpi { padding: 18px; }
.kpi .label { font-size: 13px; color: #667085; margin-bottom: 8px; }
.kpi .valor { font-size: 30px; font-weight: 600; letter-spacing: -.02em; }
.kpi .nota { font-size: 12px; margin-top: 6px; font-weight: 600; color: #667085; }
.kpi .nota.azul { color: #0B3D7B; } .kpi .nota.vermelho { color: #B42318; } .kpi .nota.verde { color: #087443; }
.barras { display: flex; align-items: flex-end; gap: 14px; height: 180px; }
.barra { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; min-width: 0; }
.barra .v { font-size: 14px; font-weight: 600; }
.barra .b { width: 100%; max-width: 56px; border-radius: 6px 6px 0 0; }
.barra .l { font-size: 11px; color: #667085; text-align: center; line-height: 1.25; }
.lista-risco { display: flex; flex-direction: column; gap: 10px; }
.risco { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 10px; border: 1px solid #EAECF0; border-radius: 8px; background: #FFFFFF; cursor: pointer; }
.risco:hover { border-color: #0B3D7B; background: #FBFCFE; }
.risco .dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; }
.risco .t { flex: 1 1 0; min-width: 0; }
.risco .t b { display: block; font-size: 14px; font-weight: 600; color: #1C1F24; }
.risco .t small { display: block; font-size: 12px; color: #667085; }
.risco .p { font-size: 13px; font-weight: 600; white-space: nowrap; }
.linha-tempo { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid #F2F4F7; margin-bottom: 12px; }
.linha-tempo span:first-child { font-size: 14px; color: #344054; }
.linha-tempo span:last-child { font-size: 18px; font-weight: 600; }
.linha-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.linha-total span:first-child { font-size: 14px; font-weight: 600; }
.linha-total span:last-child { font-size: 22px; font-weight: 700; color: #0B3D7B; }

/* ---------- Pills / tags ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.st-aberto { background: #E6F6FE; color: #04607F; } .st-em_atendimento { background: #E8F0FB; color: #0B3D7B; }
.st-aguardando_cliente { background: #FEF3E2; color: #8A5300; } .st-resolvido { background: #E7F6EF; color: #08694A; } .st-fechado { background: #F2F4F7; color: #475467; }
.pr-critica { color: #B42318; } .pr-alta { color: #B4690E; } .pr-media { color: #0B3D7B; } .pr-baixa { color: #667085; }
.prio { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.pill.prio-borda { background: #FFFFFF; border: 1px solid currentColor; }
.tag-cinza { background: #F2F4F7; color: #344054; } .tag-azul { background: #E8F0FB; color: #0B3D7B; }
.tag-ambar { background: #FEF3E2; color: #8A5300; } .tag-verde { background: #E7F6EF; color: #08694A; } .tag-verm { background: #FEF3F2; color: #B42318; }

/* ---------- Fila / tabelas ---------- */
.barra-filtros { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px 16px; border-bottom: 1px solid #E4E7EC; }
.barra-filtros input { flex: 1 1 260px; height: 38px; padding: 0 12px; border: 1px solid #D0D5DD; border-radius: 6px; }
.filtros { display: flex; flex-wrap: wrap; gap: 6px; }
.rolagem { overflow-x: auto; }
table.tb { width: 100%; border-collapse: collapse; }
table.tb thead tr { background: #FBFCFD; }
table.tb th { text-align: left; padding: 10px 16px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #667085; font-weight: 600; border-bottom: 1px solid #E4E7EC; }
table.tb th.dir, table.tb td.dir { text-align: right; }
table.tb td { padding: 14px 16px; vertical-align: top; font-size: 14px; color: #475467; }
table.tb tbody tr { border-bottom: 1px solid #F2F4F7; }
table.tb tbody tr.clicavel { cursor: pointer; }
table.tb tbody tr.clicavel:hover { background: #FBFCFE; }
table.tb .id { font-size: 12px; color: #667085; }
table.tb .assunto { font-size: 15px; font-weight: 600; color: #1C1F24; }
table.tb .meta { font-size: 13px; color: #667085; }
table.tb td.sla { font-size: 13px; font-weight: 600; }
table.tb td.tempo { color: #1C1F24; }
table.tb tfoot tr { background: #FBFCFD; }
table.tb tfoot td { padding: 14px 20px; font-weight: 700; color: #1C1F24; }
table.tb.p20 th, table.tb.p20 td { padding-left: 20px; padding-right: 20px; }
.vazio { padding: 40px 16px; text-align: center; color: #667085; font-size: 15px; }
.cards-movel { display: flex; flex-direction: column; gap: 12px; }
.cards-movel .busca { width: 100%; height: 44px; padding: 0 14px; border: 1px solid #D0D5DD; border-radius: 8px; background: #FFFFFF; }
.cards-movel .filtros { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; padding-bottom: 2px; }
.card-ticket { display: block; width: 100%; text-align: left; background: #FFFFFF; border: 1px solid #E4E7EC; border-radius: 12px; padding: 16px; cursor: pointer; }
.card-ticket .l1 { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.card-ticket .l1 small { font-size: 12px; color: #98A2B3; }
.card-ticket .assunto { display: block; font-size: 17px; font-weight: 600; color: #1C1F24; line-height: 1.3; margin-bottom: 8px; }
.card-ticket .l3 { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; color: #667085; }
.rodape-fixo { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 16px; background: #FFFFFF; border-top: 1px solid #E4E7EC; z-index: 30; }
.rodape-fixo button { width: 100%; height: 50px; border: 0; border-radius: 10px; background: #0B3D7B; color: #FFFFFF; font-size: 17px; font-weight: 600; cursor: pointer; }

/* ---------- Ticket ---------- */
.ticket-topo { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.ticket-topo .esq { flex: 1 1 380px; min-width: 0; }
.ticket-topo .ids { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.ticket-topo .ids .num { font-size: 13px; color: #667085; }
.ticket-topo p { margin: 0; font-size: 14px; color: #667085; }
.acoes { display: flex; flex-wrap: wrap; gap: 8px; }
.fases { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; padding: 16px 20px; }
.fase { border-radius: 10px; padding: 16px; border: 1px solid #E4E7EC; background: #FFFFFF; }
.fase.ativa { background: #FBFDFF; box-shadow: 0 0 0 3px rgba(0, 163, 232, .12); }
.fase .cab { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: #344054; }
.fase .dot { width: 9px; height: 9px; border-radius: 50%; }
.fase.ativa .dot { animation: pulseDot 1.4s ease-in-out infinite; }
.fase .tempo { font-size: 28px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 4px; }
.fase .desc { font-size: 12px; color: #667085; margin-bottom: 12px; min-height: 32px; }
.fase button { width: 100%; height: 38px; border-radius: 6px; font-size: 14px; font-weight: 600; cursor: pointer; border: 1px solid; background: #FFFFFF; }
.fase.ativa button { background: #B42318; border-color: #B42318; color: #FFFFFF; }
.ajuda-tempo { padding: 12px 20px; background: #FBFCFD; border-top: 1px solid #E4E7EC; font-size: 13px; color: #667085; }
.total-tempo { text-align: right; }
.total-tempo small { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #98A2B3; font-weight: 600; }
.total-tempo b { font-size: 24px; font-weight: 700; color: #0B3D7B; line-height: 1.1; }
.historico { display: flex; flex-direction: column; }
.hist-item { display: flex; gap: 14px; padding-bottom: 18px; }
.hist-item .trilha { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 0 0 auto; }
.hist-item .trilha i { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; margin-top: 5px; display: block; background: #98A2B3; }
.hist-item .trilha i.tec { background: #0B3D7B; }
.hist-item .trilha b { flex: 1 1 auto; width: 1px; background: #E4E7EC; min-height: 24px; display: block; }
.hist-item .corpo { flex: 1 1 0; min-width: 0; }
.hist-item .corpo .autor { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 2px; font-size: 14px; font-weight: 600; }
.hist-item .corpo .autor small { font-size: 12px; color: #98A2B3; font-weight: 400; }
.hist-item .corpo .texto { font-size: 14px; color: #475467; line-height: 1.5; text-wrap: pretty; white-space: pre-wrap; }
.responder { border-top: 1px solid #EAECF0; padding-top: 16px; }
.responder textarea, textarea.area { width: 100%; min-height: 88px; padding: 10px 12px; border: 1px solid #D0D5DD; border-radius: 6px; resize: vertical; line-height: 1.5; }
textarea.area { min-height: 140px; margin-bottom: 16px; }
.responder .acoes { justify-content: flex-end; margin-top: 10px; }
.btn-nota { height: 38px; padding: 0 14px; border: 1px solid #D0D5DD; border-radius: 6px; background: #FFFFFF; color: #475467; font-size: 14px; font-weight: 600; cursor: pointer; }
.btn-nota:hover { border-color: #0B3D7B; color: #0B3D7B; }
.btn-resp { height: 38px; padding: 0 16px; border: 0; border-radius: 6px; background: #0B3D7B; color: #FFFFFF; font-size: 14px; font-weight: 600; cursor: pointer; }
.btn-resp:hover { background: #082E5C; }
.card-sla { border-radius: 10px; padding: 20px; border: 1px solid #E4E7EC; background: #FFFFFF; color: #1C1F24; }
.card-sla.vencido { border-color: #FDA29B; background: #FEF3F2; color: #912018; }
.card-sla small, .card-situacao small { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; margin-bottom: 6px; }
.card-sla b { display: block; font-size: 28px; font-weight: 700; line-height: 1.1; margin-bottom: 6px; }
.card-sla p, .card-situacao p { margin: 0; font-size: 13px; line-height: 1.5; }
.card-situacao { background: #F0EDE8; border-radius: 10px; padding: 20px; }
.card-situacao small { color: #0B3D7B; }
.card-situacao b { display: block; font-size: 22px; font-weight: 700; line-height: 1.2; margin-bottom: 6px; }
.card-situacao p { color: #475467; }
.detalhes { display: flex; flex-direction: column; gap: 12px; }
.detalhes div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid #F2F4F7; }
.detalhes span:first-child { font-size: 13px; color: #667085; }
.detalhes span:last-child { font-size: 14px; font-weight: 600; text-align: right; }
.fatura div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.fatura div span:first-child { font-size: 13px; color: #667085; }
.fatura div span:last-child { font-size: 15px; font-weight: 600; }
.fatura .total { padding-top: 10px; border-top: 1px solid #EAECF0; margin-bottom: 0; }
.fatura .total span:first-child { font-size: 14px; font-weight: 600; color: #1C1F24; }
.fatura .total span:last-child { font-size: 20px; font-weight: 700; color: #0B3D7B; }
.etapas { display: flex; flex-direction: column; gap: 10px; }
.etapa { display: flex; align-items: flex-start; gap: 12px; }
.etapa i { width: 12px; height: 12px; border-radius: 50%; flex: 0 0 auto; margin-top: 5px; background: #D0D5DD; display: block; }
.etapa.feito i { background: #0B3D7B; }
.etapa.atual i { box-shadow: 0 0 0 4px rgba(11, 61, 123, .14); }
.etapa b { display: block; font-size: 15px; font-weight: 600; margin-bottom: 2px; color: #98A2B3; }
.etapa.feito b { color: #1C1F24; }
.etapa span { display: block; font-size: 13px; color: #667085; line-height: 1.45; }
.anexos-lista { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.anexo { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; padding: 8px 10px; border: 1px solid #EAECF0; border-radius: 6px; }
.anexo small { color: #98A2B3; }
.descricao-box { font-size: 14px; color: #475467; line-height: 1.55; white-space: pre-wrap; }

/* ---------- Novo ticket ---------- */
select.input { appearance: auto; padding: 0 10px; }
.prioridades { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.prioridades button { height: 36px; padding: 0 14px; border-radius: 6px; font-size: 14px; font-weight: 600; cursor: pointer; border: 1px solid #D0D5DD; background: #FFFFFF; color: #475467; }
.prioridades button.ativo { color: #FFFFFF; }
.prioridades button.ativo.pr-baixa { background: #667085; border-color: #667085; }
.prioridades button.ativo.pr-media { background: #0B3D7B; border-color: #0B3D7B; }
.prioridades button.ativo.pr-alta { background: #B4690E; border-color: #B4690E; }
.prioridades button.ativo.pr-critica { background: #B42318; border-color: #B42318; }
.dropzone { border: 1px dashed #D0D5DD; border-radius: 8px; padding: 18px; text-align: center; color: #667085; font-size: 14px; margin-bottom: 20px; background: #FBFCFD; cursor: pointer; }
.dropzone.over { border-color: #00A3E8; background: #F0FAFF; }
.form-acoes { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.card-bege { background: #F0EDE8; border-radius: 10px; padding: 20px; }
.card-bege h2 { margin: 0 0 10px; font-size: 16px; font-weight: 600; color: #0B3D7B; }
.card-bege .g { font-size: 20px; font-weight: 600; color: #1C1F24; margin-bottom: 6px; line-height: 1.25; }
.card-bege p { margin: 0; font-size: 13px; color: #475467; line-height: 1.5; }
.sugestoes { display: flex; flex-direction: column; gap: 10px; }
.sugestoes a { font-size: 14px; line-height: 1.4; cursor: pointer; }

/* ---------- KB ---------- */
.kb-busca { width: 100%; max-width: 520px; height: 44px; padding: 0 14px; margin-bottom: 22px; border: 1px solid #D0D5DD; border-radius: 6px; background: #FFFFFF; }
.grid-kb { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.artigo { display: block; background: #FFFFFF; border: 1px solid #E4E7EC; border-radius: 10px; padding: 20px; text-align: left; cursor: pointer; width: 100%; }
.artigo:hover { border-color: #0B3D7B; }
.artigo .cat { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #00A3E8; font-weight: 700; margin-bottom: 8px; }
.artigo .tit { font-size: 17px; font-weight: 600; color: #1C1F24; margin-bottom: 8px; line-height: 1.3; }
.artigo .res { font-size: 14px; color: #667085; line-height: 1.5; margin-bottom: 12px; }
.artigo .meta { font-size: 12px; color: #98A2B3; }
.artigo-corpo { font-size: 15px; color: #344054; line-height: 1.6; white-space: pre-wrap; max-width: 760px; }

/* ---------- Admin ---------- */
.lista-admin > div { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid #F2F4F7; }
.lista-admin .t { flex: 1 1 0; min-width: 0; }
.lista-admin .t b { display: block; font-size: 14px; font-weight: 600; }
.lista-admin .t small { display: block; font-size: 12px; color: #667085; }
.lista-admin .horas { font-size: 13px; color: #475467; }
.lista-admin .sla-r { text-align: right; }
.lista-admin .sla-r b { display: block; font-size: 13px; font-weight: 600; }
.lista-admin .sla-r small { display: block; font-size: 11px; color: #98A2B3; }
.lista-admin .cats { flex: 1 1 0; min-width: 0; font-size: 13px; color: #667085; }
.lista-admin .inativo { opacity: .5; }
.link-mini { background: none; border: 0; padding: 0; color: #0B3D7B; font-size: 12px; font-weight: 600; cursor: pointer; }
.link-mini:hover { text-decoration: underline; }

/* ---------- Modal / toast ---------- */
.modal-fundo { position: fixed; inset: 0; background: rgba(16, 24, 40, .45); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 50; }
.modal { background: #FFFFFF; border-radius: 12px; width: 100%; max-width: 520px; max-height: 92vh; overflow: auto; padding: 24px; }
.modal h2 { margin: 0 0 4px; font-size: 20px; font-weight: 600; }
.modal p.sub { margin-bottom: 18px; }
.modal .form-acoes { margin-top: 6px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #1C1F24; color: #FFFFFF; padding: 12px 18px; border-radius: 8px; font-size: 14px; font-weight: 500; box-shadow: 0 8px 24px rgba(16, 24, 40, .18); z-index: 60; max-width: calc(100vw - 32px); }
.toast.erro { background: #B42318; }
.carregando { padding: 60px; text-align: center; color: #98A2B3; font-size: 14px; }

/* =====================================================================
 * Fase 2 — inventário, ativo, empresa, contratos e telas auxiliares
 * =================================================================== */
.kpi .nota.ambar { color: #B4690E; }
.sit-em_uso { background: #E7F6EF; color: #08694A; } .sit-estoque { background: #F2F4F7; color: #475467; }
.sit-manutencao { background: #FEF3E2; color: #8A5300; } .sit-baixado { background: #FEF3F2; color: #B42318; }
.ct-vigente { background: #E7F6EF; color: #08694A; } .ct-vencendo { background: #FEF3E2; color: #8A5300; } .ct-encerrado { background: #F2F4F7; color: #475467; }
.sel-filtro { height: 38px; padding: 0 10px; border: 1px solid #D0D5DD; border-radius: 6px; background: #FFFFFF; color: #344054; font-size: 14px; }
.filtros.rolar { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; }
.rodape-tabela { padding: 12px 16px; font-size: 13px; color: #667085; border-top: 1px solid #F2F4F7; }
table.tb tbody tr.selecionada { background: #F5F8FD; box-shadow: inset 3px 0 0 #0B3D7B; }
.btn-perigo { background: #B42318; } .btn-perigo:hover { background: #912018; }
.btn-linha.perigo { color: #B42318; border-color: #FDA29B; }
.btn-linha.perigo:hover { background: #FEF3F2; color: #B42318; border-color: #B42318; }
a.btn-linha:hover { text-decoration: none; }

/* pares rótulo/valor */
.kv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px 20px; }
.kv-grid small { display: block; font-size: 12px; color: #667085; margin-bottom: 2px; }
.kv-grid b { display: block; font-size: 14px; font-weight: 600; color: #1C1F24; overflow-wrap: anywhere; }

/* linhas compactas (tickets do ativo / empresa, apontamentos mobile) */
.linha-mini { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 20px; border: 0; border-bottom: 1px solid #F2F4F7; background: #FFFFFF; cursor: pointer; }
.linha-mini:hover { background: #FBFCFE; }
.linha-mini .id { font-size: 12px; color: #667085; flex: 0 0 auto; }
.linha-mini .t { flex: 1 1 0; min-width: 0; font-size: 14px; font-weight: 600; color: #1C1F24; }
.linha-mini .t small { display: block; font-size: 12px; font-weight: 400; color: #667085; }

/* anexos com badge de extensão */
.anexo-linha { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #F2F4F7; }
.anexo-linha .ext { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 6px; background: #F0EDE8; color: #0B3D7B; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.anexo-linha .t { flex: 1 1 0; min-width: 0; }
.anexo-linha .t b { display: block; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.anexo-linha .t small { font-size: 12px; color: #98A2B3; }
.anexo-linha a { font-size: 13px; font-weight: 600; }

/* formulário do ativo */
.form-ativo { grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); }
@media (max-width: 900px) { .form-ativo { grid-template-columns: 1fr; } }
.h3-form, .secao-form h3 { margin: 0 0 14px; font-size: 15px; font-weight: 600; color: #0B3D7B; }
.secao-form { margin-top: 22px; padding-top: 20px; border-top: 1px solid #EAECF0; }
.secao-form .grid-form { margin-bottom: 0; }
.grid-form .largo { grid-column: 1 / -1; }
.tipo-chip { height: 36px; padding: 0 14px; border-radius: 6px; font-size: 14px; font-weight: 600; cursor: pointer; border: 1px solid #D0D5DD; }

/* ativo relacionado no novo ticket */
.ativo-busca { position: relative; margin-bottom: 16px; }
.ativo-busca .input { margin-bottom: 0; }
.ativo-res { position: absolute; left: 0; right: 0; top: calc(100% + 4px); background: #FFFFFF; border: 1px solid #E4E7EC; border-radius: 8px; box-shadow: 0 8px 24px rgba(16, 24, 40, .12); z-index: 20; overflow: hidden; }
.ativo-res:empty { display: none; }
.ativo-res button { display: flex; align-items: baseline; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-bottom: 1px solid #F2F4F7; background: #FFFFFF; text-align: left; cursor: pointer; font-size: 14px; color: #1C1F24; }
.ativo-res button:hover { background: #FBFCFE; }
.ativo-res button .mono { font-size: 12px; color: #0B3D7B; font-weight: 600; flex: 0 0 auto; }
.ativo-res button span:nth-child(2) { flex: 1 1 0; min-width: 0; }
.ativo-res button small { color: #98A2B3; font-size: 12px; }
.ativo-res .nada { padding: 12px; font-size: 13px; color: #667085; }
.chip-ativo { display: inline-flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border: 1px solid #0B3D7B; border-radius: 999px; background: #E8F0FB; color: #0B3D7B; font-size: 14px; font-weight: 600; }
.chip-ativo .mono { font-size: 12px; }
.chip-ativo button { width: 24px; height: 24px; border: 0; border-radius: 50%; background: #FFFFFF; color: #0B3D7B; font-size: 16px; line-height: 1; cursor: pointer; }

/* empresa */
.abas { display: flex; gap: 4px; border-bottom: 1px solid #E4E7EC; margin-bottom: 18px; overflow-x: auto; }
.abas button { flex: 0 0 auto; padding: 10px 14px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #667085; font-size: 15px; font-weight: 500; cursor: pointer; }
.abas button.ativo { border-bottom-color: #00A3E8; color: #0B3D7B; font-weight: 600; }
.grid-empresa { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 18px; align-items: start; }
@media (max-width: 900px) { .grid-empresa { grid-template-columns: 1fr; } }
.progresso { height: 8px; border-radius: 999px; background: #F0EDE8; overflow: hidden; margin-top: 10px; }
.progresso > div { height: 100%; border-radius: 999px; }
.contato-linhas { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: #475467; }
.obs-interna, .caixa-info { margin-top: 16px; padding: 12px; background: #FBFCFD; border: 1px dashed #D0D5DD; border-radius: 8px; font-size: 13px; color: #475467; line-height: 1.5; }
.obs-interna small, .caixa-info small { display: block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #98A2B3; font-weight: 600; margin-bottom: 4px; }

/* contratos */
.lista-contratos { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.card-contrato { background: #FFFFFF; border: 1px solid #E4E7EC; border-radius: 10px; padding: 18px; }
.card-contrato.sel { border-color: #0B3D7B; box-shadow: 0 0 0 3px rgba(11, 61, 123, .08); }
.card-contrato .l1 { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.card-contrato .l1 .mono { font-size: 12px; color: #667085; }
.card-contrato .emp { font-size: 16px; font-weight: 600; }
.card-contrato .tipo { font-size: 13px; color: #667085; margin-bottom: 12px; }
.card-contrato .kvs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.card-contrato .kvs .largo { grid-column: 1 / -1; }
.card-contrato .kvs small { display: block; font-size: 11px; color: #98A2B3; }
.card-contrato .kvs b { font-size: 13px; font-weight: 600; }
.card-contrato .acoes .btn-linha.sm { flex: 0 0 auto; }
.link-pdf { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 600; }
.linha-exc { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid #F2F4F7; font-size: 13px; }

/* artigo */
.grid-artigo { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; max-width: 1180px; }
@media (max-width: 900px) { .grid-artigo { grid-template-columns: 1fr; } }
.artigo-corpo { white-space: normal; }
.artigo-corpo p { margin: 0 0 14px; }
.artigo-corpo ol { margin: 0 0 16px; padding-left: 22px; }
.artigo-corpo li { margin-bottom: 8px; padding-left: 4px; }
.rel-lista { display: flex; flex-direction: column; gap: 12px; }
.rel-link { display: block; border: 0; background: none; padding: 0; text-align: left; cursor: pointer; }
.rel-link b { display: block; font-size: 14px; font-weight: 600; color: #0B3D7B; line-height: 1.35; }
.rel-link:hover b { text-decoration: underline; }
.rel-link small { font-size: 12px; color: #98A2B3; }

/* interruptor (toggle) dos modais */
.switch { display: inline-flex; align-items: center; gap: 10px; margin: 2px 0 16px; font-size: 14px; color: #344054; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch span { position: relative; width: 40px; height: 22px; border-radius: 999px; background: #D0D5DD; transition: background .15s; flex: 0 0 auto; }
.switch span::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 2px rgba(16, 24, 40, .2); transition: left .15s; }
.switch input:checked + span { background: #0B3D7B; }
.switch input:checked + span::after { left: 20px; }
.switch input:focus-visible + span { outline: 2px solid #00A3E8; outline-offset: 2px; }

/* aviso (convite sem e-mail) */
.aviso-amarelo { margin: 12px 0 18px; padding: 14px; border: 1px solid #FEC84B; background: #FFFAEB; border-radius: 8px; font-size: 13px; color: #7A4D00; line-height: 1.5; }
.aviso-amarelo b { display: block; margin-bottom: 4px; }
.senha-temp { margin-top: 10px; padding: 10px 12px; background: #FFFFFF; border: 1px solid #FEC84B; border-radius: 6px; font-size: 16px; font-weight: 600; color: #1C1F24; letter-spacing: .04em; }

/* telas de erro */
.tela-erro { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 32px 20px; background: #F6F7F9; text-align: center; }
.tela-erro > div { max-width: 460px; }
.tela-erro img { width: 48px; height: 48px; margin-bottom: 20px; }
.tela-erro .codigo { font-size: 64px; font-weight: 700; color: #0B3D7B; line-height: 1; margin-bottom: 12px; }
.tela-erro h1 { margin: 0 0 10px; font-size: 26px; font-weight: 600; }
.tela-erro p { margin: 0 0 24px; font-size: 15px; color: #667085; line-height: 1.55; }
.login-desktop.redef .lado { justify-content: center; gap: 0; }
.movel .login-desktop .lado { flex: 0 0 auto; padding: 22px 20px; }
.movel .login-desktop .lado img { width: 210px; margin-left: -12px; }
.movel .login-desktop .form-lado { padding: 24px 20px; align-items: flex-start; }

/* modal em tela cheia no celular */
@media (max-width: 759px) {
  .modal-fundo { padding: 0; }
  .modal { max-width: none; height: 100%; max-height: none; border-radius: 0; }
  .card-contrato .acoes .btn-linha.sm { flex: 1 1 0; }
}
table.tb th, table.tb td.dir.mono { white-space: nowrap; }
.dropzone { display: block; }
.barra-filtros input { min-width: 0; }
@media (max-width: 759px) {
  .grid-kpi { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { padding: 14px; }
  .kpi .valor { font-size: 24px; }
  .barra-filtros input, .sel-filtro { flex: 1 1 100%; width: 100%; }
}
.demonstrativo .linha-total span:first-child { font-size: 13px; color: #475467; }
.demonstrativo .detalhes span:first-child { font-size: 13px; }

/* v4 — feriados, fila de e-mails, expediente */
.lista-admin > .form-feriado { gap: 8px; flex-wrap: wrap; background: #FBFCFD; border-bottom: 0; }
.form-feriado .input { margin: 0; height: 38px; }
.form-feriado input[type=date] { flex: 0 0 150px; }
.form-feriado input:not([type=date]) { flex: 1 1 180px; }
.form-feriado .btn { height: 38px; }
.lista-admin > .resumo-emails { gap: 18px; font-size: 13px; color: #475467; background: #FBFCFD; }
.resumo-emails b { font-size: 15px; margin-right: 4px; }
.dias-uteis { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.dias-uteis label { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 1px solid #D0D5DD; border-radius: 999px; font-size: 13px; font-weight: 600; color: #475467; cursor: pointer; }
.dias-uteis label:has(input:checked) { border-color: #0B3D7B; background: #E8F0FB; color: #0B3D7B; }
.dias-uteis input { accent-color: #0B3D7B; }
.aviso-verde { margin: 4px 0 16px; padding: 12px 14px; border: 1px solid #75E0A7; background: #ECFDF3; border-radius: 8px; font-size: 13px; color: #05603A; line-height: 1.5; }
.lista-admin > .form-feriado:has(> .btn-linha:only-child) { padding-bottom: 0; }

/* v6 — avaliação */
.estrelas i { font-style: normal; font-size: 20px; color: #D0D5DD; }
.estrelas i.on { color: #B4690E; }
.estrelas.escolher { display: flex; gap: 4px; }
.estrelas.escolher button { border: 0; background: none; padding: 0 2px; font-size: 32px; line-height: 1; color: #D0D5DD; cursor: pointer; transition: transform .1s; }
.estrelas.escolher button.on { color: #B4690E; }
.estrelas.escolher button:hover { transform: scale(1.12); }
.estrelas.escolher button:focus-visible { outline: 2px solid #00A3E8; border-radius: 4px; }
.card-bege.avaliar .area { background: #FFFFFF; }
.caixa-info { border-style: solid; }

/* v7 — verificação em duas etapas */
.codigo-2fa { font-size: 22px; letter-spacing: .25em; text-align: center; height: 50px; }
.passos-2fa { margin: 0 0 14px; padding-left: 20px; font-size: 14px; color: #344054; line-height: 1.6; }
.qr-2fa { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; padding: 14px; border: 1px solid #E4E7EC; border-radius: 10px; background: #FFFFFF; }
.qr-2fa .qr { width: 200px; height: 200px; flex: 0 0 auto; }
.qr-2fa .qr svg { width: 100%; height: 100%; display: block; }
.qr-2fa small { display: block; font-size: 12px; color: #667085; margin-bottom: 4px; }
.chave-2fa { font-size: 15px; font-weight: 600; color: #1C1F24; word-break: break-all; line-height: 1.5; }
.codigos-rec { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 0 0 16px; }
.codigos-rec span { padding: 10px; border: 1px dashed #D0D5DD; border-radius: 6px; text-align: center; font-size: 15px; font-weight: 600; background: #FBFCFD; }

/* v8 — integrações */
.integ { background: #FFFFFF; border: 1px solid #E4E7EC; border-left: 4px solid #D0D5DD; border-radius: 10px; padding: 16px 18px; }
.integ.on { border-left-color: #087443; }
.integ.pend { border-left-color: #B4690E; }
.integ-cab { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.integ-cab b { font-size: 15px; font-weight: 600; }
.integ p { margin: 0 0 6px; font-size: 13px; color: #475467; line-height: 1.55; }
.integ-como { margin-top: 10px; padding: 10px 12px; background: #FBFCFD; border: 1px dashed #D0D5DD; border-radius: 8px; font-size: 13px; color: #344054; line-height: 1.55; }
.integ-como small { display: block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #98A2B3; font-weight: 600; margin-bottom: 2px; }
.integ .pill { flex: 0 0 auto; }

/* v9 — formulário por categoria, relacionados, editor de campos */
.form-categoria { margin: 4px 0 18px; padding: 14px 16px 2px; border: 1px solid #E4E7EC; border-left: 4px solid #00A3E8; border-radius: 10px; background: #FBFDFF; }
.form-categoria-cab { font-size: 13px; color: #475467; margin-bottom: 10px; }
.form-categoria .grid-form { margin-bottom: 0; }
.form-categoria .input, .form-categoria .area { margin-bottom: 14px; }
.rel-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #F2F4F7; font-size: 13px; }
.rel-item .mono { flex: 0 0 auto; font-size: 12px; font-weight: 600; }
.rel-item .t { flex: 1 1 0; min-width: 0; color: #1C1F24; }
.rel-item .t small { display: block; color: #98A2B3; }
.cc-linha { display: grid; grid-template-columns: minmax(0, 1fr) 150px auto auto; gap: 8px; align-items: center; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px dashed #EAECF0; }
.cc-linha .input { margin: 0; height: 38px; }
.cc-linha .cc-opcoes { grid-column: 1 / -1; }
.cc-obr { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #475467; white-space: nowrap; }
@media (max-width: 759px) { .cc-linha { grid-template-columns: 1fr 1fr; } }
