/* Gestão de Incidentes · chamados (fluxo do GLPI no visual do Gestão360) */
:root { --in-new: #2e8b57; --in-assigned: #2a78d6; --in-planned: #4a3aa7; --in-pending: #c8790a; --in-solved: #6b6b6b; --in-closed: #2b2b2b; }
.dark { --in-new: #4caf7a; --in-assigned: #5a9cea; --in-planned: #9085e9; --in-pending: #e8ad3a; --in-solved: #a3a19c; --in-closed: #d0cec9; }
.in-st { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.in-st svg { width: 14px; height: 14px; }
.in-new { color: var(--in-new); } .in-assigned { color: var(--in-assigned); } .in-planned { color: var(--in-planned); }
.in-pending { color: var(--in-pending); } .in-solved { color: var(--in-solved); } .in-closed { color: var(--in-closed); }
.in-pr { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; white-space: nowrap; }
.in-pr i { width: 8px; height: 14px; border-radius: 1px; background: currentColor; }
.in-pr.p1 i, .in-pr.p2 i { background: #9fb7c9; } .in-pr.p3 i { background: #d9b84a; } .in-pr.p4 i { background: #e8902f; } .in-pr.p5 i { background: #e2533b; } .in-pr.p6 i { background: #b3122e; }
.in-pr.p5, .in-pr.p6 { font-weight: 600; }
.in-av { width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font-size: 10.5px; font-weight: 700; flex-shrink: 0; vertical-align: middle; }
.in-own { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.in-noown { display: inline-flex; align-items: center; gap: 4px; color: hsl(var(--danger)); font-weight: 600; font-size: 12.5px; white-space: nowrap; }
.in-noown svg { width: 14px; height: 14px; }
.in-sla { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.in-sla svg { width: 13px; height: 13px; }
.in-sla.run { color: hsl(var(--muted-fg)); } .in-sla.ok { color: hsl(var(--success)); } .in-sla.warn { color: hsl(var(--warning)); } .in-sla.bad { color: hsl(var(--danger)); } .in-sla.pause { color: var(--in-pending); }
.in-sub { font-size: 12px; }

/* filas */
.in-views { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 12px; }
.in-views button { display: inline-flex; align-items: center; gap: 6px; border: 1px solid hsl(var(--border)); background: hsl(var(--card)); color: hsl(var(--fg)); font: inherit; font-size: 13px; padding: 6px 12px; cursor: pointer; }
.in-views button svg { width: 15px; height: 15px; color: hsl(var(--muted-fg)); }
.in-views button.on { border-color: hsl(var(--primary)); background: hsl(var(--nav-active)); color: hsl(var(--primary)); font-weight: 600; }
.in-views button.on svg { color: hsl(var(--primary)); }
.in-views .n { font-variant-numeric: tabular-nums; color: hsl(var(--muted-fg)); font-weight: 500; }
.in-views .n.hot { color: #fff; background: hsl(var(--danger)); padding: 0 6px; font-weight: 700; }
.in-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid hsl(var(--border)); }
.in-bar .right { margin-left: auto; }
.in-layout button { padding: 5px 9px; }
.in-layout svg { width: 15px; height: 15px; }
.in-tbl tbody tr { cursor: pointer; }
.in-tbl td { vertical-align: middle; font-size: 13px; }
.in-tbl tr.late td:first-child { box-shadow: inset 3px 0 0 hsl(var(--danger)); }
.in-id { color: hsl(var(--muted-fg)); white-space: nowrap; font-size: 12px; }
.in-title { font-weight: 600; }

/* kanban */
.in-kanban { display: grid; grid-template-columns: repeat(5, minmax(200px, 1fr)); gap: 10px; padding: 12px; overflow-x: auto; }
.in-col { background: hsl(var(--muted) / .6); padding: 8px; min-height: 120px; }
.in-colh { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px 8px; }
.in-card { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); padding: 9px 10px; margin-bottom: 8px; cursor: pointer; font-size: 13px; display: flex; flex-direction: column; gap: 4px; }
.in-card:hover { border-color: hsl(var(--primary) / .6); }
.in-card.late { border-left: 3px solid hsl(var(--danger)); }
.in-card-h, .in-card-f { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 12px; }
.in-card-h .mono { color: hsl(var(--muted-fg)); }

/* novo chamado */
.in-new .form-grid textarea { width: 100%; }
.in-type button { padding: 6px 14px; }
.in-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 14px; }

/* chamado */
.in-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 16px; flex-wrap: wrap; }
.in-head h1 { font-size: 22px; font-weight: 600; margin: 0 0 6px; line-height: 1.3; }
.in-head h1 .mono { font-size: 17px; font-weight: 500; }
.in-head-tags { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.in-head-act { display: flex; gap: 8px; flex-wrap: wrap; }
.in-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
@media (max-width: 1100px) { .in-grid { grid-template-columns: 1fr; } }
.in-tl { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.in-item { display: flex; gap: 10px; }
.in-ib { padding-top: 4px; }
.in-ib .in-av { width: 30px; height: 30px; font-size: 11.5px; }
.in-ic { flex: 1; min-width: 0; background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-left: 3px solid hsl(var(--border)); padding: 10px 14px; }
.in-ih { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 12.5px; margin-bottom: 4px; }
.in-ih b { font-weight: 600; }
.in-kind { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; }
.in-kind svg { width: 13px; height: 13px; }
.in-lock { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; color: var(--in-pending); font-weight: 600; }
.in-lock svg { width: 12px; height: 12px; }
.in-txt { font-size: 13.5px; }
.k-desc .in-ic { border-left-color: hsl(var(--primary)); }
.k-fu .in-kind { color: hsl(var(--muted-fg)); }
.k-task .in-ic { border-left-color: var(--in-planned); } .k-task .in-kind { color: var(--in-planned); }
.k-sol .in-ic { border-left-color: var(--in-new); background: hsl(var(--success) / .06); } .k-sol .in-kind { color: var(--in-new); }
.k-ok .in-ic { border-left-color: var(--in-new); } .k-ok .in-kind { color: var(--in-new); }
.k-ref .in-ic { border-left-color: hsl(var(--danger)); } .k-ref .in-kind { color: hsl(var(--danger)); }
.k-just .in-ic { border-left-color: var(--in-pending); } .k-just .in-kind { color: var(--in-pending); }
.in-item.priv .in-ic { background: hsl(var(--warning) / .07); border-style: dashed; border-left-style: solid; }
.in-task { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; font-size: 12.5px; color: hsl(var(--muted-fg)); align-items: center; }
.in-task span, .in-task label { display: inline-flex; gap: 4px; align-items: center; }
.in-task svg { width: 13px; height: 13px; }
.in-sys { display: flex; gap: 6px; align-items: center; font-size: 12.5px; padding: 0 0 0 40px; color: hsl(var(--fg)); flex-wrap: wrap; }
.in-sys svg { width: 14px; height: 14px; color: hsl(var(--muted-fg)); }
.in-composer { margin-bottom: 14px; }
.in-ctabs { margin: 12px 16px 0; }
.in-ctabs button { display: inline-flex; gap: 5px; align-items: center; }
.in-ctabs svg { width: 14px; height: 14px; }
.in-composer textarea { width: 100%; }
.in-cfoot { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 10px; font-size: 13px; }
.in-cfoot .btn { margin-left: auto; }
.in-cfoot label { display: inline-flex; gap: 6px; align-items: center; }
.in-priv svg { width: 13px; height: 13px; }
.in-warn { color: var(--in-pending); display: inline-flex; gap: 5px; align-items: center; font-weight: 600; }
.in-warn svg { width: 14px; height: 14px; }
.in-side { display: flex; flex-direction: column; gap: 12px; }
.in-box { padding: 12px 14px; }
.in-box h4 { margin: 0 0 10px; font-size: 13.5px; display: flex; align-items: center; gap: 6px; }
.in-box h4 svg { width: 15px; height: 15px; color: hsl(var(--primary)); }
.in-box h4 small { margin-left: auto; font-weight: 400; }
.in-f { margin-bottom: 9px; font-size: 13px; }
.in-f > small { display: block; color: hsl(var(--muted-fg)); font-size: 11.5px; margin-bottom: 2px; }
.in-f select { width: 100%; padding: 4px 8px; font-size: 13px; }
.in-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.in-sla-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid hsl(var(--border) / .6); font-size: 13px; }
.in-sla-row:last-child { border-bottom: 0; }
.in-hist { display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; max-height: 260px; overflow: auto; }

/* justificativa */
.in-just select, .in-just textarea { width: 100%; }
.in-swap { display: flex; align-items: center; gap: 14px; padding: 10px 12px; background: hsl(var(--muted)); margin-bottom: 14px; }
.in-swap > div { display: flex; flex-direction: column; }
.in-swap small { color: hsl(var(--muted-fg)); font-size: 11.5px; }
.in-swap svg { width: 18px; height: 18px; color: hsl(var(--muted-fg)); }
.in-stars { display: flex; gap: 4px; }
.in-stars button { border: 0; background: none; cursor: pointer; color: hsl(var(--muted-fg)); padding: 2px; }
.in-stars button.on { color: #d9a400; }
.in-stars svg { width: 22px; height: 22px; }

/* configuração */
.in-h3 { margin: 0 0 4px; font-size: 15px; display: flex; gap: 8px; align-items: center; }
.in-h3 svg { width: 16px; height: 16px; color: hsl(var(--primary)); }
.in-p { margin: 0 0 10px; font-size: 13px; }
.in-grp { border-top: 1px solid hsl(var(--border)); padding: 8px 0; }
.in-grp summary { cursor: pointer; font-size: 13.5px; }
.in-grp .chips-input { margin-top: 8px; }
.in-num { width: 80px; text-align: right; }
.in-days { display: flex; gap: 4px; flex-wrap: wrap; }
.in-days label { border: 1px solid hsl(var(--border)); padding: 4px 10px; font-size: 13px; cursor: pointer; }
.in-days label.on { border-color: hsl(var(--primary)); color: hsl(var(--primary)); background: hsl(var(--nav-active)); }
.in-days input { display: none; }

/* ---------- WhatsApp (Chamados Beta) */
.in-item.k-wa-in .in-kind { color: #16a34a; }
.in-item.k-wa-out .in-kind { color: #0d9488; }
.in-item.k-wa-in .in-ic { border-left: 3px solid #25d366; }
.in-item.k-wa-out .in-ic { border-left: 3px solid #0d9488; background: hsl(170 60% 40% / .06); }
.in-item.k-auto .in-ic { opacity: .8; }
.in-wa-chk { color: #16a34a; }
.in-wa-chk small { color: hsl(var(--muted-fg)); }
.wa-chk { display: flex; gap: 10px; padding: 7px 0; font-size: 13px; border-bottom: 1px solid hsl(var(--border) / .6); }
.wa-chk svg { width: 18px; height: 18px; color: hsl(var(--muted-fg)); flex: 0 0 auto; margin-top: 1px; }
.wa-chk.ok svg { color: hsl(var(--success)); }
.wa-chk .muted { font-size: 12px; }
.wa-url { display: flex; gap: 6px; align-items: center; background: hsl(var(--muted)); border-radius: 8px; padding: 6px 10px; margin: 6px 0; }
.wa-url code { flex: 1; word-break: break-all; font-size: 12.5px; }
.wa-phone { height: 360px; overflow-y: auto; background: #0b141a; border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.wa-msg { max-width: 82%; padding: 7px 10px; border-radius: 9px; font-size: 13.5px; line-height: 1.4; color: #e9edef; }
.wa-msg.in { align-self: flex-end; background: #005c4b; }
.wa-msg.out { align-self: flex-start; background: #202c33; }
.wa-msg small { display: block; font-size: 10.5px; color: #8696a0; margin-top: 3px; text-align: right; }
.wa-send { display: flex; gap: 6px; margin-top: 8px; }
.wa-send input { flex: 1; }
.wa-log td { font-size: 12.5px; vertical-align: top; }
.in-auto textarea { width: 100%; min-width: 320px; font-size: 12.5px; }
.in-auto td { vertical-align: top; }

/* ---------- 1.24: anexos, vínculos, respostas prontas, canais */
.in-files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.in-files.col { flex-direction: column; margin-top: 0; }
.in-file { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 4px 8px; border: 1px solid hsl(var(--border)); border-radius: 8px; background: hsl(var(--card)); font-size: 12.5px; color: hsl(var(--fg)); text-decoration: none; }
.in-file:hover { border-color: hsl(var(--primary) / .6); }
.in-file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.in-file small { color: hsl(var(--muted-fg)); font-size: 11px; }
.in-file img { width: 34px; height: 34px; object-fit: cover; border-radius: 5px; }
.in-file svg { width: 15px; height: 15px; flex: 0 0 auto; }
.in-file.priv { border-style: dashed; }
.in-file.sm button { border: 0; background: none; cursor: pointer; color: hsl(var(--muted-fg)); font-size: 15px; line-height: 1; padding: 0 2px; }
.in-pend { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 2px; }
.in-pend:empty { display: none; }
.in-ctools { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.in-ctools .sm-sel { max-width: 260px; }
.in-ctools label.btn { cursor: pointer; }
.in-mail-chk { color: hsl(var(--primary)); }
.in-sys-att { margin: -4px 0 8px 46px; }
.in-kb { display: flex; align-items: center; gap: 6px; padding: 6px 0; border-bottom: 1px solid hsl(var(--border) / .5); font-size: 13px; }
.in-kb:last-child { border-bottom: 0; }
.in-kb a { flex: 1; min-width: 0; }
.in-kb .muted { font-size: 11.5px; white-space: nowrap; }
.in-box h4 .right { margin-left: auto; }
.in-box h4 { display: flex; align-items: center; gap: 6px; }
.in-lkres { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; max-height: 220px; overflow: auto; }
.in-lkopt { text-align: left; border: 1px solid hsl(var(--border)); background: hsl(var(--card)); border-radius: 8px; padding: 6px 8px; cursor: pointer; font-size: 13px; color: hsl(var(--fg)); }
.in-lkopt:hover { border-color: hsl(var(--primary)); }
.in-rep { display: grid; grid-template-columns: 220px 1fr auto; gap: 8px; align-items: start; margin-bottom: 8px; }
.in-rep textarea { width: 100%; }
@media (max-width: 800px) { .in-rep { grid-template-columns: 1fr; } }
.in-checks { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; font-size: 13px; }
.in-checks label { display: flex; gap: 6px; align-items: center; }
.in-act-row { display: flex; gap: 8px; flex-wrap: wrap; }
.in-stars-ro { color: #d9a400; letter-spacing: 1px; }
.in-item.k-portal .in-kind { color: hsl(var(--primary)); }
.in-item.k-portal .in-ic { border-left: 3px solid hsl(var(--primary)); }
.in-item.k-mail-in .in-kind { color: hsl(var(--info, 200 80% 45%)); }
.in-item.k-mail-in .in-ic { border-left: 3px solid hsl(var(--info, 200 80% 45%)); }
.in-item.k-csat .in-kind { color: #b58900; }
.in-item.k-csat .in-ic { background: hsl(45 90% 50% / .07); }
.in-item.k-merge .in-kind { color: hsl(var(--violet, 265 60% 55%)); }
.rate-big { justify-content: center; margin: 14px 0 4px; }
.rate-big svg { width: 34px; height: 34px; }

/* ---------- Indicadores */
.st-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.st-tiles.small { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.st-tile { padding: 14px 16px; display: flex; flex-direction: column; gap: 3px; border-top: 3px solid hsl(var(--border)); }
.st-tile small { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: hsl(var(--muted-fg)); font-weight: 700; display: flex; gap: 5px; align-items: center; }
.st-tile small svg { width: 13px; height: 13px; }
.st-tile b { font-size: 26px; font-weight: 800; line-height: 1.1; }
.st-tiles.small .st-tile b { font-size: 20px; }
.st-tile .muted { font-size: 12px; }
.st-tile.ok { border-top-color: hsl(var(--success)); } .st-tile.warn { border-top-color: hsl(var(--warning)); } .st-tile.bad { border-top-color: hsl(var(--danger)); }
.st-tile.bad b { color: hsl(var(--danger)); }
@media (max-width: 1200px) { .st-tiles, .st-tiles.small { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .st-tiles, .st-tiles.small { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.st-h { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.st-h h3 { margin: 0; font-size: 15px; display: flex; gap: 6px; align-items: center; }
.st-leg { margin-left: auto; font-size: 12px; color: hsl(var(--muted-fg)); display: flex; gap: 6px; align-items: center; }
.st-leg i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
.st-chart { width: 100%; height: 200px; display: block; }
.st-grid { stroke: hsl(var(--border)); stroke-dasharray: 3 4; }
.st-b1, i.st-b1 { fill: hsl(var(--primary)); background: hsl(var(--primary)); }
.st-b2, i.st-b2 { fill: hsl(var(--success)); background: hsl(var(--success)); }
.st-lbl { font-size: 10px; fill: hsl(var(--muted-fg)); text-anchor: middle; }
.st-bar { display: grid; grid-template-columns: minmax(0, 150px) 1fr 34px; gap: 8px; align-items: center; font-size: 12.5px; padding: 3px 0; }
.st-bar .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-bar .b { height: 8px; border-radius: 4px; background: hsl(var(--muted)); overflow: hidden; }
.st-bar .b i { display: block; height: 100%; background: hsl(var(--primary)); border-radius: 4px; }
.st-bar .b i.good { background: hsl(var(--success)); } .st-bar .b i.mid { background: hsl(var(--warning)); } .st-bar .b i.low { background: hsl(var(--danger)); }
.st-bar .n { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.st-sub { font-size: 12px; margin: 12px 0 4px; color: hsl(var(--muted-fg)); text-transform: uppercase; letter-spacing: .06em; }
.st-low { font-size: 12.5px; padding: 4px 0; border-top: 1px solid hsl(var(--border) / .5); }
.st-pill { padding: 1px 7px; border-radius: 10px; font-weight: 600; font-size: 12px; }
.st-pill.ok { background: hsl(var(--success) / .14); color: hsl(var(--success)); }
.st-pill.warn { background: hsl(var(--warning) / .16); color: hsl(var(--warning)); }
.st-pill.bad { background: hsl(var(--danger) / .14); color: hsl(var(--danger)); }
.st-bad { color: hsl(var(--danger)); }

/* ---------- Área do Cliente: chamados */
.hd-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 12px; }
.hd-head > div { flex: 1; min-width: 0; }
.hd-head h2 { margin: 0 0 4px; font-size: 20px; display: flex; gap: 8px; align-items: center; }
.hd-head p { margin: 0; font-size: 13px; }
.in-views a { display: inline-flex; gap: 6px; align-items: center; padding: 7px 12px; border-radius: 8px; color: hsl(var(--muted-fg)); text-decoration: none; font-size: 13px; }
.in-views a.on { background: hsl(var(--primary) / .12); color: hsl(var(--primary)); font-weight: 600; }
.hd-list { display: flex; flex-direction: column; }
.hd-row { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid hsl(var(--border) / .6); color: hsl(var(--fg)); text-decoration: none; }
.hd-row:hover { background: hsl(var(--muted) / .5); }
.hd-row .grow { flex: 1; min-width: 0; }
.hd-row.need { border-left: 3px solid hsl(var(--warning)); }
.hd-r { text-align: right; }
.hd-new { max-width: 820px; }
.hd-new input, .hd-new textarea, .hd-new select { width: 100%; }
.hd-solve { border-left: 3px solid hsl(var(--success)); margin: 10px 0; }
.hd-solve h3 { font-size: 15px; display: flex; gap: 6px; align-items: center; }
.hd-solve-row { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
.hd-solve-row .grow { flex: 1; min-width: 200px; }
.hd-solve-row input { width: 100%; }
.hd-tl { display: flex; flex-direction: column; gap: 10px; margin: 14px 0; }
.hd-msg { max-width: 82%; padding: 10px 14px; border-radius: 12px; background: hsl(var(--card)); border: 1px solid hsl(var(--border)); }
.hd-msg.me { align-self: flex-end; background: hsl(var(--primary) / .08); border-color: hsl(var(--primary) / .25); }
.hd-msg.team { align-self: flex-start; }
.hd-msg.k-solution { border-left: 3px solid hsl(var(--success)); }
.hd-msg.k-csat { background: hsl(45 90% 50% / .08); }
.hd-mh { display: flex; gap: 8px; align-items: baseline; font-size: 12.5px; margin-bottom: 4px; flex-wrap: wrap; }
.hd-k { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: hsl(var(--muted-fg)); font-weight: 700; }
.hd-msg .md p:last-child { margin-bottom: 0; }
.hd-reply textarea { width: 100%; }
@media (max-width: 640px) { .hd-msg { max-width: 100%; } .hd-head { flex-direction: column; } }
.in-selc { width: 28px; }
.in-selbar { display: flex; align-items: center; gap: 10px; padding: 8px 14px; background: hsl(var(--danger) / .08); border-bottom: 1px solid hsl(var(--border)); font-size: 13px; }
.in-danger { border-color: hsl(var(--danger) / .35); }
.in-selbar[hidden] { display: none; }
.in-fixed { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 0; }
