﻿:root {
  --bg: #f4f1ec;
  --ink: #13293d;
  --brand: #006d77;
  --brand-2: #ff7f50;
  --panel: rgba(255, 255, 255, 0.86);
  --line: rgba(19, 41, 61, 0.16);
  --ok: #2a9d8f;
  --warn: #e9c46a;
  --muted: #6d7c8a;
  --viewport-height: 100vh;
}

@supports (height: 100dvh) {
  :root {
    --viewport-height: 100dvh;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  background:
    radial-gradient(circle at 14% 16%, rgba(0, 109, 119, 0.16), transparent 34%),
    radial-gradient(circle at 83% 86%, rgba(255, 127, 80, 0.18), transparent 30%),
    var(--bg);
  min-height: var(--viewport-height);
}

body.app-auth-pending .top-menu,
body.app-auth-pending .app-layout,
body.app-auth-pending .menu-collapse-btn {
  visibility: hidden;
}

h1,
h2,
strong {
  font-family: "Sora", sans-serif;
}

.container {
  width: min(1200px, calc(100% - 2.4rem));
  margin: 0 auto;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
  background: rgba(244, 241, 236, 0.78);
  border-bottom: 1px solid var(--line);
}

.app-header .container {
  width: calc(100% - 1.4rem);
  max-width: none;
}

.header-inner {
  min-height: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0.38rem 0;
}

.top-menu {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 100%;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.24rem;
  padding: 0.22rem 2.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  align-items: center;
}

.menu-group {
  position: relative;
}

.submenu {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  display: grid;
  gap: 0.35rem;
  width: max-content;
  min-width: 260px;
  max-width: min(92vw, 420px);
  padding: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 10px 24px rgba(19, 41, 61, 0.16);
  z-index: 30;
}

.submenu-btn {
  width: 100%;
  min-width: max-content;
  max-width: none;
  text-align: left;
  border-radius: 8px;
  white-space: nowrap;
}

.submenu-nested-group {
  display: grid;
  gap: 0.35rem;
}

.submenu-parent-btn::after {
  content: "▾";
  float: right;
  opacity: 0.7;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.submenu-nested {
  display: grid;
  gap: 0.35rem;
  margin-left: 0.55rem;
  padding-left: 0.55rem;
  border-left: 1px solid var(--line);
}

.menu-btn {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  padding: 0.34rem 0.72rem;
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1.15;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.menu-btn:hover,
.menu-btn:focus-visible {
  background: rgba(0, 109, 119, 0.1);
  color: var(--brand);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 109, 119, 0.12);
  outline: none;
}

.submenu .menu-btn:hover,
.submenu .menu-btn:focus-visible,
.submenu-nested .menu-btn:hover,
.submenu-nested .menu-btn:focus-visible {
  background: rgba(0, 109, 119, 0.12);
  color: var(--ink);
  box-shadow: inset 3px 0 0 rgba(0, 109, 119, 0.5);
}

.submenu-parent-btn:hover::after,
.submenu-parent-btn:focus-visible::after {
  opacity: 1;
  transform: translateY(1px);
}

.menu-btn.active {
  background: var(--ink);
  color: #fff;
}

.menu-btn.active:hover,
.menu-btn.active:focus-visible {
  background: linear-gradient(135deg, var(--ink), #1b465d);
  color: #fff;
  box-shadow: 0 10px 20px rgba(19, 41, 61, 0.2);
}

.auth-user-menu {
  position: absolute;
  top: 50%;
  right: 0.22rem;
  transform: translateY(-50%);
  margin-left: 0;
}

.auth-user-avatar {
  width: 1.9rem;
  height: 1.9rem;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Sora", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.auth-user-avatar:hover,
.auth-user-avatar:focus-visible {
  background: var(--brand);
  outline: none;
}

.auth-user-panel {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  z-index: 35;
  display: grid;
  gap: 0.45rem;
  min-width: 230px;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 26px rgba(19, 41, 61, 0.16);
}

.auth-user-panel strong {
  font-size: 0.95rem;
}

.auth-user-panel span {
  color: var(--muted);
  font-size: 0.86rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-user-logout {
  margin-top: 0.25rem;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  color: #b42318;
  padding: 0.55rem 0 0;
  text-align: left;
  font-weight: 700;
  cursor: pointer;
}

.auth-user-logout:hover,
.auth-user-logout:focus-visible {
  color: #8f1d14;
  text-decoration: underline;
  outline: none;
}

.is-hidden {
  display: none;
}

.app-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 1rem;
  padding: 1.2rem 0 2rem;
}

.app-layout.app-layout-chamados {
  width: 100%;
  max-width: 100%;
}

.app-layout > [id^="view"] {
  display: grid;
  gap: 1rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  justify-self: stretch;
}

.app-layout > [id^="view"] > * {
  min-width: 0;
}

.app-layout > [id^="view"].is-hidden {
  display: none;
}

#viewChamados {
  width: 100%;
  max-width: 100%;
  justify-self: stretch;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
}

.form-panel h2,
.list-panel h2,
.category-panel h2,
.licenca-panel h2,
.departamento-panel h2,
.centro-custo-panel h2,
.empresa-panel h2,
.fornecedor-panel h2 {
  margin: 0 0 1rem;
  font-size: 1.2rem;
}

.perfis-acesso-texto {
  margin: 0 0 1rem;
  color: var(--muted);
}

.cadastro-form {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}

#centroCustoForm {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#centroCustoForm .cc-empresa {
  grid-column: 1 / 2;
}

#centroCustoForm .cc-codigo {
  grid-column: 2 / 3;
}

#centroCustoForm .form-actions {
  grid-column: 1 / -1;
  justify-content: flex-start;
}

#localForm {
  grid-template-columns: 1fr;
}

#localForm .local-cep-linha {
  display: grid;
  grid-template-columns: 160px auto;
  gap: 0.6rem;
  align-items: end;
  justify-content: start;
}

#localForm .local-cep-campo,
#localForm .local-cep-campo input {
  width: 160px;
  min-width: 160px;
}

#localForm .local-buscar-cep,
#localForm .form-actions {
  justify-content: flex-start;
}

#empresaForm {
  grid-template-columns: 1fr;
}

#empresaForm .form-actions {
  justify-content: flex-start;
}

#empresaForm .empresa-cnpj-linha {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.6rem;
  align-items: end;
}

#empresaForm .empresa-cnpj-campo {
  min-width: 0;
}

#empresaForm .empresa-contato-linha {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  align-items: end;
}

#empresaForm .empresa-contato-campo {
  min-width: 0;
}

#empresaForm .empresa-receita-section {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.9rem 1rem 1rem;
  background: rgba(255, 255, 255, 0.72);
}

#empresaForm .empresa-receita-section > summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
}

#empresaForm .empresa-receita-section > summary::-webkit-details-marker {
  display: none;
}

#empresaForm .empresa-receita-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  margin-top: 0.9rem;
}

#empresaForm .empresa-receita-field {
  min-width: 0;
}

#empresaForm .empresa-receita-field-full {
  grid-column: 1 / -1;
}

#departamentoForm {
  grid-template-columns: 1fr;
}

#departamentoForm .form-actions {
  justify-content: flex-start;
}

#categoriaForm {
  grid-template-columns: 1fr;
}

#categoriaForm .form-actions {
  justify-content: flex-start;
}

#perfilAcessoForm {
  grid-template-columns: 1fr;
}

#perfilAcessoForm .form-actions {
  justify-content: flex-start;
}

#usuarioPortalForm {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#usuarioPortalForm .form-actions {
  justify-content: flex-start;
}

#usuarioPortalForm .usuario-portal-field-span-2 {
  grid-column: span 2;
}

#usuarioPortalForm .usuario-portal-field-full {
  grid-column: 1 / -1;
}

#fornecedorForm {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#fornecedorForm .form-actions {
  justify-content: flex-start;
}

#fornecedorForm .fornecedor-buscar-cnpj {
  align-self: end;
}

#fornecedorForm .empresa-cnpj-linha {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.6rem;
  align-items: end;
}

#fornecedorForm .empresa-cnpj-campo {
  min-width: 0;
}

#fornecedorForm .empresa-contato-linha,
#modalVisualizarFornecedor .empresa-contato-linha {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  align-items: end;
}

#fornecedorForm .empresa-contato-campo,
#modalVisualizarFornecedor .empresa-contato-campo {
  min-width: 0;
}

#fornecedorForm .empresa-receita-section,
#modalVisualizarFornecedor .empresa-receita-section {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.9rem 1rem 1rem;
  background: rgba(255, 255, 255, 0.72);
}

#fornecedorForm .empresa-receita-section > summary,
#modalVisualizarFornecedor .empresa-receita-section > summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
}

#fornecedorForm .empresa-receita-section > summary::-webkit-details-marker,
#modalVisualizarFornecedor .empresa-receita-section > summary::-webkit-details-marker {
  display: none;
}

#fornecedorForm .empresa-receita-grid,
#modalVisualizarFornecedor .empresa-receita-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  margin-top: 0.9rem;
}

#fornecedorForm .empresa-receita-field,
#modalVisualizarFornecedor .empresa-receita-field {
  min-width: 0;
}

#fornecedorForm .empresa-receita-field-full,
#modalVisualizarFornecedor .empresa-receita-field-full {
  grid-column: 1 / -1;
}

#servicoForm {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

#servicoForm .sv-fornecedor {
  grid-column: span 4;
}

#servicoForm .sv-empresa {
  grid-column: 1 / -1;
}

#servicoForm .sv-data-inicio-contrato {
  grid-column: span 2;
}

#servicoForm .sv-status,
#servicoForm .sv-valor,
#servicoForm .sv-forma-pagamento,
#servicoForm .sv-vencimento {
  grid-column: span 2;
}

#servicoForm .form-actions {
  justify-content: flex-start;
}

#chamadoForm {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#modalChamado .modal-content {
  border: 1px solid #dbe3ef;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

#modalChamado .form-panel h2 {
  flex: 0 0 auto;
  margin: 0;
  padding: 0.95rem 1rem 0.9rem;
  border-bottom: 1px solid #dbe7fb;
  border-radius: 0.65rem 0.65rem 0 0;
  background: linear-gradient(180deg, #eef4ff 0%, #e7f0ff 100%);
  box-shadow: 0 1px 0 rgba(37, 99, 235, 0.06);
  color: #1d4ed8;
  font-size: 1.1rem;
  font-weight: 800;
}

#chamadoForm {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 1rem;
  gap: 0.8rem;
}

#chamadoForm label {
  display: grid;
  gap: 0.35rem;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 700;
}

#chamadoForm input,
#chamadoForm select,
#chamadoForm textarea {
  border-color: #c7d5ef;
  background: #ffffff;
}

#chamadoForm select:disabled,
#chamadoForm textarea:disabled,
#chamadoForm input:disabled {
  background: #f8fbff;
  color: #64748b;
}

#chamadoForm textarea#chamadoSolicitacao {
  min-height: 7.25rem;
  padding-top: 0.78rem;
}

#modalChamado .field-title {
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

#modalChamado #chamadoAberturaAnexosBloco {
  gap: 0.75rem;
  padding: 0.95rem 1rem 1rem;
  border: 1px solid #dbe7fb;
  border-radius: 0.75rem;
  background: #f8fbff;
}

#modalChamado .chamado-interacao-imagem-topo .muted {
  color: #587095;
}

#modalChamado .chamado-interacao-anexo-acoes {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

#modalChamado .chamado-interacao-anexo-acoes .btn-light {
  border: 1px solid #c7d5ef;
  background: #ffffff;
  color: var(--brand);
}

#modalChamado .chamado-interacao-anexo-acoes .btn-light:hover,
#modalChamado .chamado-interacao-anexo-acoes .btn-light:focus-visible {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
}

#modalChamado #chamadoAberturaAnexosPreview {
  min-height: 108px;
  border-color: #bfdbfe;
  background: rgba(255, 255, 255, 0.88);
}

#modalChamado #chamadoAberturaAnexosPreview.has-image {
  border-color: #93c5fd;
  background: #ffffff;
}

#modalChamado .chamado-interacao-imagem-vazia {
  color: #64748b;
}

#modalChamado #chamadoClassificacoesPrioridadeBloco {
  gap: 0.75rem;
  padding: 0.95rem 1rem 1rem;
  border: 1px solid #dbe7fb;
  border-radius: 0.75rem;
  background: #f8fbff;
}

#modalChamado .chamado-classificacao-prioridade-card {
  border-color: #d4e3fb;
  border-radius: 0.75rem;
  background: #ffffff;
}

#modalChamado .chamado-classificacao-prioridade-titulo {
  color: #1e3a8a;
}

#modalChamado .chamado-classificacao-prioridade-opcao span {
  border-color: #c7d5ef;
  color: #334155;
}

#modalChamado .chamado-classificacao-prioridade-opcao input:checked + span {
  border-color: rgba(37, 99, 235, 0.45);
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
}

#modalChamado .chamado-classificacao-prioridade-opcao input:focus-visible + span {
  outline: 2px solid rgba(37, 99, 235, 0.28);
}

#modalChamado .form-actions {
  margin-top: 0.2rem;
  padding-top: 0.95rem;
  border-top: 1px solid #e5edf8;
}

#modalChamado .form-actions .btn-light {
  border: 1px solid #c7d5ef;
  background: #ffffff;
}

#modalChamado .form-actions .btn-light:hover,
#modalChamado .form-actions .btn-light:focus-visible {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #93c5fd;
}

#modalFecharChamado .fechar-chamado-anexos-bloco {
  gap: 0.7rem;
  padding: 0.85rem;
  border: 1px solid #e5edf8;
  border-radius: 0.55rem;
  background: #f8fbff;
}

#modalFecharChamado .chamado-interacao-anexo-acoes {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

#modalFecharChamado .chamado-interacao-anexo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #c7d5ef;
  background: #fff;
  color: var(--brand);
  box-shadow: none;
}

#modalFecharChamado .chamado-interacao-anexo-btn:hover,
#modalFecharChamado .chamado-interacao-anexo-btn:focus-visible {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
}

#modalFecharChamado .chamado-interacao-anexo-btn svg {
  width: 1.15rem;
  height: 1.15rem;
}

#modalFecharChamado .chamado-interacao-imagem-preview {
  min-height: 88px;
  border-color: #bfdbfe;
  background: rgba(255, 255, 255, 0.88);
}

#modalFecharChamado .chamado-interacao-imagem-preview.has-image {
  border-color: #93c5fd;
  background: #fff;
}

#modalFecharChamado .chamado-interacao-imagens-grid {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

#licencaForm {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#licencaForm .form-actions {
  justify-content: flex-start;
}

#associarEquipamentoFuncionarioForm {
  --associar-equipamento-field-height: 42px;
  align-items: start;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

#associarEquipamentoFuncionarioForm input:not([type="hidden"]),
#associarEquipamentoFuncionarioForm select,
#associarEquipamentoFuncionarioForm .associar-equipamento-combo-toggle {
  box-sizing: border-box;
  height: var(--associar-equipamento-field-height);
  min-height: var(--associar-equipamento-field-height);
}

#associarEquipamentoFuncionarioForm input:not([type="hidden"]),
#associarEquipamentoFuncionarioForm select {
  padding-top: 0;
  padding-bottom: 0;
}

#associarEquipamentoFuncionarioForm textarea {
  min-height: 86px;
}

#associarEquipamentoFuncionarioForm .ae-busca-usuario {
  grid-column: span 2;
  grid-template-rows: auto var(--associar-equipamento-field-height);
  align-content: start;
  align-self: start;
  position: relative;
}

#associarEquipamentoFuncionarioForm .ae-data-fim,
#associarEquipamentoFuncionarioForm .ae-data-inicio {
  grid-column: span 2;
}

#associarEquipamentoFuncionarioForm .ae-equipamento {
  grid-column: span 2;
  position: relative;
}

#associarEquipamentoFuncionarioForm .ae-local {
  grid-column: span 2;
  grid-template-rows: auto var(--associar-equipamento-field-height);
  align-content: start;
  align-self: start;
}

#associarEquipamentoFuncionarioForm .ae-busca-usuario .equipamento-usuario-status {
  position: absolute;
  top: calc(100% + 0.2rem);
  left: 0;
  right: 0;
  min-height: 0;
  margin: 0;
}

#associarEquipamentoFuncionarioForm .form-actions {
  justify-content: flex-start;
}

.associar-equipamento-combo {
  position: relative;
  width: 100%;
}

.associar-equipamento-combo-toggle {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0 0.9rem;
  text-align: left;
}

.associar-equipamento-combo-toggle::after {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  flex: 0 0 auto;
  transform: translateY(-2px) rotate(45deg);
}

.associar-equipamento-combo-toggle:hover,
.associar-equipamento-combo-toggle:focus-visible {
  border-color: var(--primary);
  outline: none;
}

.associar-equipamento-combo-toggle span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.associar-equipamento-combo-menu {
  position: absolute;
  top: calc(100% + 0.25rem);
  left: 0;
  right: 0;
  z-index: 12;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  background: #fff;
  box-shadow: 0 16px 35px rgba(19, 41, 61, 0.14);
  display: grid;
  gap: 0.35rem;
  padding: 0.45rem;
}

.associar-equipamento-combo-menu input {
  width: 100%;
}

.associar-equipamento-combo-opcoes {
  display: grid;
  gap: 0.2rem;
  max-height: 220px;
  overflow: auto;
}

.associar-equipamento-combo-opcao,
.associar-equipamento-combo-vazio {
  border: 0;
  border-radius: 0.35rem;
  background: transparent;
  color: var(--ink);
  padding: 0.55rem 0.65rem;
  text-align: left;
}

.associar-equipamento-combo-opcao {
  cursor: pointer;
}

.associar-equipamento-combo-opcao:hover,
.associar-equipamento-combo-opcao:focus-visible,
.associar-equipamento-combo-opcao.is-selected {
  background: rgba(0, 109, 119, 0.08);
  outline: none;
}

.associar-equipamento-combo-vazio {
  color: var(--muted);
}

.associar-equipamento-combo-native {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

#associarLicencaFuncionarioForm {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#associarLicencaFuncionarioForm .al-busca-usuario,
#associarLicencaFuncionarioForm .al-usuario,
#associarLicencaFuncionarioForm .al-licenca,
#associarLicencaFuncionarioForm .al-data-inicio {
  grid-column: auto;
}

#associarLicencaFuncionarioForm .form-actions {
  justify-content: flex-start;
}

#registrarManutencaoForm {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#registrarManutencaoForm > label {
  min-width: 0;
}

#registrarManutencaoForm > label:first-of-type {
  grid-column: 1 / -1;
}

#registrarManutencaoForm select,
#registrarManutencaoForm textarea {
  width: 100%;
}

#registrarManutencaoForm .form-actions {
  justify-content: flex-start;
}

.field-title {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.92rem;
}

.parametro-section {
  display: grid;
  gap: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  padding: 0.85rem;
}

.parametro-section label {
  max-width: 260px;
}

.parametro-inline-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.65rem;
}

.parametro-inline-actions label {
  min-width: 160px;
}

.parametro-weekdays {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
  padding-top: 0.15rem;
}

.parametro-weekdays label.check-inline {
  min-width: 0;
  max-width: none;
}

.parametro-sla-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 0.65rem;
}

.parametro-sla-grid label {
  max-width: none;
}

.parametro-sla-field {
  gap: 0.35rem;
}

.parametro-sla-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.parametro-sla-dot {
  width: 0.62rem;
  height: 0.62rem;
  display: inline-block;
  flex: 0 0 auto;
  border-radius: 999px;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.18);
}

.parametro-sla-dot-dentro {
  background: #16a34a;
}

.parametro-sla-dot-atencao {
  background: #f59e0b;
}

.parametro-sla-dot-alerta {
  background: #f97316;
}

.parametro-sla-dot-vencido {
  background: #dc2626;
}

@media (max-width: 820px) {
  .parametro-sla-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .parametro-sla-grid {
    grid-template-columns: 1fr;
  }
}

.parametro-status-message {
  min-height: 1.25rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.parametro-status-message.is-error {
  color: #b91c1c;
}

.parametro-status-message.is-success {
  color: #047857;
}

.inventario-checklist {
  display: grid;
  gap: 0.45rem;
  max-height: 260px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 0.6rem;
}

.inventario-checklist-section {
  display: grid;
  gap: 0.55rem;
  padding: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft, #f8fafc);
}

.inventario-checklist-section-title {
  color: var(--text);
  font-size: 0.95rem;
}

@media print {
  body.imprimindo-relatorio-inventario-equipamentos .app-header,
  body.imprimindo-relatorio-inventario-equipamentos .app-workspace-topbar,
  body.imprimindo-relatorio-inventario-equipamentos #btnImprimirRelatorioInventarioEquipamentos {
    display: none !important;
  }

  body.imprimindo-relatorio-inventario-equipamentos .app-layout > section {
    display: none !important;
  }

  body.imprimindo-relatorio-inventario-equipamentos #viewRelatorioInventarioEquipamentos {
    display: block !important;
  }

  body.imprimindo-relatorio-inventario-equipamentos,
  body.imprimindo-relatorio-inventario-equipamentos .app-layout,
  body.imprimindo-relatorio-inventario-equipamentos .relatorio-inventario-equipamentos-panel {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
  }

  body.imprimindo-relatorio-inventario-equipamentos .table-wrap {
    overflow: visible !important;
  }
}

.relatorio-inventario-equipamentos-panel .relatorio-inventario-coluna-usuario,
.relatorio-inventario-equipamentos-panel tbody td:first-child {
  width: 200px;
  min-width: 200px;
  max-width: 200px;
}

.relatorio-inventario-equipamentos-panel table {
  width: 100%;
  table-layout: fixed;
}

.relatorio-inventario-equipamentos-panel .relatorio-inventario-coluna-equipamento,
.relatorio-inventario-equipamentos-panel tbody td:nth-child(2),
.relatorio-inventario-equipamentos-panel tbody td:nth-child(3),
.relatorio-inventario-equipamentos-panel tbody td:nth-child(4) {
  width: 150px;
  min-width: 150px;
  max-width: 150px;
}

.relatorio-inventario-equipamentos-panel .relatorio-inventario-coluna-data,
.relatorio-inventario-equipamentos-panel tbody td:nth-child(5) {
  width: 150px;
  min-width: 150px;
  max-width: 150px;
}

.relatorio-inventario-equipamentos-panel th:last-child,
.relatorio-inventario-equipamentos-panel tbody td:last-child {
  width: auto;
  overflow-wrap: anywhere;
}

.inventario-checklist-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(160px, 220px);
  gap: 0.6rem;
  align-items: center;
}

.inventario-checklist-row input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.inventario-checklist-row-sem-etiqueta {
  grid-template-columns: auto minmax(160px, 1fr) minmax(260px, 1.25fr);
}

.inventario-checklist-extra {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

@media (max-width: 620px) {
  .inventario-checklist-row-sem-etiqueta {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .inventario-checklist-row-sem-etiqueta .inventario-checklist-extra {
    grid-column: 2;
    grid-template-columns: 1fr;
  }
}

.servico-contato-row {
  grid-template-columns: minmax(140px, 1fr) minmax(140px, 1fr) minmax(180px, 1fr) auto;
}

.servico-contrato-row {
  grid-template-columns: 50% minmax(220px, 1fr) auto;
}

.servico-anexo-acoes {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.servico-anexo-upload input[type="file"] {
  display: none;
}

.servico-anexo-upload {
  min-height: 46px;
  width: fit-content;
  min-width: max-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.1rem;
  white-space: nowrap;
}

.servico-anexo-nome small {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.servico-anexo-nome {
  min-width: 0;
  flex: 1;
}

.servico-acesso-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 0.8rem;
  display: grid;
  gap: 0.6rem;
}

.servico-acessos-form {
  display: grid;
  gap: 0.7rem;
}

.servico-acesso-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.9fr) minmax(220px, 1.4fr) minmax(140px, 0.9fr) minmax(140px, 0.9fr) auto;
  gap: 0.65rem;
  align-items: end;
  border: 1px solid rgba(19, 41, 61, 0.12);
  border-radius: 12px;
  background: #f8fbfb;
  padding: 0.7rem;
}

.servico-acesso-row label {
  min-width: 0;
}

.servico-acesso-row .btn {
  min-height: 44px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.equipamento-aquisicao-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.equipamento-fornecedor-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.5fr);
  gap: 0.8rem;
}

.equipamento-identificacao-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.equipamento-descricao-field {
  position: relative;
}

.equipamento-descricao-sugestoes {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 35px rgba(19, 41, 61, 0.14);
  display: grid;
  gap: 0.25rem;
  padding: 0.35rem;
  z-index: 5;
}

.equipamento-descricao-sugestao {
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  gap: 0.15rem;
  padding: 0.55rem 0.65rem;
  text-align: left;
}

.equipamento-descricao-sugestao:hover,
.equipamento-descricao-sugestao:focus-visible {
  background: rgba(0, 109, 119, 0.08);
  outline: none;
}

.equipamento-descricao-sugestao span {
  font-weight: 700;
}

.equipamento-descricao-sugestao small {
  color: var(--muted);
  font-size: 0.78rem;
}

.equipamento-usuario-field {
  display: grid;
  gap: 0.35rem;
  position: relative;
}

.equipamento-usuario-sugestoes {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 35px rgba(19, 41, 61, 0.14);
  display: grid;
  gap: 0.25rem;
  max-height: 240px;
  overflow: auto;
  padding: 0.35rem;
  position: absolute;
  top: calc(100% - 0.1rem);
  left: 0;
  right: 0;
  z-index: 8;
}

.equipamento-usuario-sugestao {
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  gap: 0.1rem;
  padding: 0.55rem 0.65rem;
  text-align: left;
}

.equipamento-usuario-sugestao:hover,
.equipamento-usuario-sugestao:focus-visible {
  background: rgba(0, 109, 119, 0.08);
  outline: none;
}

.equipamento-usuario-sugestao span {
  font-weight: 700;
}

.equipamento-usuario-sugestao small,
.equipamento-usuario-status {
  color: var(--muted);
  font-size: 0.78rem;
}

.equipamento-usuario-status[data-status="erro"] {
  color: #b42318;
}

label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.92rem;
}

input,
select,
textarea,
button {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.62rem 0.72rem;
  background: #fff;
  color: var(--ink);
}

input[readonly],
textarea[readonly] {
  background: #f8fafc;
  color: var(--muted);
  cursor: default;
}

textarea {
  resize: vertical;
}

.full {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  gap: 0.6rem;
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 0.6rem 1rem;
  cursor: pointer;
  font-weight: 700;
}

.btn-with-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.btn-with-icon svg {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
}

.btn-add-icon {
  width: 2rem;
  min-width: 2rem;
  height: 2rem;
  min-height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.45rem;
  padding: 0;
  font-size: 1.25rem;
  line-height: 1;
}

.btn:disabled,
.btn.is-saving {
  cursor: wait;
  opacity: 0.68;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
}

.btn-secondary {
  background: var(--brand);
  color: #fff;
}

#btnExportar {
  margin-left: auto;
}

.btn-light {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
}

.save-feedback-popup {
  position: fixed;
  left: 50%;
  bottom: 1.4rem;
  z-index: 300;
  transform: translate(-50%, 1rem);
  max-width: min(360px, calc(100vw - 2rem));
  padding: 0.78rem 1rem;
  border: 1px solid rgba(0, 109, 119, 0.28);
  border-radius: 999px;
  background: rgba(19, 41, 61, 0.94);
  color: #fff;
  box-shadow: 0 16px 34px rgba(19, 41, 61, 0.24);
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.save-feedback-popup.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.global-success-toast {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 310;
  width: min(24rem, calc(100vw - 2rem));
  opacity: 0;
  pointer-events: none;
  transform: translateY(-0.75rem);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.global-success-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.global-success-toast-card {
  display: grid;
  gap: 0.35rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(0, 109, 119, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.18);
  color: #0f172a;
}

.global-success-toast-card strong {
  font-size: 0.92rem;
  font-weight: 800;
}

.global-success-toast-message {
  color: #475569;
  font-size: 0.88rem;
  line-height: 1.35;
}

html.auth-redirect-dialog-active,
body.auth-redirect-dialog-active,
html.portal-alert-dialog-active,
body.portal-alert-dialog-active,
html.portal-confirm-dialog-active,
body.portal-confirm-dialog-active,
html.service-payment-confirm-dialog-active,
body.service-payment-confirm-dialog-active {
  overflow: hidden;
}

.auth-redirect-dialog {
  position: fixed;
  inset: 0;
  z-index: 330;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.auth-redirect-dialog.is-hidden {
  display: none;
}

.auth-redirect-dialog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(4px);
}

.auth-redirect-dialog-card {
  position: relative;
  width: min(25rem, calc(100vw - 2rem));
  display: grid;
  justify-items: center;
  gap: 0.7rem;
  padding: 1.35rem 1.25rem 1.1rem;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
  text-align: center;
  color: #0f172a;
}

.auth-redirect-dialog-badge {
  width: 2.7rem;
  height: 2.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
  font-size: 1.2rem;
  font-weight: 800;
}

.auth-redirect-dialog-card strong {
  font-size: 1.02rem;
  font-weight: 800;
}

.auth-redirect-dialog-message {
  margin: 0;
  color: #0f172a;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.4;
}

.auth-redirect-dialog-actions {
  width: 100%;
  display: flex;
  justify-content: center;
  padding-top: 0.1rem;
}

.auth-redirect-dialog-actions .btn {
  min-width: 7rem;
}

.portal-alert-dialog {
  position: fixed;
  inset: 0;
  z-index: 329;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.portal-alert-dialog.is-hidden {
  display: none;
}

.portal-alert-dialog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.44);
  backdrop-filter: blur(4px);
}

.portal-alert-dialog-card {
  position: relative;
  width: min(30rem, calc(100vw - 2rem));
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0.7rem 0.85rem;
  padding: 1.2rem 1.2rem 1rem;
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
  color: #0f172a;
}

.portal-alert-dialog-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  border-radius: 14px 14px 0 0;
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.portal-alert-dialog-card[data-variant="denied"] {
  border-color: rgba(239, 68, 68, 0.24);
}

.portal-alert-dialog-card[data-variant="denied"]::before {
  background: linear-gradient(90deg, #ef4444, #f97316);
}

.portal-alert-dialog-badge {
  width: 2.3rem;
  height: 2.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  grid-row: 1 / span 3;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.14);
  color: #d97706;
  font-size: 1rem;
  font-weight: 800;
}

.portal-alert-dialog-card[data-variant="denied"] .portal-alert-dialog-badge {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
}

.portal-alert-dialog-card strong {
  align-self: center;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
}

.portal-alert-dialog-message {
  margin: 0;
  color: #0f172a;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.4;
}

.portal-alert-dialog-detail {
  margin: -0.1rem 0 0;
  color: #64748b;
  font-size: 0.84rem;
  line-height: 1.45;
}

.portal-alert-dialog-card[data-variant="denied"] .portal-alert-dialog-detail {
  color: #475569;
}

.portal-alert-dialog-detail.is-hidden {
  display: none;
}

.portal-alert-dialog-actions {
  grid-column: 2;
  width: 100%;
  display: flex;
  justify-content: flex-end;
  padding-top: 0.1rem;
}

.portal-alert-dialog-actions .btn {
  min-width: 5.8rem;
  min-height: 2.1rem;
  border-radius: 0.45rem;
  font-size: 0.84rem;
}

.portal-confirm-dialog {
  position: fixed;
  inset: 0;
  z-index: 332;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.portal-confirm-dialog.is-hidden {
  display: none;
}

.portal-confirm-dialog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(4px);
}

.portal-confirm-dialog-card {
  position: relative;
  width: min(30rem, calc(100vw - 2rem));
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem 0.9rem;
  padding: 1.2rem 1.15rem 1rem;
  border: 1px solid rgba(220, 38, 38, 0.22);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.26);
  color: #0f172a;
}

.portal-confirm-dialog-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(90deg, #dc2626, #f97316);
}

.portal-confirm-dialog-badge {
  width: 2.55rem;
  height: 2.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
  font-size: 1.08rem;
  font-weight: 800;
}

.portal-confirm-dialog-content {
  min-width: 0;
  display: grid;
  gap: 0.45rem;
}

.portal-confirm-dialog-card strong {
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0;
}

.portal-confirm-dialog-message {
  margin: 0;
  color: #0f172a;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.45;
}

.portal-confirm-dialog-detail {
  margin: -0.1rem 0 0;
  color: #64748b;
  font-size: 0.88rem;
  line-height: 1.45;
}

.portal-confirm-dialog-detail.is-hidden {
  display: none;
}

.portal-confirm-dialog-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.portal-confirm-dialog-actions .btn {
  min-width: 7rem;
}

.portal-confirm-dialog-danger {
  border: 1px solid #dc2626;
  background: #dc2626;
  color: #fff;
  box-shadow: 0 1px 2px rgba(220, 38, 38, 0.2);
}

.portal-confirm-dialog-danger:hover,
.portal-confirm-dialog-danger:focus-visible {
  border-color: #b91c1c;
  background: #b91c1c;
  outline: none;
}

.service-payment-confirm-dialog {
  position: fixed;
  inset: 0;
  z-index: 331;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.service-payment-confirm-dialog.is-hidden {
  display: none;
}

.service-payment-confirm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(5px);
}

.service-payment-confirm-card {
  position: relative;
  width: min(42rem, calc(100vw - 2rem));
  display: grid;
  gap: 0;
  padding: 0;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
  color: #0f172a;
  overflow: hidden;
}

.service-payment-confirm-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: #2563eb;
}

.service-payment-confirm-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.85rem;
  padding: 1.15rem 1.2rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.service-payment-confirm-icon {
  width: 2.55rem;
  height: 2.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cfe0ff;
  border-radius: 0.7rem;
  background: #eff6ff;
  color: #2563eb;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.1);
}

.service-payment-confirm-icon svg {
  width: 1.2rem;
  height: 1.2rem;
}

.service-payment-confirm-card strong {
  display: block;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0;
}

.service-payment-confirm-card p {
  margin: 0.18rem 0 0;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.45;
}

.service-payment-confirm-summary {
  display: grid;
  gap: 0.28rem;
  margin: 1rem 1.2rem 0;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 10px;
  background: #f8fbff;
}

.service-payment-confirm-summary span,
.service-payment-confirm-details dt {
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.service-payment-confirm-summary strong {
  font-size: 0.98rem;
  line-height: 1.35;
}

.service-payment-confirm-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 0;
  padding: 1rem 1.2rem;
}

.service-payment-confirm-details div {
  min-width: 0;
  display: grid;
  gap: 0.22rem;
  padding: 0.75rem 0.8rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
}

.service-payment-confirm-details div:nth-child(2) {
  border-color: rgba(245, 158, 11, 0.32);
  background: #fffbeb;
}

.service-payment-confirm-details dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: #0f172a;
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1.35;
}

.service-payment-confirm-value-input {
  width: 100%;
  min-width: 0;
  height: 2.5rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-weight: 650;
  letter-spacing: 0;
}

.service-payment-confirm-value-input:focus {
  border-color: #2563eb;
  outline: 2px solid rgba(37, 99, 235, 0.16);
  outline-offset: 1px;
}

.service-payment-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
  padding: 1rem 1.2rem;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
}

.service-payment-confirm-actions .btn {
  min-width: 8.6rem;
  min-height: 2.45rem;
}

.service-payment-confirm-actions [data-service-payment-confirm-action="confirm"] {
  background: #2563eb;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.2);
}

@media (max-width: 560px) {
  .service-payment-confirm-card {
    width: min(100vw - 1rem, 42rem);
  }

  .service-payment-confirm-summary {
    margin: 0.85rem 1rem 0;
  }

  .service-payment-confirm-details {
    grid-template-columns: 1fr;
    padding: 0.85rem 1rem;
  }

  .service-payment-confirm-actions {
    flex-direction: column-reverse;
    padding: 0.9rem 1rem 1rem;
  }

  .service-payment-confirm-actions .btn {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .portal-confirm-dialog-card {
    grid-template-columns: 1fr;
  }

  .portal-confirm-dialog-actions {
    flex-direction: column-reverse;
  }

  .portal-confirm-dialog-actions .btn {
    width: 100%;
  }
}

html.global-action-loading-active,
body.global-action-loading-active {
  overflow: hidden;
}

.global-action-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 320;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(3px);
  cursor: wait;
  touch-action: none;
}

.global-action-loading-overlay.is-hidden {
  display: none;
}

.global-action-loading-card {
  width: min(22rem, calc(100vw - 2rem));
  display: grid;
  justify-items: center;
  gap: 0.7rem;
  padding: 1.15rem 1.25rem 1rem;
  border: 1px solid rgba(0, 109, 119, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.26);
  color: #0f172a;
  text-align: center;
}

.global-action-loading-spinner {
  width: 2.4rem;
  height: 2.4rem;
  border: 3px solid rgba(0, 109, 119, 0.16);
  border-top-color: var(--brand);
  border-radius: 999px;
  animation: globalActionLoadingSpin 0.85s linear infinite;
}

.global-action-loading-card strong {
  font-size: 1rem;
  font-weight: 800;
}

.global-action-loading-message {
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.35;
}

.global-action-loading-dots {
  display: inline-flex;
  gap: 0.3rem;
  align-items: center;
  justify-content: center;
}

.global-action-loading-dots span {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: var(--brand);
  animation: globalActionLoadingBounce 1s ease-in-out infinite;
}

.global-action-loading-dots span:nth-child(2) {
  animation-delay: 0.14s;
}

.global-action-loading-dots span:nth-child(3) {
  animation-delay: 0.28s;
}

@keyframes globalActionLoadingSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes globalActionLoadingBounce {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.35;
  }

  40% {
    transform: translateY(-0.18rem);
    opacity: 1;
  }
}

.list-head {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
}

.list-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.check-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
}

.check-inline input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.list-panel .list-head {
  flex-direction: column;
  align-items: flex-start;
}

.list-panel .list-controls {
  width: 100%;
  justify-content: flex-start;
  flex-wrap: nowrap;
}

.list-panel .filtros {
  justify-content: flex-end;
  width: fit-content;
  flex: 0 0 auto;
  margin-left: auto;
}

.list-panel .filtros input,
.list-panel .filtros select {
  width: auto;
  flex: 0 0 auto;
}

.list-panel .filtros input {
  min-width: 280px;
  text-align: center;
}

.list-panel .filtros input[type="search"]::placeholder {
  text-align: center;
}

#viewServicos .list-controls .check-inline {
  margin-left: auto;
}

.filtros {
  display: flex;
  gap: 0.55rem;
  width: min(560px, 100%);
}

.filtros input {
  flex: 1;
}

#viewAssociacaoEquipamentos .associacao-equipamentos-filtros select {
  min-width: 130px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--line);
  text-align: left;
  padding: 0.7rem 0.45rem;
  font-size: 0.92rem;
}

th {
  font-size: 0.83rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.table-sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  width: 100%;
  min-height: 1.2rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  text-transform: inherit;
  cursor: pointer;
}

.table-sort-btn::after {
  content: "";
  flex: 0 0 auto;
  width: 0;
  height: 0;
  border-left: 0.24rem solid transparent;
  border-right: 0.24rem solid transparent;
}

.table-sort-btn.is-active {
  color: var(--primary);
}

.table-sort-btn.is-active[data-sort-direction="asc"]::after {
  border-bottom: 0.36rem solid currentColor;
}

.table-sort-btn.is-active[data-sort-direction="desc"]::after {
  border-top: 0.36rem solid currentColor;
}

.table-sort-btn:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.45);
  outline-offset: 3px;
}

.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 0.2rem 0.56rem;
  font-size: 0.79rem;
  font-weight: 700;
}

.badge.em-uso {
  background: rgba(42, 157, 143, 0.17);
  color: #1b5b52;
}

.badge.disponivel {
  background: rgba(233, 196, 106, 0.26);
  color: #7e6218;
}

.badge.devolver {
  background: rgba(14, 165, 233, 0.16);
  color: #075985;
}

.badge.em-manutencao {
  background: rgba(0, 109, 119, 0.18);
  color: #004b52;
}

.badge.baixado {
  background: rgba(108, 117, 125, 0.2);
  color: #3b4046;
}

.badge.armazenado {
  background: rgba(19, 41, 61, 0.14);
  color: #13293d;
}

.badge.ativo {
  background: rgba(42, 157, 143, 0.18);
  color: #1b5b52;
}

.badge.pendente {
  background: rgba(233, 196, 106, 0.28);
  color: #7e6218;
}

.badge.bloqueado {
  background: rgba(180, 35, 24, 0.16);
  color: #8f1b13;
}

.badge.rejeitado {
  background: rgba(198, 40, 40, 0.12);
  color: #8f1b13;
}

.badge.em-negociacao {
  background: rgba(233, 196, 106, 0.28);
  color: #7e6218;
}

.badge.em-pausa {
  background: rgba(255, 127, 80, 0.18);
  color: #9b4a23;
}

.badge.inativo {
  background: rgba(108, 117, 125, 0.2);
  color: #3b4046;
}

.row-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.equipamento-descricao-cell {
  display: grid;
  gap: 0.18rem;
}

.equipamento-descricao-cell small {
  color: var(--muted);
  font-size: 0.82rem;
}

.icon-btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 0.28rem 0.5rem;
  cursor: pointer;
}

.icon-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.chamado-action-icon {
  width: 1.8rem;
  height: 1.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: rgba(0, 109, 119, 0.08);
  color: var(--brand);
  box-shadow: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.chamado-action-icon svg {
  width: 1.12rem;
  height: 1.12rem;
  pointer-events: none;
}

.chamado-action-icon:hover,
.chamado-action-icon:focus-visible {
  background: rgba(0, 109, 119, 0.14);
  color: #00515a;
  box-shadow: none;
  outline: none;
  transform: translateY(-1px);
}

.chamado-action-icon-cancel {
  background: rgba(180, 35, 24, 0.08);
  color: #b42318;
}

.chamado-action-icon-cancel:hover,
.chamado-action-icon-cancel:focus-visible {
  background: rgba(180, 35, 24, 0.13);
  color: #8f1b13;
}

.chamado-action-icon-delete {
  background: rgba(180, 35, 24, 0.08);
  color: #b42318;
}

.chamado-action-icon-delete:hover,
.chamado-action-icon-delete:focus-visible {
  background: rgba(180, 35, 24, 0.13);
  color: #8f1b13;
}

.chamado-action-icon:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  box-shadow: none;
  transform: none;
}

.chamado-action-icon:disabled:hover {
  background: transparent;
  color: #b42318;
}

.chamado-resolvedor-btn {
  width: 1.95rem;
  height: 1.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 113, 128, 0.18);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(0, 113, 128, 0.12), rgba(0, 113, 128, 0.02));
  color: #00515a;
  padding: 0;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.chamado-resolvedor-btn:hover,
.chamado-resolvedor-btn:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(0, 113, 128, 0.35);
  box-shadow: 0 8px 18px rgba(0, 81, 90, 0.12);
  outline: none;
}

.chamado-resolvedor-btn-iniciais {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.chamado-resolvedor-btn-placeholder {
  width: 0.95rem;
  height: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.chamado-resolvedor-btn-placeholder svg {
  width: 100%;
  height: 100%;
}

.chamados-lista-wrap {
  max-height: calc(var(--viewport-height) - 12rem);
  overflow-y: auto;
  padding-right: 0.25rem;
}

.chamados-cards-list {
  display: grid;
  gap: 0.72rem;
}

.chamado-card-item {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(19, 41, 61, 0.08);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 251, 252, 0.94) 100%),
    radial-gradient(circle at top right, rgba(0, 109, 119, 0.1), transparent 36%);
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
  cursor: pointer;
}

.chamado-card-item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, rgba(0, 109, 119, 0.45), rgba(42, 157, 143, 0.16));
  opacity: 0.72;
}

.chamado-card-item:hover,
.chamado-card-item:focus-within {
  transform: translateY(-1px);
  border-color: rgba(0, 109, 119, 0.22);
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.08);
}

.chamado-card-main {
  display: grid;
  gap: 0.64rem;
  padding: 0.86rem 0.92rem 0.86rem 1rem;
}

.chamado-card-main:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(0, 109, 119, 0.2);
  border-radius: 18px;
}

.chamado-card-linha {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.55rem;
}

.chamado-card-linha-topo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.7rem;
}

.chamado-card-identificacao {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.38rem 0.55rem;
}

.chamado-card-numero {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  flex-shrink: 0;
  border: 1px solid rgba(0, 109, 119, 0.18);
  border-radius: 999px;
  background: rgba(0, 109, 119, 0.08);
  color: #0b5f6b;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  padding: 0.16rem 0.48rem;
}

.chamado-card-titulo {
  flex: 1 1 100%;
  min-width: 0;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.chamado-card-data {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.55rem;
  flex-shrink: 0;
  border-radius: 999px;
  background: rgba(19, 41, 61, 0.06);
  color: #52616f;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 0.18rem 0.5rem;
}

.chamado-card-solicitante {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(19, 41, 61, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  color: #3f4a52;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.36rem 0.52rem;
  word-break: break-word;
}

.chamado-card-solicitante::before {
  content: "Solicitante";
  flex-shrink: 0;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.chamado-card-linha-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: flex-end;
}

.chamado-card-meta-campos {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 0.9fr) minmax(0, 1.2fr);
  align-items: flex-end;
  gap: 0.5rem;
}

.chamado-card-meta-item {
  min-width: 0;
  display: grid;
  gap: 0.24rem;
  border: 1px solid rgba(19, 41, 61, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  padding: 0.42rem 0.5rem;
}

.chamado-card-meta-label {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.chamado-card-meta-resolvedor {
  min-width: 0;
}

.chamado-inline-select-resolvedor {
  max-width: none;
}

.chamado-card-actions {
  justify-content: flex-end;
  gap: 0.24rem;
  flex-shrink: 0;
  align-self: end;
}

.chamado-inline-select {
  box-sizing: border-box;
  width: 100%;
  min-height: 1.65rem;
  min-width: 0;
  max-width: none;
  border: 1px solid rgba(19, 41, 61, 0.12);
  border-radius: 9px;
  padding: 0.2rem 1.35rem 0.2rem 0.42rem;
  cursor: pointer;
  appearance: none;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg width='8' height='5' viewBox='0 0 8 5' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L4 4L7 1' stroke='%236C757D' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 0.35rem center;
  background-repeat: no-repeat;
  background-size: 0.5rem 0.32rem;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.74rem;
  line-height: 1.15;
  text-overflow: ellipsis;
  transition: background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.chamado-inline-select:hover {
  border-color: rgba(19, 41, 61, 0.12);
  background-color: rgba(19, 41, 61, 0.04);
}

.chamado-inline-select:focus {
  border-color: rgba(0, 109, 119, 0.32);
  background-color: #fff;
  box-shadow: 0 0 0 2px rgba(0, 109, 119, 0.12);
  outline: none;
}

.chamado-inline-select:disabled {
  cursor: not-allowed;
  color: var(--muted);
  background-color: transparent;
  opacity: 0.68;
}

.link-cell-btn {
  border: 0;
  background: transparent;
  color: var(--brand);
  cursor: pointer;
  padding: 0;
  font-weight: 700;
  text-align: left;
}

.link-cell-btn:hover {
  text-decoration: underline;
}

.servico-contatos-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.chamados-layout {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(340px, 32%) minmax(0, 1fr) minmax(320px, 24%);
  gap: 1rem;
  align-items: start;
}

.chamados-layout > .panel {
  min-width: 0;
}

.chamados-layout .chamado-card-meta-campos {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.chamados-layout .chamado-card-meta-resolvedor {
  grid-column: 1 / -1;
}

.primebot-panel {
  display: flex;
  height: calc(var(--viewport-height) - 7rem);
  min-height: clamp(0px, calc(var(--viewport-height) - 7rem), 360px);
  max-height: none;
  flex-direction: column;
  overflow: hidden;
}

.list-panel .primebot-head {
  flex-direction: row;
  align-items: center;
  gap: 0.45rem;
  min-height: 0;
  margin-bottom: 0.4rem;
}

.list-panel .primebot-head h2 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.1;
}

.list-panel .primebot-head .list-controls {
  width: auto;
  gap: 0.35rem;
  flex-wrap: nowrap;
  margin-left: auto;
}

#btnLimparPrimeBot {
  padding: 0.32rem 0.62rem;
  font-size: 0.78rem;
  line-height: 1.1;
}

.primebot-contexto {
  min-height: 0;
  display: grid;
  gap: 0.35rem;
  border: 1px solid rgba(0, 109, 119, 0.16);
  border-radius: 8px;
  background: rgba(0, 109, 119, 0.06);
  color: #0b5f6b;
  padding: 0.38rem;
  font-size: 0.82rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.primebot-contexto-opcoes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.3rem;
}

.primebot-contexto-opcao {
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--muted);
  padding: 0.32rem 0.42rem;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.15;
}

.primebot-contexto-opcao:hover,
.primebot-contexto-opcao:focus-visible {
  border-color: rgba(0, 109, 119, 0.24);
  color: var(--ink);
  outline: none;
}

.primebot-contexto-opcao.is-active {
  border-color: rgba(0, 109, 119, 0.32);
  background: #fff;
  color: #0b5f6b;
}

.primebot-contexto-resumo {
  min-height: 1rem;
  padding: 0 0.1rem;
  font-size: 0.78rem;
  line-height: 1.25;
}

.primebot-mensagens {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 0.55rem;
  margin: 0.75rem 0;
  overflow: auto;
  padding-right: 0.15rem;
}

.primebot-msg {
  max-width: 92%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 0.62rem 0.72rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 0.88rem;
  line-height: 1.35;
}

.primebot-msg-user {
  justify-self: end;
  border-color: rgba(0, 109, 119, 0.22);
  background: rgba(0, 109, 119, 0.08);
}

.primebot-msg-assistant {
  justify-self: start;
}

.primebot-msg-system {
  max-width: 100%;
  justify-self: stretch;
  color: var(--muted);
  background: #f7fbfb;
  font-size: 0.82rem;
}

.primebot-msg-loading {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  max-width: 92%;
  white-space: nowrap;
  font-weight: 600;
}

.primebot-msg-loading-text {
  display: inline-flex;
  align-items: center;
}

.primebot-msg-loading-dots {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.primebot-msg-loading-dots span {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.42;
  animation: primebotLoadingBounce 1s ease-in-out infinite;
}

.primebot-msg-loading-dots span:nth-child(2) {
  animation-delay: 0.14s;
}

.primebot-msg-loading-dots span:nth-child(3) {
  animation-delay: 0.28s;
}

.primebot-msg-acoes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.7rem;
}

.primebot-msg-acoes .btn {
  min-width: 132px;
  padding: 0.48rem 0.72rem;
  line-height: 1.15;
}

.primebot-conversa-acoes-finais {
  display: flex;
  justify-content: flex-start;
  margin-top: 0.15rem;
}

.primebot-conversa-acoes-finais .btn {
  min-width: 150px;
  padding: 0.5rem 0.78rem;
  line-height: 1.15;
}

.primebot-form {
  display: grid;
  gap: 0.55rem;
}

.primebot-form textarea {
  min-height: 92px;
  resize: vertical;
}

.primebot-form .btn {
  justify-self: stretch;
}

.primebot-panel .muted {
  min-height: 1.2rem;
  margin-top: 0.45rem;
}

.servicos-layout,
.hub-solucoes-layout {
  display: grid;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

#viewServicos {
  height: calc(var(--viewport-height) - 8rem);
  min-height: 0;
  max-height: calc(var(--viewport-height) - 8rem);
  overflow: hidden;
}

#viewServicos .servicos-layout {
  height: 100%;
  min-height: 0;
  align-items: stretch;
}

#viewHubSolucoes {
  height: calc(var(--viewport-height) - 8rem);
  min-height: 0;
  max-height: calc(var(--viewport-height) - 8rem);
  overflow: hidden;
}

#viewHubSolucoes .hub-solucoes-layout {
  height: 100%;
  min-height: 0;
  align-items: stretch;
}

.servicos-layout > .panel,
#viewServicos .servicos-layout > .panel {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.servicos-layout > .panel,
.hub-solucoes-layout > .panel {
  min-width: 0;
}

.servicos-lista,
.hub-solucoes-lista {
  display: grid;
  align-content: start;
  grid-auto-rows: max-content;
  gap: 0.65rem;
}

#viewHubSolucoes .hub-solucoes-layout > .panel {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.servicos-lista {
  max-height: calc(var(--viewport-height) - 12rem);
  overflow-y: auto;
  padding-right: 0.25rem;
}

.hub-solucoes-lista {
  flex: 1;
  max-height: calc(var(--viewport-height) - 12rem);
  min-height: 0;
  overflow-y: auto;
  padding-right: 0.25rem;
  overscroll-behavior: contain;
}

.list-panel .servicos-head,
.list-panel .servico-detalhe-head,
.list-panel .hub-solucoes-head,
.list-panel .hub-solucao-detalhe-head {
  flex-direction: row;
  align-items: center;
}

.list-panel .servicos-head {
  flex-direction: column;
  align-items: stretch;
}

.servicos-head .list-controls {
  width: 100%;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.hub-solucoes-search {
  width: 100%;
}

.hub-solucoes-search input {
  width: 100%;
}

.servico-detalhe-head,
.hub-solucao-detalhe-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
}

.servico-detalhe-head .list-controls,
.hub-solucao-detalhe-head .list-controls {
  width: 100%;
  min-width: 0;
  margin-left: auto;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.servico-detalhe-titulo,
.hub-solucao-detalhe-titulo {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1.2rem;
}

.servico-item,
.hub-solucao-item {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 0.85rem 0.9rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.35rem;
  text-align: left;
  align-items: center;
}

.hub-solucao-item {
  grid-template-columns: 1fr;
  cursor: pointer;
}

.servico-item-main {
  min-width: 0;
  border: 0;
  background: transparent;
  color: inherit;
  display: grid;
  gap: 0.35rem;
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.servico-item.is-active,
.hub-solucao-item.is-active {
  border-color: rgba(37, 99, 235, 0.4);
  background: rgba(37, 99, 235, 0.08);
}

.servico-pagamento-btn {
  width: 2.15rem;
  height: 2.15rem;
  border: 1px solid rgba(37, 99, 235, 0.35);
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.servico-pagamento-btn-vencido {
  border-color: rgba(190, 18, 60, 0.55);
  background: rgba(254, 226, 226, 0.9);
  color: #be123c;
}

.servico-pagamento-btn svg {
  width: 1rem;
  height: 1rem;
}

.servico-pagamento-btn:hover,
.servico-pagamento-btn:focus-visible {
  border-color: rgba(37, 99, 235, 0.7);
  background: rgba(37, 99, 235, 0.22);
  outline: none;
}

.servico-pagamento-btn-vencido:hover,
.servico-pagamento-btn-vencido:focus-visible {
  border-color: rgba(190, 18, 60, 0.82);
  background: rgba(254, 202, 202, 0.95);
}

.servico-pagamento-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.servico-item-titulo,
.hub-solucao-item-titulo {
  font-family: "Sora", sans-serif;
  font-size: 0.98rem;
}

.servico-item-meta,
.hub-solucao-item-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.servico-item-status-valor {
  min-width: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.servico-item-status-valor .servico-item-meta:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.servico-item-valor {
  margin-left: auto;
  text-align: right;
  white-space: nowrap;
}

.servico-preview {
  display: grid;
  gap: 1rem;
  align-content: start;
  grid-auto-rows: max-content;
}

.servico-preview-body {
  display: grid;
  gap: 1rem;
  align-content: start;
  grid-auto-rows: max-content;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.servico-preview-body-topless {
  border-top: none;
  padding-top: 0;
}

.servico-preview-fields {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: max-content;
  align-content: start;
  align-items: start;
  gap: 0.7rem;
}

.servico-preview-field {
  grid-column: span 2;
  display: grid;
  grid-template-rows: max-content 42px;
  align-content: start;
  align-self: start;
  gap: 0.35rem;
}

.servico-preview-field-wide {
  grid-column: span 3;
}

.servico-preview-field-full {
  grid-column: 1 / -1;
}

.servico-preview-field-label {
  color: var(--ink);
  font-size: 0.92rem;
}

.servico-preview-field-box {
  position: relative;
  height: 42px;
  min-height: 42px;
  max-height: 42px;
  min-width: 0;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 0.62rem 0.9rem;
  color: var(--ink);
}

.servico-preview-field-value {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.servico-preview-field-box-select {
  padding-right: 2.2rem;
}

.servico-preview-field-box-select::after {
  content: "";
  position: absolute;
  right: 0.95rem;
  top: 50%;
  width: 0.46rem;
  height: 0.46rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-65%) rotate(45deg);
  opacity: 0.72;
}

.servico-preview-section {
  display: grid;
  grid-auto-rows: max-content;
  align-content: start;
  align-self: start;
  gap: 0.6rem;
}

.servico-preview-section .field-title {
  margin-bottom: 0;
}

.servico-preview-texto {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 0.9rem 1rem;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.75;
}

.visualizar-servico-descricao-field {
  display: grid;
  gap: 0.55rem;
}

.visualizar-servico-descricao-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.visualizar-servico-descricao-head span {
  color: var(--ink);
}

.servico-visualizacao-descricao {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.servico-visualizacao-descricao.is-expanded {
  display: block;
  -webkit-line-clamp: unset;
  max-height: calc(var(--viewport-height) - 12rem);
  overflow-y: auto;
}

.visualizar-servico-descricao-toggle {
  border: 0;
  background: transparent;
  color: var(--brand);
  padding: 0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.visualizar-servico-descricao-toggle:hover,
.visualizar-servico-descricao-toggle:focus-visible {
  text-decoration: underline;
  outline: none;
}

.visualizar-servico-descricao-toggle.is-hidden {
  display: none;
}

.servico-preview-access-list {
  display: grid;
  gap: 0.75rem;
}

.servico-preview-access-item {
  display: grid;
  gap: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  padding: 0.8rem;
}

.servico-preview-access-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.servico-preview-access-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  border: 1px solid rgba(19, 41, 61, 0.14);
  border-radius: 12px;
  background: #fff;
  padding: 0.72rem 0.8rem;
}

.servico-preview-access-box-full {
  grid-column: 1 / -1;
}

.servico-preview-access-label {
  width: 72px;
  flex-shrink: 0;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.servico-preview-access-value {
  min-width: 0;
  flex: 1;
}

.servico-preview-access-text,
.servico-preview-access-secret {
  display: block;
  font-size: 0.98rem;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.servico-preview-access-secret {
  letter-spacing: 0.08em;
  font-weight: 700;
}

.servico-preview-access-secret.is-visible {
  letter-spacing: 0;
  font-weight: 600;
}

.hub-solucao-preview {
  display: grid;
  gap: 1rem;
}

#viewServicos #servicoDetalheVazio,
#viewServicos #servicoDetalheConteudo {
  flex: 1;
  max-height: calc(var(--viewport-height) - 12rem);
  min-height: 0;
  overflow-y: auto;
  padding-right: 0.25rem;
  overscroll-behavior: contain;
}

#viewHubSolucoes #hubSolucaoDetalheVazio,
#viewHubSolucoes #hubSolucaoDetalheConteudo {
  flex: 1;
  max-height: calc(var(--viewport-height) - 12rem);
  min-height: 0;
  overflow-y: auto;
  padding-right: 0.25rem;
  overscroll-behavior: contain;
}

.hub-solucao-preview-head {
  display: grid;
  gap: 0.45rem;
}

.hub-solucao-kicker {
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hub-solucao-preview h3 {
  margin: 0;
  font-size: 1.45rem;
}

.hub-solucao-preview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.hub-solucao-preview-body {
  display: grid;
  gap: 0.4rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.hub-solucao-preview-conteudo-card {
  display: grid;
  gap: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 0.85rem 1rem;
}

.hub-solucao-preview-body .field-title {
  margin-bottom: 0;
}

.hub-solucao-preview-texto {
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.75;
}

.classificacao-prioridade-form {
  grid-template-columns: 1fr;
}

.prioridade-chamado-faixa-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.classificacao-prioridade-respostas-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.classificacao-prioridade-respostas-form {
  display: grid;
  gap: 0.85rem;
}

.classificacao-prioridade-resposta-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px auto;
  gap: 0.75rem;
  align-items: end;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
}

.classificacao-prioridade-resposta-row .form-actions {
  margin: 0;
}

.classificacao-prioridade-respostas-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.classificacao-prioridade-resposta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  background: rgba(37, 99, 235, 0.08);
  color: var(--ink);
  font-size: 0.85rem;
}

.classificacao-prioridade-resposta-score {
  font-weight: 700;
  color: var(--brand);
}

.chamado-classificacao-prioridade-bloco,
.chamado-classificacao-prioridade-lista {
  display: grid;
  gap: 0.85rem;
}

.chamado-classificacao-prioridade-card {
  display: grid;
  gap: 0.7rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
}

.chamado-classificacao-prioridade-card.is-required-missing {
  border-color: rgba(220, 38, 38, 0.32);
  background: rgba(254, 242, 242, 0.72);
  box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.08);
}

.chamado-classificacao-prioridade-titulo {
  font-family: "Sora", sans-serif;
  font-size: 0.95rem;
  color: var(--ink);
}

.chamado-classificacao-prioridade-card.is-required-missing .chamado-classificacao-prioridade-titulo {
  color: #b91c1c;
}

.chamado-classificacao-prioridade-opcoes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.chamado-classificacao-prioridade-opcao {
  position: relative;
  display: inline-flex;
}

.chamado-classificacao-prioridade-opcao input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chamado-classificacao-prioridade-opcao span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.5rem 0.9rem;
  border: 1px solid rgba(19, 41, 61, 0.14);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.chamado-classificacao-prioridade-opcao input:checked + span {
  border-color: rgba(0, 109, 119, 0.5);
  background: rgba(0, 109, 119, 0.12);
  transform: translateY(-1px);
}

.chamado-classificacao-prioridade-opcao input:focus-visible + span {
  outline: 2px solid rgba(0, 109, 119, 0.35);
  outline-offset: 2px;
}

.chamado-classificacao-prioridade-opcao input:disabled + span {
  opacity: 0.65;
  cursor: not-allowed;
}

@media (max-width: 720px) {
  .classificacao-prioridade-respostas-head {
    flex-direction: column;
    align-items: stretch;
  }

  .prioridade-chamado-faixa-grid {
    grid-template-columns: 1fr;
  }

  .classificacao-prioridade-resposta-row {
    grid-template-columns: 1fr;
  }
}

.hub-solucao-anexos-form,
.hub-solucao-senhas-form,
.hub-solucao-servicos-form,
.hub-solucao-preview-senhas-lista,
.hub-solucao-preview-anexos-lista {
  display: grid;
  gap: 0.65rem;
}

.hub-solucao-servico-adicao {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.6rem;
  align-items: end;
}

.hub-solucao-preview-anexos-lista {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hub-solucao-senha-row,
.hub-solucao-servico-item,
.hub-solucao-anexo-form-item,
.hub-solucao-preview-senha-item,
.hub-solucao-preview-anexo-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 0.75rem 0.85rem;
}

.hub-solucao-senha-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  align-items: end;
}

.hub-solucao-senha-row .form-actions {
  align-self: end;
}

.hub-solucao-servico-info {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.hub-solucao-servico-info strong,
.hub-solucao-servico-info small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hub-solucao-servico-info small {
  color: var(--muted);
}

.hub-solucao-anexo-form-info,
.hub-solucao-preview-senha-info,
.hub-solucao-preview-anexo-info {
  min-width: 0;
  display: grid;
  gap: 0.2rem;
  flex: 1;
}

.hub-solucao-preview-senha-info strong,
.hub-solucao-anexo-form-info strong,
.hub-solucao-preview-anexo-info strong {
  font-size: 0.94rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hub-solucao-preview-senha-info small,
.hub-solucao-anexo-form-info small,
.hub-solucao-preview-anexo-info small {
  color: var(--muted);
}

.hub-solucao-preview-anexo-link {
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
}

.hub-solucao-preview-anexo-link:hover,
.hub-solucao-preview-anexo-link:focus-visible {
  text-decoration: underline;
}

.hub-solucao-preview-senha-group {
  display: grid;
  gap: 0.45rem;
}

.hub-solucao-preview-senha-titulo {
  font-family: "Sora", sans-serif;
  font-size: 0.98rem;
}

.hub-solucao-preview-senha-credenciais {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.hub-solucao-preview-credencial-box {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
  padding: 0.52rem 0.6rem 0.52rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
}

.hub-solucao-preview-credencial-box-full {
  grid-column: 1 / -1;
}

.hub-solucao-preview-credencial-label {
  width: 82px;
  flex-shrink: 0;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.hub-solucao-preview-credencial-value {
  min-width: 0;
  flex: 1;
}

.hub-solucao-preview-credencial-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.hub-solucao-preview-credencial-input {
  width: 100%;
  border: none;
  padding: 0;
  background: transparent;
}

.hub-solucao-preview-credencial-input:focus {
  outline: none;
}

.hub-solucao-preview-credencial-link,
.hub-solucao-preview-credencial-vazio {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hub-solucao-preview-credencial-vazio {
  color: var(--muted);
}

.hub-solucao-preview-copy-btn,
.hub-solucao-preview-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  border: none;
  border-radius: 0.65rem;
  background: rgba(37, 99, 235, 0.08);
  color: var(--brand);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.hub-solucao-preview-copy-btn svg,
.hub-solucao-preview-toggle-btn svg {
  width: 1.05rem;
  height: 1.05rem;
  pointer-events: none;
}

.hub-solucao-preview-copy-btn:hover,
.hub-solucao-preview-copy-btn:focus-visible,
.hub-solucao-preview-toggle-btn:hover,
.hub-solucao-preview-toggle-btn:focus-visible {
  background: rgba(37, 99, 235, 0.16);
  color: var(--brand);
  outline: none;
}

.hub-solucao-preview-copy-btn:disabled,
.hub-solucao-preview-toggle-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.hub-solucao-preview-copy-btn[data-copy-state="copied"] {
  background: rgba(37, 99, 235, 0.18);
  color: var(--brand);
}

.hub-solucao-preview-toggle-btn[data-password-visible="true"] {
  background: rgba(37, 99, 235, 0.18);
  color: var(--brand);
}

.hub-solucao-preview-copy-btn[data-copy-state="error"] {
  background: rgba(254, 226, 226, 0.9);
  color: #dc2626;
}

.hub-solucao-anexo-form-descricao {
  margin-top: 0.25rem;
}

.hub-solucao-anexo-form-descricao input {
  margin-top: 0.25rem;
}

.hub-solucao-preview-contato,
.hub-solucao-preview-servicos,
.hub-solucao-preview-senhas,
.hub-solucao-preview-anexos {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.hub-solucao-preview-servicos,
.hub-solucao-preview-servicos-lista {
  display: grid;
  gap: 0.75rem;
}

.hub-solucao-preview-servicos-lista {
  grid-template-columns: 1fr;
}

.hub-solucao-preview-servico-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 0.75rem 0.85rem;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.hub-solucao-preview-servico-link:hover,
.hub-solucao-preview-servico-link:focus-visible {
  border-color: rgba(37, 99, 235, 0.34);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.1);
  transform: translateY(-1px);
  outline: none;
}

.hub-solucao-preview-servico-link:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.hub-solucao-preview-servico-open {
  flex-shrink: 0;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hub-solucao-preview-contato-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.hub-solucao-preview-contato-item {
  display: grid;
  gap: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 0.75rem 0.85rem;
}

.hub-solucao-preview-contato-nome {
  font-size: 0.96rem;
}

.hub-solucao-preview-contato-info {
  color: var(--muted);
}

.chamado-linha-ativo {
  border-color: rgba(0, 109, 119, 0.34);
  box-shadow: 0 16px 30px rgba(0, 109, 119, 0.12);
}

.chamado-linha-ativo::before {
  opacity: 1;
  background: linear-gradient(180deg, var(--brand), rgba(42, 157, 143, 0.65));
}

.chamado-linha-ativo .chamado-card-main {
  background: rgba(0, 109, 119, 0.06);
  border-radius: 18px;
}

.chamado-linha-ativo .chamado-card-numero,
.chamado-linha-ativo .chamado-card-titulo {
  color: #004f57;
}

@keyframes chamadoNovaInteracaoPiscar {
  0%,
  100% {
    background: rgba(255, 127, 80, 0.24);
  }
  50% {
    background: rgba(255, 127, 80, 0.04);
  }
}

.chamado-linha-nova-interacao {
  animation: chamadoNovaInteracaoPiscar 2s infinite;
  border-color: rgba(255, 127, 80, 0.28);
}

.chamado-linha-nova-interacao::before {
  background: linear-gradient(180deg, var(--brand-2), rgba(255, 127, 80, 0.4));
  opacity: 1;
}

.chamado-linha-nova-interacao .chamado-card-main {
  box-shadow: none;
}

.chamado-linha-nova-interacao .chamado-card-numero,
.chamado-linha-nova-interacao .chamado-card-titulo {
  color: #b65b33;
}

.list-panel .chamado-detalhe-head {
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
}

.list-panel .chamado-detalhe-head .list-controls {
  width: auto;
  margin-left: auto;
}

#chamadoDetalheConteudo {
  grid-template-columns: 1fr;
  margin-bottom: 0;
}

.chamado-detalhe-solicitacao-bloco textarea {
  background: #fff;
  min-height: 112px;
}

.chamado-acao-form {
  grid-template-columns: 1fr 1fr auto;
  margin-bottom: 0;
}

.chamado-acao-form .form-actions {
  align-self: end;
}

.chamado-interacao-imagem-bloco {
  display: grid;
  gap: 0.6rem;
  margin-top: 0.65rem;
}

.chamado-interacao-imagem-topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.chamado-interacao-imagem-preview {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: #f7fbfb;
  padding: 0.8rem;
}

.chamado-interacao-imagem-preview.has-image {
  align-items: flex-start;
  justify-content: flex-start;
  border-style: solid;
  background: #fff;
}

.chamado-interacao-imagem-vazia {
  color: var(--muted);
  text-align: center;
  font-size: 0.9rem;
}

.chamado-interacao-imagens-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

.chamado-interacao-imagem-figure {
  margin: 0;
  display: grid;
  gap: 0.45rem;
  align-content: start;
}

.chamado-interacao-imagem-remover {
  justify-self: end;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.chamado-interacao-arquivo-card,
.chamado-acao-card-arquivo-link {
  min-height: 126px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7fbfb;
  padding: 0.8rem;
}

.chamado-interacao-arquivo-card {
  display: grid;
  place-items: center;
}

.chamado-interacao-arquivo-badge,
.chamado-acao-card-arquivo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(11, 107, 107, 0.1);
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.chamado-interacao-imagem-preview-img {
  display: block;
  max-width: 100%;
  max-height: 260px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  object-fit: contain;
}

.chamado-interacao-imagem-legenda {
  color: var(--muted);
  font-size: 0.84rem;
  word-break: break-word;
}

.chamado-interacao-arquivo-tipo,
.chamado-acao-card-arquivo-tipo {
  color: var(--muted);
  font-size: 0.78rem;
  word-break: break-word;
}

.chamado-acoes-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
}

.chamado-acao-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 0.65rem 0.8rem;
  display: grid;
  gap: 0.2rem;
}

.chamado-acao-card-anexos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.7rem;
}

.chamado-acao-card-anexo {
  display: grid;
  gap: 0.35rem;
  align-content: start;
}

.chamado-acao-card-arquivo-link {
  display: grid;
  align-content: start;
  gap: 0.45rem;
  text-decoration: none;
  color: inherit;
}

.chamado-acao-card-arquivo-link:hover,
.chamado-acao-card-arquivo-link:focus-visible {
  border-color: var(--accent);
  outline: none;
}

.chamado-acao-card-data {
  font-size: 0.82rem;
  color: var(--muted);
}

.chamado-acao-card-descricao {
  font-weight: 600;
  white-space: pre-wrap;
  word-break: break-word;
}

.chamado-acao-card-autor {
  font-size: 0.86rem;
  color: var(--muted);
}

.chamado-acao-card-imagem-link {
  display: block;
  width: fit-content;
  max-width: 100%;
}

.chamado-acao-card-imagem {
  display: block;
  max-width: min(100%, 360px);
  max-height: 260px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  object-fit: contain;
}

.chamado-acao-card-anexo-nome {
  font-size: 0.82rem;
  color: var(--muted);
  word-break: break-word;
}

.servico-contratos-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.servico-contato-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 0.65rem 0.8rem;
  display: grid;
  gap: 0.3rem;
  min-width: 0;
}

.servico-contato-nome {
  font-weight: 700;
}

.servico-contato-info {
  color: var(--muted);
  font-size: 0.9rem;
}

.servico-contrato-titulo {
  font-weight: 700;
}

.servico-contrato-info {
  color: var(--muted);
  font-size: 0.9rem;
}

.servico-contrato-valor {
  font-size: 0.95rem;
  color: var(--ink);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.servico-contrato-anexo-linha {
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  min-width: 0;
}

.servico-contrato-anexo-linha .servico-contrato-info {
  min-width: 0;
  flex: 1 1 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.servico-contrato-anexo-link {
  min-width: 0;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.servico-preview-site-link {
  display: block;
  min-width: 0;
  max-width: 100%;
  color: var(--brand);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
}

.servico-preview-site-link:hover {
  text-decoration: underline;
}

.servico-preview-acesso-vazio {
  color: var(--muted);
  font-size: 0.9rem;
}

.servico-preview-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: rgba(37, 99, 235, 0.08);
  color: var(--brand);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.servico-preview-icon-btn svg {
  width: 0.95rem;
  height: 0.95rem;
  pointer-events: none;
}

.servico-preview-icon-btn:hover,
.servico-preview-icon-btn:focus-visible {
  background: rgba(37, 99, 235, 0.16);
  color: var(--brand);
  outline: none;
}

.servico-preview-icon-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.servico-preview-icon-btn[data-copy-state="copied"] {
  background: rgba(37, 99, 235, 0.18);
  color: var(--brand);
}

.servico-preview-password-toggle-btn[data-password-visible="true"] {
  background: rgba(37, 99, 235, 0.18);
  color: var(--brand);
}

.servico-preview-icon-btn[data-copy-state="error"] {
  background: rgba(255, 127, 80, 0.18);
  color: #dc2626;
}

.visual-servico-acesso-card {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
}

.visual-servico-acesso-card h3 {
  margin: 0;
  font-size: 1rem;
}

.visual-servico-acessos-lista {
  display: grid;
  gap: 0.75rem;
}

.visual-servico-acesso-item {
  display: grid;
  gap: 0.65rem;
  border: 1px solid rgba(19, 41, 61, 0.12);
  border-radius: 14px;
  background: #fff;
  padding: 0.8rem;
}

.visual-servico-acesso-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.visual-servico-acesso-row-site {
  grid-template-columns: minmax(0, 1fr);
}

.visual-servico-acesso-field {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.visual-servico-acesso-field > span {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}

.visual-servico-copy-field {
  position: relative;
}

.visual-servico-copy-field input {
  padding-right: 3rem;
}

.visual-servico-copy-field-has-toggle input {
  padding-right: 5.35rem;
}

.visual-servico-copy-field input:disabled {
  color: var(--ink);
  background: #fff;
}

.visual-servico-copy-btn,
.visual-servico-password-toggle-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 0.65rem;
  background: rgba(37, 99, 235, 0.08);
  color: var(--brand);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.visual-servico-copy-btn {
  right: 0.55rem;
}

.visual-servico-password-toggle-btn {
  right: 2.75rem;
}

.visual-servico-copy-btn svg,
.visual-servico-password-toggle-btn svg {
  width: 1rem;
  height: 1rem;
  pointer-events: none;
}

.visual-servico-copy-btn:hover,
.visual-servico-copy-btn:focus-visible,
.visual-servico-password-toggle-btn:hover,
.visual-servico-password-toggle-btn:focus-visible {
  background: rgba(37, 99, 235, 0.16);
  color: var(--brand);
  outline: none;
}

.visual-servico-copy-btn[data-copy-state="copied"] {
  background: rgba(37, 99, 235, 0.18);
  color: var(--brand);
}

.visual-servico-password-toggle-btn[data-password-visible="true"] {
  background: rgba(37, 99, 235, 0.18);
  color: var(--brand);
}

.visual-servico-copy-btn[data-copy-state="error"] {
  background: rgba(255, 127, 80, 0.18);
  color: #dc2626;
}

@media (max-width: 1180px) {
  .chamados-layout {
    grid-template-columns: minmax(260px, 30%) minmax(0, 1fr);
  }

  .primebot-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  #registrarManutencaoForm {
    grid-template-columns: 1fr;
  }

  #viewHubSolucoes {
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
  }

  .hub-solucao-preview-contato-card,
  .servico-contatos-cards,
  .servico-contratos-cards {
    grid-template-columns: 1fr;
  }

  .servicos-layout,
  .hub-solucoes-layout,
  .chamados-layout {
    grid-template-columns: 1fr;
  }

  .servicos-lista {
    max-height: none;
    overflow-y: visible;
    padding-right: 0;
  }

  #viewHubSolucoes .hub-solucoes-layout {
    min-height: 0;
    align-items: start;
  }

  #viewHubSolucoes .hub-solucoes-layout > .panel,
  #viewHubSolucoes #hubSolucaoDetalheVazio,
  #viewHubSolucoes #hubSolucaoDetalheConteudo,
  .hub-solucoes-lista {
    height: auto;
    min-height: 0;
    overflow: visible;
    padding-right: 0;
  }

  .chamados-lista-wrap {
    max-height: none;
    overflow-y: visible;
    padding-right: 0;
  }

  .primebot-panel {
    grid-column: auto;
    height: calc(var(--viewport-height) - 5.5rem);
  }

  .servico-detalhe-head {
    grid-template-columns: 1fr;
  }

  .servico-detalhe-head .list-controls {
    margin-left: 0;
  }

  .servico-preview-kpis {
    grid-template-columns: 1fr;
  }

  .servico-preview-fields {
    grid-template-columns: 1fr;
  }

  .servico-acesso-row {
    grid-template-columns: 1fr;
  }

  .servico-preview-field,
  .servico-preview-field-wide,
  .servico-preview-field-full {
    grid-column: auto;
  }

  .servico-preview-access-grid {
    grid-template-columns: 1fr;
  }

  .chamado-card-linha,
  .chamado-card-linha-meta {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .chamado-card-linha-topo {
    grid-template-columns: 1fr;
  }

  .chamado-card-data {
    justify-self: start;
    white-space: normal;
  }

  .chamado-card-meta-campos {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chamado-card-meta-item,
  .chamado-card-meta-resolvedor {
    min-width: 0;
  }

  .chamado-card-actions {
    justify-content: flex-start;
  }

  .hub-solucao-anexo-form-item,
  .hub-solucao-servico-item,
  .hub-solucao-preview-senha-item,
  .hub-solucao-preview-anexo-item {
    flex-direction: column;
    align-items: stretch;
  }

  .hub-solucao-servico-adicao {
    grid-template-columns: 1fr;
  }

  .hub-solucao-senha-row {
    grid-template-columns: 1fr;
  }

  .hub-solucao-preview-senha-credenciais {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .hub-solucao-preview-anexos-lista {
    grid-template-columns: 1fr;
  }

  .hub-solucao-preview-credencial-box {
    width: 100%;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .hub-solucao-preview-credencial-label {
    width: 100%;
  }

  .hub-solucao-preview-copy-btn {
    margin-left: auto;
  }

  .chamado-acao-form {
    grid-template-columns: 1fr;
  }

  .visual-servico-acesso-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
}

#viewCategorias table th:last-child,
#viewCategorias table td:last-child {
  text-align: right;
}

#viewCategorias .row-actions {
  justify-content: flex-end;
}

.empty {
  text-align: center;
  color: var(--muted);
}

.perfil-acesso-permissoes {
  display: grid;
  gap: 0.9rem;
}

.perfil-acesso-grupo {
  display: grid;
  gap: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 0.75rem;
}

.perfil-acesso-grupo-head strong {
  font-size: 0.95rem;
}

.perfil-acesso-table-wrap {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.perfil-acesso-table {
  min-width: 720px;
}

.perfil-acesso-table th,
.perfil-acesso-table td {
  text-align: center;
  vertical-align: middle;
}

.perfil-acesso-table th:first-child,
.perfil-acesso-table td:first-child {
  text-align: left;
  min-width: 220px;
}

.perfil-acesso-head-cell {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.28rem;
}

.perfil-acesso-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.perfil-acesso-check-master {
  min-height: 1rem;
}

.perfil-acesso-check input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.perfil-acesso-na {
  color: var(--muted);
}

.perfil-acesso-fixo {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.perfil-acesso-nome-cell {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.perfil-acesso-default-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
}

#viewPerfisAcesso select[data-usuario-perfil] {
  min-width: 180px;
}

#viewPerfisAcesso > .perfis-acesso-panel > .table-wrap th {
  white-space: nowrap;
}

#viewUsuariosPortal .perfis-acesso-usuarios-panel {
  padding: 0.85rem;
}

#viewUsuariosPortal .list-head {
  align-items: center;
  margin-bottom: 0.35rem;
}

#viewUsuariosPortal .list-head h2 {
  margin: 0;
  font-size: 1.08rem;
}

#viewUsuariosPortal .perfis-acesso-texto {
  margin-bottom: 0.65rem;
  font-size: 0.86rem;
}

#viewUsuariosPortal .list-controls {
  margin-bottom: 0.65rem;
}

#viewUsuariosPortal .usuario-portal-filter-field {
  min-width: 220px;
  max-width: 280px;
}

#viewUsuariosPortal .usuario-portal-filter-field select {
  min-width: 220px;
}

#viewUsuariosPortal table {
  min-width: 760px;
  table-layout: fixed;
}

#viewUsuariosPortal table th,
#viewUsuariosPortal table td {
  padding: 0.45rem 0.65rem;
  white-space: nowrap;
  vertical-align: middle;
}

#viewUsuariosPortal table th:nth-child(1),
#viewUsuariosPortal table td:nth-child(1) {
  width: 30ch;
  max-width: 30ch;
}

#viewUsuariosPortal table th:nth-child(2),
#viewUsuariosPortal table td:nth-child(2) {
  width: 200px;
  max-width: 200px;
}

#viewUsuariosPortal table th:nth-child(3),
#viewUsuariosPortal table td:nth-child(3) {
  width: 200px;
  max-width: 200px;
}

#viewUsuariosPortal table th:nth-child(4),
#viewUsuariosPortal table td:nth-child(4) {
  width: 200px;
  max-width: 200px;
}

#viewUsuariosPortal table th.usuario-portal-status-col,
#viewUsuariosPortal table td.usuario-portal-status-col,
#viewUsuariosPortal table th.usuario-portal-acoes-col,
#viewUsuariosPortal table td.usuario-portal-acoes-col {
  width: 60px;
  max-width: 60px;
  text-align: center;
}

#viewUsuariosPortal table td.usuario-portal-status-col,
#viewUsuariosPortal table td.usuario-portal-acoes-col {
  overflow: visible;
  text-overflow: clip;
}

#viewUsuariosPortal table td {
  overflow: hidden;
  text-overflow: ellipsis;
}

.usuario-portal-link {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--brand);
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.usuario-portal-link:hover,
.usuario-portal-link:focus-visible {
  text-decoration: underline;
}

#viewUsuariosPortal table th:last-child,
#viewUsuariosPortal table td:last-child {
  text-align: right;
}

#viewUsuariosPortal .row-actions {
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 0.35rem;
}

#viewUsuariosPortal .usuario-portal-acoes-col .row-actions {
  justify-content: center;
}

.usuario-portal-action-icon {
  width: 1.65rem;
  height: 1.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.usuario-portal-action-icon svg {
  width: 0.98rem;
  height: 0.98rem;
  pointer-events: none;
}

.usuario-portal-action-icon-block {
  color: #9b4a23;
}

.usuario-portal-action-icon-unblock {
  color: var(--brand);
}

.usuario-portal-action-icon-inactivate {
  color: #3b4046;
}

#usuarioPortalPerfil {
  min-width: 220px;
}

.usuario-portal-form-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.bg-orb {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(28px);
}

.bg-orb-a {
  width: 280px;
  height: 280px;
  top: -70px;
  left: -80px;
  background: rgba(0, 109, 119, 0.25);
  animation: floatA 13s ease-in-out infinite;
}

.bg-orb-b {
  width: 360px;
  height: 360px;
  right: -100px;
  bottom: -120px;
  background: rgba(255, 127, 80, 0.22);
  animation: floatB 15s ease-in-out infinite;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.modal.is-hidden {
  display: none;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(19, 41, 61, 0.45);
}

.modal-content {
  position: relative;
  width: min(920px, 100%);
  max-height: calc(100vh - 2rem);
  overflow: auto;
}

.modal-content-wide {
  width: min(1100px, 100%);
}

.modal-content-medium {
  width: min(680px, 100%);
}

.modal-content-compact {
  width: min(480px, 100%);
}

.modal-content h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.usuario-portal-aprovacao-resumo {
  display: grid;
  gap: 0.2rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
}

#menuAcoesPrincipal .submenu {
  left: auto;
  right: 0;
  min-width: 250px;
}

@keyframes floatA {
  0% { transform: translate(0, 0); }
  50% { transform: translate(12px, 12px); }
  100% { transform: translate(0, 0); }
}

@keyframes floatB {
  0% { transform: translate(0, 0); }
  50% { transform: translate(-10px, -14px); }
  100% { transform: translate(0, 0); }
}

@media (max-width: 980px) {
  .app-header .container {
    width: calc(100% - 1rem);
  }

  .top-menu {
    border-radius: 12px;
  }

  .menu-btn {
    flex: 0 1 auto;
    text-align: left;
    border-radius: 8px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .equipamento-aquisicao-row,
  .equipamento-fornecedor-row,
  .equipamento-identificacao-row {
    grid-template-columns: 1fr;
  }

  .list-head {
    flex-direction: column;
  }

  .list-controls {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  #viewUsuariosPortal .usuario-portal-filter-field,
  #viewUsuariosPortal .usuario-portal-filter-field select {
    width: 100%;
    max-width: none;
  }

  .filtros {
    width: 100%;
    flex-direction: column;
  }

  #viewEquipamentos .equipamentos-filtros-selects {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    margin-left: 0;
  }

  #viewEquipamentos .filtros input,
  #viewEquipamentos .filtros select {
    width: 100%;
    max-width: none;
  }

  .cadastro-form {
    grid-template-columns: 1fr;
  }

  #associarEquipamentoFuncionarioForm .ae-busca-usuario,
  #associarEquipamentoFuncionarioForm .ae-data-fim,
  #associarEquipamentoFuncionarioForm .ae-data-inicio,
  #associarEquipamentoFuncionarioForm .ae-equipamento,
  #associarEquipamentoFuncionarioForm .ae-local {
    grid-column: auto;
  }

  #usuarioPortalForm {
    grid-template-columns: 1fr;
  }

  #usuarioPortalForm .usuario-portal-field-span-2,
  #usuarioPortalForm .usuario-portal-field-full {
    grid-column: auto;
  }

  #empresaForm .empresa-cnpj-linha,
  #fornecedorForm .empresa-cnpj-linha {
    grid-template-columns: 1fr;
  }

  #empresaForm .empresa-contato-linha,
  #fornecedorForm .empresa-contato-linha,
  #modalVisualizarFornecedor .empresa-contato-linha {
    grid-template-columns: 1fr;
  }

  #empresaForm .empresa-receita-grid,
  #fornecedorForm .empresa-receita-grid,
  #modalVisualizarFornecedor .empresa-receita-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 620px) {
  th,
  td {
    font-size: 0.86rem;
  }

  .chamado-card-main {
    padding: 0.72rem;
  }

  .chamado-card-meta-campos {
    grid-template-columns: 1fr;
  }

  .chamados-layout .chamado-card-meta-campos {
    grid-template-columns: 1fr;
  }

  .chamados-layout .chamado-card-meta-resolvedor {
    grid-column: auto;
  }

}

/* Magic Patterns layout refresh: operational SaaS shell */
:root {
  --bg: #f8fafc;
  --ink: #0f172a;
  --brand: #2563eb;
  --brand-2: #0f766e;
  --panel: #ffffff;
  --line: #e2e8f0;
  --ok: #16a34a;
  --warn: #d97706;
  --muted: #64748b;
  --danger: #dc2626;
  --soft: #f1f5f9;
  --shell-sidebar-expanded-width: 264px;
  --shell-sidebar-responsive-width: min(92vw, 420px);
  --shell-sidebar-width: var(--shell-sidebar-expanded-width);
  --shell-content-max-width: 1200px;
  --shell-menu-button-size: 2.5rem;
}

body.app-sidebar-collapsed {
  --shell-sidebar-width: 0px;
}

body.app-sidebar-hidden {
  --shell-sidebar-width: 0px;
  --shell-page-pad-left: var(--shell-page-pad-right);
}

body {
  --shell-page-pad-right: max(1rem, calc((100vw - var(--shell-content-max-width)) / 2));
  --shell-page-pad-left: max(4.75rem, calc((100vw - var(--shell-content-max-width)) / 2));
  overflow-x: hidden;
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 39;
  background: rgba(15, 23, 42, 0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

body:not(.app-sidebar-collapsed)::before {
  opacity: 1;
  pointer-events: auto;
}

body.app-sidebar-fixed::before {
  opacity: 0;
  pointer-events: none;
}

body.app-sidebar-hidden::before {
  opacity: 0;
  pointer-events: none;
}

body.app-loading-splash-active {
  overflow: hidden;
}

.bg-orb {
  display: none;
}

.is-hidden {
  display: none !important;
}

.app-loading-splash {
  position: fixed;
  inset: 0;
  z-index: 360;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background:
    radial-gradient(circle at 18% 20%, rgba(37, 99, 235, 0.12), transparent 28%),
    radial-gradient(circle at 82% 78%, rgba(59, 130, 246, 0.10), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.98));
  opacity: 1;
  visibility: visible;
  transition: opacity 0.36s ease, visibility 0.36s ease;
}

.app-loading-splash.is-leaving {
  opacity: 0;
  visibility: hidden;
}

.app-loading-splash-inner {
  width: min(34rem, calc(100vw - 2rem));
  display: grid;
  justify-items: center;
  gap: 0.85rem;
  text-align: center;
}

.app-loading-splash-art-shell {
  width: min(31rem, 82vw);
  display: grid;
  place-items: center;
  filter: drop-shadow(0 26px 44px rgba(37, 99, 235, 0.12));
}

.app-loading-splash-art {
  display: block;
  width: 100%;
  max-height: 42vh;
  object-fit: contain;
  animation: appLoadingSplashFloat 3.6s ease-in-out infinite, appLoadingSplashGlow 1.9s ease-in-out infinite;
  transform-origin: center;
}

.app-loading-splash-title {
  color: #0f172a;
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.08rem);
  font-weight: 800;
}

.app-loading-splash-message {
  max-width: 28rem;
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.4;
}

.app-loading-splash-dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.34rem;
}

.app-loading-splash-dots span {
  width: 0.46rem;
  height: 0.46rem;
  border-radius: 999px;
  background: #2563eb;
  animation: appLoadingSplashBounce 1s ease-in-out infinite;
}

.app-loading-splash-dots span:nth-child(2) {
  animation-delay: 0.14s;
}

.app-loading-splash-dots span:nth-child(3) {
  animation-delay: 0.28s;
}

@keyframes appLoadingSplashFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-0.35rem);
  }
}

@keyframes appLoadingSplashGlow {
  0%,
  100% {
    opacity: 0.96;
  }

  50% {
    opacity: 1;
  }
}

@keyframes appLoadingSplashBounce {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.35;
  }

  40% {
    transform: translateY(-0.22rem);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-loading-splash,
  .app-loading-splash-art,
  .app-loading-splash-dots span {
    animation: none !important;
    transition: none !important;
  }
}

h1,
h2,
h3,
strong {
  font-family: inherit;
  letter-spacing: 0;
}

.container {
  width: min(1200px, calc(100% - 2rem));
}

.app-header {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 40;
  width: 0;
  height: 0;
  overflow: visible;
  border: 0;
  background: transparent;
}

.app-header .container,
.header-inner {
  width: 0;
  height: 0;
  padding: 0;
  overflow: visible;
}

.top-menu {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 41;
  height: 100vh;
  width: max-content;
  min-width: var(--shell-sidebar-expanded-width);
  max-width: var(--shell-sidebar-responsive-width);
  flex-direction: column;
  flex-wrap: nowrap;
  align-content: start;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.25rem;
  overflow-y: auto;
  border: 0;
  border-radius: 0;
  background: #fff;
  padding: 0.85rem 0.75rem;
  box-shadow: 18px 0 40px rgba(15, 23, 42, 0.16);
  transition: transform 0.22s ease, padding 0.22s ease;
  transform: translateX(0);
}

body.app-sidebar-collapsed .top-menu {
  transform: translateX(calc(-100% - 1rem));
}

body.app-sidebar-hidden .top-menu,
body.app-sidebar-hidden .menu-collapse-btn {
  display: none !important;
}

.top-menu::before {
  content: "Prime You TI";
  display: flex;
  align-items: center;
  min-height: 3rem;
  margin: 0 0 0.65rem;
  padding: 0 2.55rem 0 2.55rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 800;
  white-space: nowrap;
}

.top-menu::after {
  content: "";
  position: absolute;
  top: 1.35rem;
  left: 1.38rem;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 0.45rem;
  background: var(--brand);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26);
  transition: left 0.22s ease, transform 0.22s ease;
}

.menu-collapse-btn {
  position: fixed;
  top: 0.7rem;
  left: calc(var(--shell-sidebar-expanded-width) - var(--shell-menu-button-size) - 0.85rem);
  z-index: 42;
  width: var(--shell-menu-button-size);
  height: var(--shell-menu-button-size);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dbe3ef;
  border-radius: 999px;
  background: #fff;
  color: #64748b;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16);
  transition: left 0.22s ease, transform 0.22s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.menu-collapse-btn:hover,
.menu-collapse-btn:focus-visible {
  background: #f8fafc;
  color: #1d4ed8;
  border-color: #9fc0ff;
  outline: none;
}

.menu-collapse-btn::before {
  content: "";
  width: 0.52rem;
  height: 0.52rem;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.22s ease;
}

.menu-group {
  width: 100%;
}

.menu-btn {
  width: 100%;
  min-height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border-radius: 0.45rem;
  color: #475569;
  padding: 0.5rem 0.75rem;
  font-size: 0.88rem;
  font-weight: 650;
  text-align: left;
  box-shadow: none;
  gap: 0.68rem;
  transition: background-color 0.18s ease, color 0.18s ease, padding 0.22s ease, justify-content 0.22s ease;
}

.menu-btn-icon {
  width: 1.08rem;
  height: 1.08rem;
  display: inline-flex;
  flex: 0 0 1.08rem;
  align-items: center;
  justify-content: center;
  color: currentColor;
}

.menu-btn-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-btn-image-icon {
  object-fit: contain;
}

.menu-btn-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.submenu-parent-btn::after {
  flex: 0 0 auto;
  margin-left: auto;
  float: none;
}

.menu-btn:hover,
.menu-btn:focus-visible {
  transform: none;
  color: var(--ink);
  background: var(--soft);
  box-shadow: none;
}

.menu-btn.active,
.menu-btn.active:hover,
.menu-btn.active:focus-visible {
  color: #1d4ed8;
  background: #eff6ff;
  box-shadow: inset 3px 0 0 var(--brand);
}

.submenu,
.submenu-nested {
  position: static;
  width: max-content;
  min-width: calc(var(--shell-sidebar-expanded-width) - 1.5rem);
  max-width: calc(var(--shell-sidebar-responsive-width) - 1.5rem);
  margin: 0.2rem 0 0.35rem;
  padding: 0.2rem 0 0.2rem 0.6rem;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.submenu-btn {
  width: 100%;
  min-width: max-content;
  max-width: none;
  min-height: 2rem;
  border-radius: 0.4rem;
  padding: 0.42rem 0.65rem;
  color: #64748b;
  font-size: 0.82rem;
  white-space: nowrap;
}

.submenu-btn .menu-btn-icon {
  width: 1rem;
  height: 1rem;
  flex-basis: 1rem;
}

.submenu .menu-btn-label,
.submenu-nested .menu-btn-label {
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

body.app-sidebar-collapsed .top-menu {
  align-items: stretch;
  padding: 0.85rem 0.75rem;
}

body.app-sidebar-collapsed .menu-collapse-btn {
  left: 1rem;
  transform: none;
}

body.app-sidebar-collapsed .menu-collapse-btn::before {
  transform: rotate(-135deg);
}

.submenu .menu-btn:hover,
.submenu .menu-btn:focus-visible,
.submenu-nested .menu-btn:hover,
.submenu-nested .menu-btn:focus-visible {
  color: var(--ink);
  background: var(--soft);
  box-shadow: none;
}

#menuAcoesPrincipal .submenu {
  right: auto;
  min-width: 0;
}

.auth-user-menu {
  position: relative;
  top: auto;
  right: auto;
  transform: none;
  width: 100%;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.auth-user-avatar {
  width: 100%;
  height: 2.4rem;
  justify-content: flex-start;
  border-radius: 0.5rem;
  background: #f8fafc;
  color: var(--brand);
  padding: 0 0.8rem;
  font-size: 0.82rem;
  box-shadow: inset 0 0 0 1px var(--line);
}

.auth-user-avatar::after {
  content: "Usuario";
  margin-left: 0.65rem;
  color: var(--ink);
  font-family: "Inter", sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0;
}

.auth-user-avatar:hover,
.auth-user-avatar:focus-visible {
  background: #eff6ff;
  color: #1d4ed8;
}

.auth-user-panel {
  top: auto;
  right: auto;
  bottom: calc(100% + 0.5rem);
  left: 0;
  width: 100%;
  min-width: 0;
  border-color: var(--line);
  border-radius: 0.5rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}

.app-layout.container,
.app-layout.app-layout-chamados {
  width: min(var(--shell-content-max-width), calc(100% - 2rem));
  max-width: var(--shell-content-max-width);
  margin: 0 auto;
  padding: 4.7rem 0 1.6rem;
}

.app-layout {
  gap: 1rem;
}

.panel,
.usuario-portal-aprovacao-resumo {
  border-color: var(--line);
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.form-panel h2,
.list-panel h2,
.category-panel h2,
.licenca-panel h2,
.departamento-panel h2,
.centro-custo-panel h2,
.empresa-panel h2,
.fornecedor-panel h2 {
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 750;
}

input,
select,
textarea {
  border-color: #cbd5e1;
  border-radius: 0.45rem;
  color: var(--ink);
  font-family: inherit;
  box-shadow: 0 1px 1px rgba(15, 23, 42, 0.02);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.btn {
  min-height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.45rem;
  padding: 0.5rem 0.85rem;
  font-size: 0.86rem;
  font-weight: 700;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.btn-primary,
.btn-secondary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.18);
}

.btn-primary:hover,
.btn-primary:focus-visible,
.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: #1d4ed8;
  outline: none;
}

.btn-light {
  border: 1px solid var(--line);
  background: #fff;
  color: #334155;
}

.btn-light:hover,
.btn-light:focus-visible {
  background: #f8fafc;
  border-color: #cbd5e1;
  outline: none;
}

.list-head {
  align-items: center;
}

.list-panel .list-head {
  flex-direction: row;
  align-items: center;
}

.list-panel .list-controls {
  width: auto;
  margin-left: auto;
}

.list-panel .filtros {
  width: auto;
}

#viewEquipamentos .list-head {
  flex-direction: column;
  align-items: flex-start;
}

#viewEquipamentos {
  height: calc(var(--viewport-height) - 8rem);
  min-height: 0;
  max-height: calc(var(--viewport-height) - 8rem);
  overflow: hidden;
}

#viewEquipamentos > .panel {
  width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

#viewEquipamentos .list-controls {
  width: 100%;
  min-width: 0;
  margin-left: 0;
  align-items: flex-end;
  justify-content: flex-start;
  flex-wrap: wrap;
}

#viewEquipamentos .filtros {
  width: 100%;
  min-width: 0;
  flex: 1 1 100%;
  margin-left: 0;
  align-items: center;
  justify-content: space-between;
}

#viewEquipamentos .filtros input {
  flex: 0 1 420px;
  min-width: min(320px, 100%);
  text-align: left;
}

#viewEquipamentos .filtros input[type="search"]::placeholder {
  text-align: left;
}

#viewEquipamentos .equipamentos-filtros-selects {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  flex: 1 1 auto;
  min-width: 0;
  margin-left: auto;
}

#viewEquipamentos .filtros select {
  flex: 0 1 170px;
  min-width: 0;
}

#viewEquipamentos .table-wrap {
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: 100%;
  overflow: auto;
}

#viewEquipamentos thead th,
#viewEquipamentos thead .table-sort-btn {
  white-space: nowrap;
}

#viewServicos .servicos-layout {
  width: 100%;
  max-width: 100%;
}

#viewServicos .servicos-head {
  flex-direction: column;
  align-items: stretch;
}

#viewServicos .servicos-head .list-controls {
  width: 100%;
  min-width: 0;
  justify-content: flex-start;
  flex-wrap: wrap;
}

#viewServicos .hub-solucoes-search {
  width: 100%;
  min-width: 0;
}

#viewServicos .hub-solucoes-search input {
  width: 100%;
  min-width: 0;
}

#viewServicos .servico-detalhe-head {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

#viewServicos .servico-detalhe-head .list-controls {
  width: 100%;
  justify-content: flex-start;
  margin-left: 0;
}

#viewCategorias .category-panel,
#viewCategoriasChamados .category-panel,
#viewNiveisPrioridade .category-panel,
#viewDepartamentos .departamento-panel,
#viewCentrosCusto .centro-custo-panel,
#viewEmpresas .empresa-panel,
#viewFornecedores .fornecedor-panel,
#viewParametrosEmailAprovacaoAcesso > .panel {
  width: 100%;
  min-width: 0;
}

#viewCategorias .list-head,
#viewCategoriasChamados .list-head,
#viewNiveisPrioridade .list-head,
#viewDepartamentos .list-head,
#viewCentrosCusto .list-head,
#viewEmpresas .list-head,
#viewFornecedores .list-head,
#viewParametrosEmailAprovacaoAcesso .list-head {
  flex-direction: column;
  align-items: flex-start;
}

#viewCategorias .list-controls,
#viewCategoriasChamados .list-controls,
#viewNiveisPrioridade .list-controls,
#viewDepartamentos .list-controls,
#viewCentrosCusto .list-controls,
#viewEmpresas .list-controls,
#viewFornecedores .list-controls {
  width: 100%;
  min-width: 0;
  margin-left: 0;
  justify-content: flex-start;
  flex-wrap: wrap;
}

#viewCategoriasChamados .list-head {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

#viewCategoriasChamados .list-head .list-controls {
  width: auto;
  margin-left: auto;
  justify-content: flex-end;
}

#viewCategoriasChamados table th:last-child,
#viewCategoriasChamados table td:last-child {
  text-align: right;
}

#viewCategoriasChamados .row-actions {
  justify-content: flex-end;
}

#viewCategorias .table-wrap,
#viewCategoriasChamados .table-wrap,
#viewSubcategoriasChamados .table-wrap,
#viewNiveisPrioridade .table-wrap,
#viewDepartamentos .table-wrap,
#viewCentrosCusto .table-wrap,
#viewEmpresas .table-wrap,
#viewFornecedores .table-wrap {
  width: 100%;
}

#viewSubcategoriasChamados .subcategorias-shell {
  width: 100%;
  max-width: 100%;
}

#viewSubcategoriasChamados .subcategorias-panel {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dbe3ef;
  border-radius: 0.45rem;
  background: #fff;
  box-shadow: none;
}

#viewSubcategoriasChamados .subcategorias-head {
  min-height: 3.25rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem;
  border-bottom: 1px solid #edf1f7;
}

#viewSubcategoriasChamados .subcategorias-head h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 800;
}

#viewSubcategoriasChamados .subcategorias-head .list-controls {
  width: auto;
  margin-left: auto;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  flex-wrap: wrap;
}

#viewSubcategoriasChamados .subcategorias-filter-field {
  display: block;
  width: auto;
  min-width: 0;
}

#viewSubcategoriasChamados #filtroCategoriaSubcategoriasChamados {
  width: max-content;
  min-width: 8.75rem;
  max-width: min(18rem, 100%);
  min-height: 1.8rem;
  border-color: #bfdbfe;
  border-radius: 0.35rem;
  background-color: #eff6ff;
  color: #1d4ed8;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.28rem 2rem 0.28rem 0.65rem;
}

#viewSubcategoriasChamados #btnNovoSubcategoriaChamado {
  width: 1.8rem;
  min-width: 1.8rem;
  height: 1.8rem;
  min-height: 1.8rem;
  border-radius: 0.35rem;
  font-size: 1.25rem;
}

#viewSubcategoriasChamados .subcategorias-table-area {
  min-width: 0;
  padding: 0.75rem;
}

#viewSubcategoriasChamados .table-wrap {
  width: 100%;
  max-width: 100%;
  border: 1px solid #edf1f7;
  border-radius: 0.45rem;
  overflow: auto;
}

#viewSubcategoriasChamados table {
  min-width: 36rem;
}

#viewSubcategoriasChamados th {
  background: #f8fafc;
  color: #475569;
  font-size: 0.76rem;
  font-weight: 800;
}

#viewSubcategoriasChamados td {
  border-bottom-color: #edf1f7;
}

#viewSubcategoriasChamados table th:last-child,
#viewSubcategoriasChamados table td:last-child {
  text-align: right;
}

#viewSubcategoriasChamados tbody tr:hover td {
  background: #f8fafc;
}

#viewSubcategoriasChamados .row-actions {
  justify-content: flex-end;
}

#viewParametrosEmailAprovacaoAcesso #parametrosEmailAprovacaoAcessoForm {
  width: 100%;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
}

#viewParametrosEmailAprovacaoAcesso .parametro-section {
  min-width: 0;
}

#viewParametrosEmailAprovacaoAcesso .parametro-section label {
  max-width: none;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
}

table {
  background: #fff;
}

th,
td {
  border-bottom-color: #e2e8f0;
  padding: 0.72rem 0.75rem;
  color: #334155;
  font-size: 0.88rem;
}

th {
  background: #f8fafc;
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 750;
}

tr:hover td {
  background: #f8fafc;
}

.badge {
  border-radius: 999px;
  padding: 0.18rem 0.5rem;
  font-size: 0.73rem;
  font-weight: 750;
}

.modal-overlay {
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(2px);
}

.modal-content {
  border-radius: 0.65rem;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
}

/* Portal de chamados */
#viewChamados {
  min-height: calc(var(--viewport-height) - 2.4rem);
}

.chamados-layout {
  grid-template-columns: minmax(320px, 360px) minmax(420px, 1fr) minmax(320px, 360px);
  align-items: stretch;
  gap: 1rem;
  min-height: calc(var(--viewport-height) - 2.4rem);
}

.chamados-layout > .panel {
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

.chamados-layout .list-head {
  min-height: 3.65rem;
  margin: 0;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
}

.chamados-lista-wrap {
  flex: 1 1 auto;
  max-height: none;
  overflow: auto;
  padding: 0;
}

.chamados-cards-list {
  gap: 0;
}

.chamado-card-item {
  border: 0;
  border-bottom: 1px solid #e2e8f0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.chamado-card-item::before {
  width: 3px;
  background: transparent;
}

.chamado-card-item:hover,
.chamado-card-item:focus-within {
  transform: none;
  border-color: #e2e8f0;
  background: #f8fafc;
  box-shadow: none;
}

.chamado-card-item.chamado-linha-ativo {
  background: #eff6ff;
}

.chamado-card-item.chamado-linha-ativo::before {
  background: var(--brand);
  opacity: 1;
}

.chamado-card-item.chamado-linha-nova-interacao::after {
  content: "";
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.14);
}

.chamado-card-main {
  gap: 0.55rem;
  padding: 0.85rem 1rem;
}

.chamado-card-main:focus-visible {
  border-radius: 0;
  box-shadow: inset 0 0 0 2px rgba(37, 99, 235, 0.18);
}

.chamado-card-numero {
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #475569;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  padding: 0;
}

.chamado-card-titulo {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 750;
}

.chamado-card-data {
  min-height: 1.35rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 0.7rem;
}

.chamado-card-solicitante,
.chamado-card-meta-item {
  border-color: #e2e8f0;
  border-radius: 0.45rem;
  background: #f8fafc;
}

.chamado-card-solicitante {
  font-size: 0.78rem;
}

.chamado-card-meta-campos,
.chamados-layout .chamado-card-meta-campos {
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.chamado-card-meta-resolvedor,
.chamados-layout .chamado-card-meta-resolvedor {
  grid-column: 1 / -1;
}

.chamado-inline-select {
  min-height: 1.75rem;
  border-color: #cbd5e1;
  border-radius: 0.4rem;
  color: #334155;
  font-size: 0.73rem;
}

.chamado-action-icon,
.icon-btn {
  border-radius: 0.45rem;
}

#chamadoDetalheVazio:not(.is-hidden) {
  flex: 1;
  min-height: 18rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-align: center;
}

#chamadoDetalheConteudo:not(.is-hidden) {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow: auto;
  margin: 0;
  padding: 1rem;
}

#chamadoDetalheInteracaoBloco {
  display: grid;
  gap: 0.65rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: #f8fafc;
}

.chamado-acoes-cards {
  display: grid;
  gap: 0.75rem;
}

.primebot-panel {
  height: auto;
  min-height: 0;
}

.primebot-head {
  background: #fff;
}

.primebot-contexto {
  margin: 0.85rem 1rem 0;
  border-color: #dbeafe;
  border-radius: 0.5rem;
  background: #eff6ff;
  color: #1d4ed8;
}

.primebot-mensagens {
  flex: 1 1 auto;
  margin: 0;
  padding: 1rem;
  background: #f8fafc;
}

.primebot-msg {
  border-color: #e2e8f0;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.primebot-msg-user {
  border-color: #dbeafe;
  border-top-right-radius: 0.25rem;
  background: var(--brand);
  color: #fff;
}

.primebot-msg-assistant {
  border-top-left-radius: 0.25rem;
}

.primebot-msg-system {
  background: #eef2ff;
  color: #3730a3;
}

.primebot-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 0.45rem;
  padding: 0.65rem 0.9rem;
  border-top: 1px solid var(--line);
  background: #fff;
}

.primebot-form textarea {
  min-height: 2.2rem;
  max-height: 8rem;
}

.primebot-form .btn {
  min-height: 2.2rem;
  align-self: stretch;
}

.primebot-panel .muted {
  min-height: 0;
  margin: 0;
  padding: 0 1rem 0.8rem;
}

@media (max-width: 1180px) {
  .chamados-layout {
    grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  }

  .primebot-panel {
    grid-column: 1 / -1;
    min-height: 420px;
  }
}

@media (max-width: 980px) {
  body {
    --shell-page-pad-left: 4rem;
    --shell-page-pad-right: 1rem;
  }

  .top-menu {
    min-width: min(320px, calc(100vw - 1rem));
    max-width: calc(100vw - 1rem);
  }

  .menu-collapse-btn {
    top: 0.75rem;
    left: 1rem;
  }

  .list-panel .list-head,
  .list-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .list-panel .list-controls {
    width: 100%;
    margin-left: 0;
  }
}

@media (min-width: 981px) {
  body.app-sidebar-fixed {
    --shell-page-pad-left: calc(var(--shell-sidebar-expanded-width) + 1rem);
  }

  body.app-sidebar-fixed .app-layout.container,
  body.app-sidebar-fixed .app-layout.app-layout-chamados {
    width: calc(100% - var(--shell-sidebar-expanded-width) - 2rem);
    max-width: none;
    margin: 0 1rem 0 calc(var(--shell-sidebar-expanded-width) + 1rem);
  }
}

@media (max-width: 700px) {
  .submenu,
  .submenu-nested,
  .submenu-btn {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .submenu-btn,
  .submenu .menu-btn-label,
  .submenu-nested .menu-btn-label {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  #viewServicos {
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
  }

  #viewServicos .servicos-layout,
  #viewServicos .servicos-layout > .panel,
  #viewServicos #servicoDetalheVazio,
  #viewServicos #servicoDetalheConteudo {
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  #viewEquipamentos {
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
  }

  #viewEquipamentos > .panel,
  #viewEquipamentos .table-wrap {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .chamados-layout {
    min-height: 0;
  }

  .chamados-layout > .panel {
    min-height: 340px;
  }

  .primebot-form {
    grid-template-columns: 1fr;
  }
}

/* Magic Patterns - Portal de Chamados específico */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.portal-chamados-shell {
  position: relative;
  width: min(1200px, 100%);
  height: calc(var(--viewport-height) - 2.3rem);
  min-height: 640px;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  overflow: hidden;
  color: #171717;
}

.portal-chamados-topbar {
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  border: 1px solid #e5e5e5;
  border-radius: 0.45rem;
  background: #fff;
  padding: 0 1rem;
}

.portal-chamados-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.portal-chamados-logo {
  width: 1.55rem;
  height: 1.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 0.25rem;
  background: #2563eb;
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.7rem;
  font-weight: 800;
}

.portal-chamados-breadcrumb {
  display: block;
  color: #737373;
  font-size: 0.78rem;
  font-weight: 500;
}

.portal-chamados-topbar h1 {
  margin: 0.12rem 0 0;
  color: #171717;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.15;
}

.portal-chamados-icon-btn {
  position: relative;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 0.45rem;
  background: #f5f5f5;
  cursor: pointer;
}

.portal-chamados-icon-btn::before {
  content: "";
  position: absolute;
  inset: 0.55rem 0.63rem;
  border: 1.8px solid #737373;
  border-top-width: 2.2px;
  border-radius: 999px 999px 0.3rem 0.3rem;
}

.portal-chamados-notification-dot {
  position: absolute;
  top: 0.52rem;
  right: 0.52rem;
  width: 0.42rem;
  height: 0.42rem;
  border: 1px solid #fff;
  border-radius: 999px;
  background: #ef4444;
}

.portal-chamados-shell .chamados-layout {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(320px, 360px) minmax(0, 1fr);
  gap: 0.65rem;
  align-items: stretch;
  margin-top: 1rem;
}

.portal-chamados-shell .chamados-layout > .panel {
  min-height: 0;
  border-color: #e5e5e5;
  border-radius: 0.45rem;
  background: #fff;
  box-shadow: none;
}

.chamados-list-panel {
  border-right: 0;
}

.portal-chamados-shell .chamados-list-head {
  min-height: auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem;
}

.chamados-list-head h2,
.chamados-detalhe-panel h2,
.primebot-title-block h2 {
  margin: 0;
  color: #171717;
  font-size: 1rem;
  font-weight: 700;
}

.chamados-panel-subtitle {
  display: block;
  margin-top: 0.2rem;
  color: #737373;
  font-size: 0.76rem;
  line-height: 1.35;
}

.portal-chamados-shell #btnNovoChamado {
  min-height: 1.95rem;
  gap: 0.35rem;
  padding: 0.36rem 0.72rem;
  font-size: 0.82rem;
}

.portal-chamados-shell #btnNovoChamado::before {
  content: "+";
  font-size: 1rem;
  line-height: 1;
}

.chamados-filterbar {
  display: grid;
  gap: 0.7rem;
  padding: 0 1rem 1rem;
  border-bottom: 1px solid #e5e5e5;
}

.chamados-search-field {
  position: relative;
  display: block;
}

.chamados-search-field::before {
  content: "";
  position: absolute;
  left: 0.7rem;
  top: 50%;
  width: 0.78rem;
  height: 0.78rem;
  transform: translateY(-50%);
  border: 1.7px solid #a3a3a3;
  border-radius: 999px;
  pointer-events: none;
}

.chamados-search-field::after {
  content: "";
  position: absolute;
  left: 1.32rem;
  top: calc(50% + 0.27rem);
  width: 0.38rem;
  height: 1.7px;
  transform: rotate(45deg);
  border-radius: 999px;
  background: #a3a3a3;
  pointer-events: none;
}

.chamados-search-field input {
  width: 100%;
  min-height: 2.05rem;
  border-color: #e5e5e5;
  border-radius: 0.45rem;
  padding-left: 2.1rem;
  font-size: 0.84rem;
}

.chamados-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  overflow: visible;
  padding-bottom: 0.1rem;
}

.chamados-filter-chips select,
.chamados-status-filter-btn {
  min-height: 1.7rem;
  flex: 0 0 auto;
  width: max-content;
  max-width: 100%;
  border: 1px solid transparent;
  border-radius: 0.4rem;
  background-color: #f5f5f5;
  color: #525252;
  padding: 0.22rem 0.55rem;
  font-size: 0.74rem;
  font-weight: 650;
}

.chamados-status-filter {
  position: relative;
  flex: 0 0 auto;
  max-width: 100%;
}

.chamados-status-filter-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0;
  justify-content: flex-start;
  position: relative;
  text-align: left;
  font: inherit;
  font-weight: 650;
  line-height: 1.15;
  padding-right: 1.35rem;
  background-color: #eff6ff;
  cursor: pointer;
  white-space: nowrap;
}

.chamados-status-filter-label {
  font-weight: inherit;
}

.chamados-status-filter-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0.48rem;
  width: 0.4rem;
  height: 0.4rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-62%) rotate(45deg);
  transform-origin: center;
  pointer-events: none;
}

.chamados-status-filter.is-open .chamados-status-filter-btn::after {
  transform: translateY(-38%) rotate(-135deg);
}

.chamados-status-filter.is-open {
  z-index: 25;
}

.chamados-status-filter-menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  min-width: 13.5rem;
  max-width: min(18rem, calc(100vw - 2rem));
  padding: 0.4rem;
  border: 1px solid #dbe3ef;
  border-radius: 0.55rem;
  background: #eff6ff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
  z-index: 26;
}

.chamados-status-filter-options {
  display: grid;
  gap: 0.2rem;
}

.chamados-status-filter-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  padding: 0.38rem 0.45rem;
  border-radius: 0.42rem;
  color: #374151;
  cursor: pointer;
}

.chamados-status-filter-option:hover {
  background: #dbeafe;
}

.chamados-status-filter-option input {
  flex: 0 0 auto;
  width: 0.82rem;
  height: 0.82rem;
  margin: 0;
  accent-color: #2563eb;
}

.chamados-status-filter-option span {
  min-width: 0;
  max-width: 100%;
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chamados-status-filter:not(.chamados-sort-filter):not(.chamados-prioridade-filter):not(.chamados-resolvedor-filter) .chamados-status-filter-menu {
  width: max-content;
  min-width: 0;
  max-width: min(18rem, calc(100vw - 2rem));
}

.chamados-prioridade-filter .chamados-status-filter-menu,
.chamados-resolvedor-filter .chamados-status-filter-menu {
  width: max-content;
  min-width: 14.5rem;
  max-width: min(24rem, calc(100vw - 2rem));
}

.chamados-status-filter:not(.chamados-sort-filter) .chamados-status-filter-option,
.chamados-prioridade-filter .chamados-status-filter-option,
.chamados-resolvedor-filter .chamados-status-filter-option {
  width: 100%;
  min-width: 0;
}

.chamados-status-filter:not(.chamados-sort-filter) .chamados-status-filter-option span,
.chamados-prioridade-filter .chamados-status-filter-option span,
.chamados-resolvedor-filter .chamados-status-filter-option span {
  flex: 1 1 auto;
  max-width: none;
  overflow: visible;
  text-overflow: clip;
}

.chamados-resolvedor-filter .chamados-status-filter-menu {
  width: max-content;
  max-width: min(24rem, calc(100vw - 2rem));
}

.chamados-resolvedor-filter .chamados-status-filter-option {
  width: max-content;
}

.chamados-resolvedor-filter .chamados-status-filter-option span {
  flex: 0 0 auto;
  max-width: none;
  overflow: visible;
  text-overflow: clip;
}

.chamados-status-filter-empty {
  display: block;
  padding: 0.4rem 0.45rem;
  color: #6b7280;
  font-size: 0.74rem;
}

.chamados-status-filter-btn.chamados-sort-filter-btn,
body.app-page-chamados .chamados-status-filter-btn.chamados-sort-filter-btn {
  justify-content: center;
  gap: 0;
  align-items: center;
  width: 2rem;
  min-width: 2rem;
  max-width: 2rem;
  padding-right: 0.48rem;
  padding-left: 0.48rem;
}

.chamados-status-filter-btn.chamados-sort-filter-btn::after {
  display: none;
}

.chamados-status-filter-btn.chamados-refresh-btn {
  justify-content: center;
  align-items: center;
  width: 2rem;
  min-width: 2rem;
  max-width: 2rem;
  min-height: 1.7rem;
  padding: 0.22rem 0.48rem;
}

body.app-page-chamados .chamados-status-filter-btn.chamados-refresh-btn {
  min-height: 1.55rem;
}

.chamados-status-filter-btn.chamados-refresh-btn::after {
  display: none;
}

.chamados-refresh-icon {
  display: block;
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
}

.chamados-refresh-btn.is-refreshing .chamados-refresh-icon {
  animation: chamados-refresh-spin 0.8s linear infinite;
}

.chamados-refresh-btn:disabled {
  cursor: wait;
  opacity: 0.65;
}

@keyframes chamados-refresh-spin {
  to {
    transform: rotate(360deg);
  }
}

.chamados-sort-icon {
  position: relative;
  width: 1.05rem;
  height: 1.05rem;
  display: inline-block;
  flex: 0 0 auto;
}

.chamados-sort-icon::before,
.chamados-sort-icon::after {
  content: "";
  position: absolute;
  top: 0.08rem;
  bottom: 0.08rem;
  width: 0.34rem;
  border-radius: 0.18rem;
  background: currentColor;
}

.chamados-sort-icon::before {
  left: 0.12rem;
  clip-path: polygon(50% 0, 100% 32%, 73% 32%, 73% 100%, 27% 100%, 27% 32%, 0 32%);
}

.chamados-sort-icon::after {
  right: 0.12rem;
  clip-path: polygon(27% 0, 73% 0, 73% 68%, 100% 68%, 50% 100%, 0 68%, 27% 68%);
}

.chamados-sort-filter-menu {
  left: auto;
  right: 0;
  width: max-content;
  min-width: 13.75rem;
}

.chamados-sort-option {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.42rem 0.5rem;
  border: 0;
  border-radius: 0.42rem;
  background: transparent;
  color: #374151;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.chamados-sort-option:hover,
.chamados-sort-option:focus-visible {
  background: #dbeafe;
  color: #1d4ed8;
  outline: none;
}

.chamados-sort-option.is-active {
  background: #2563eb;
  color: #fff;
}

.chamados-sort-option span {
  min-width: 0;
  overflow: hidden;
  font-size: 0.74rem;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chamados-filter-chips select,
.chamados-status-filter-btn {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
  cursor: pointer;
}

.portal-chamados-shell .chamados-lista-wrap {
  padding: 0.5rem;
}

.portal-chamados-shell .chamados-cards-list {
  display: grid;
  gap: 0.25rem;
}

.portal-chamados-shell .chamados-lista-more-wrap {
  display: flex;
  justify-content: center;
  padding: 0.75rem 0.25rem 0.45rem;
}

.portal-chamados-shell .chamados-lista-more-btn {
  min-height: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid #dbe3ef;
  border-radius: 999px;
  background: #ffffff;
  color: var(--brand);
  padding: 0.26rem 0.72rem;
  font: inherit;
  font-size: 0.7em;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06);
}

.portal-chamados-shell .chamados-lista-more-btn::after {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  display: inline-block;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transform-origin: center;
}

.portal-chamados-shell .chamados-lista-more-btn:hover {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.portal-chamados-shell .chamados-lista-more-btn:focus-visible {
  border-color: #bfdbfe;
  background: #eff6ff;
  outline: none;
}

.portal-chamados-shell .chamados-kanban-more-wrap {
  display: flex;
  justify-content: center;
  padding: 0.2rem 0 0.1rem;
}

.portal-chamados-shell .chamados-kanban-more-btn {
  font-size: 0.68rem;
}

.portal-chamados-shell .chamado-card-item {
  border: 1px solid transparent;
  border-radius: 0.45rem;
  background: #fff;
  transition: border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.portal-chamados-shell .chamado-card-item::before {
  top: 0.55rem;
  bottom: 0.55rem;
  width: 0.25rem;
  border-radius: 0 999px 999px 0;
}

.portal-chamados-shell .chamado-card-item:hover {
  border-color: #e5e5e5;
  background: #fafafa;
}

.portal-chamados-shell .chamado-card-item.chamado-linha-ativo {
  border-color: #bfdbfe;
  background: #eff6ff;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.08);
}

.portal-chamados-shell .chamado-card-item.chamado-linha-ativo::before {
  background: #2563eb;
}

.portal-chamados-shell .chamado-card-item.chamado-linha-nao-lido:not(.chamado-linha-ativo) {
  border-color: #f3d38b;
  background: #fffaf0;
  box-shadow: inset 3px 0 0 #f59e0b;
}

.portal-chamados-shell .chamado-card-item.chamado-linha-nao-lido:not(.chamado-linha-ativo)::before {
  background: #f59e0b;
}

.portal-chamados-shell .chamado-card-item.chamado-linha-nao-lido:not(.chamado-linha-ativo) .chamado-card-numero,
.portal-chamados-shell .chamado-card-item.chamado-linha-nao-lido:not(.chamado-linha-ativo) .chamado-card-titulo {
  color: #9a3412;
}

.portal-chamados-shell .chamado-card-main {
  padding: 0.75rem 0.85rem;
}

.portal-chamados-shell .chamado-card-linha-topo {
  gap: 0.5rem;
}

.portal-chamados-shell .chamado-card-numero {
  color: #737373;
  font-size: 0.72rem;
  font-weight: 500;
}

.portal-chamados-shell .chamado-card-titulo {
  color: #171717;
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.35;
}

.portal-chamados-shell .chamado-card-data {
  background: transparent;
  color: #a3a3a3;
  padding: 0;
  font-size: 0.68rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.portal-chamados-shell .chamado-card-solicitante {
  border: 0;
  background: transparent;
  color: #737373;
  padding: 0;
  font-size: 0.78rem;
}

.portal-chamados-shell .chamado-card-solicitante::before {
  display: none;
}

.portal-chamados-shell .chamado-card-meta-campos,
.portal-chamados-shell .chamados-layout .chamado-card-meta-campos {
  grid-template-columns: 1fr 1fr;
}

.portal-chamados-shell .chamado-card-meta-item {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.portal-chamados-shell .chamado-card-meta-label {
  display: none;
}

.portal-chamados-shell .chamado-inline-select {
  min-height: 1.6rem;
  border-color: #e5e5e5;
  border-radius: 0.38rem;
  background-color: #fff;
  color: #525252;
  font-size: 0.72rem;
}

.portal-chamados-shell .chamado-card-actions {
  align-self: center;
}

.chamados-detalhe-panel {
  overflow: hidden;
}

.chamado-detalhe-empty:not(.is-hidden) {
  height: 100%;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 2rem;
  color: #737373;
  text-align: center;
}

.chamado-detalhe-empty strong {
  color: #171717;
  font-size: 0.92rem;
}

.chamado-detalhe-empty span:last-child {
  max-width: 260px;
  font-size: 0.85rem;
  line-height: 1.45;
}

.chamado-detalhe-empty-icon {
  width: 3rem;
  height: 3rem;
  margin-bottom: 0.55rem;
  border-radius: 999px;
  background: #f5f5f5;
  position: relative;
}

.chamado-detalhe-empty-icon::before {
  content: "";
  position: absolute;
  inset: 0.9rem 0.75rem 1rem;
  border: 1.8px solid #a3a3a3;
  border-radius: 0.45rem;
}

.chamado-detalhe-conteudo:not(.is-hidden) {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.portal-chamados-shell #chamadoDetalheVazio.chamado-detalhe-empty:not(.is-hidden) {
  height: 100%;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 2rem;
  color: #737373;
  text-align: center;
}

.portal-chamados-shell #chamadoDetalheConteudo.chamado-detalhe-conteudo:not(.is-hidden) {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.chamado-detalhe-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
  flex: 0 0 auto;
  padding: 0.55rem 1rem 0.5rem;
  border-bottom: 1px solid #e5e5e5;
}

.portal-chamados-shell .chamado-detalhe-head {
  align-items: center;
  justify-content: stretch;
}

.chamado-detalhe-title-block {
  min-width: 0;
  display: grid;
  gap: 0.02rem;
}

.chamado-detalhe-title-block label,
.chamado-detalhe-meta label {
  display: grid;
  gap: 0.35rem;
  color: #a3a3a3;
  font-size: 0.75rem;
  font-weight: 650;
}

#chamadoDetalheProtocolo,
#chamadoDetalheTitulo,
#chamadoDetalheSolicitante,
#chamadoDetalheDescricao {
  width: 100%;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  color: #171717;
  padding: 0;
}

#chamadoDetalheProtocolo {
  color: #737373;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
}

#chamadoDetalheTitulo {
  font-size: 1.24rem;
  font-weight: 750;
}

.chamado-detalhe-actions {
  flex-wrap: nowrap;
}

.portal-chamados-shell .chamado-detalhe-head .chamado-detalhe-actions {
  width: auto;
  margin-left: 0;
}

.chamado-detalhe-actions .btn {
  min-height: 1.9rem;
  padding: 0.34rem 0.65rem;
  font-size: 0.76rem;
}

.chamado-detalhe-meta {
  display: grid;
  gap: 0.75rem;
  flex: 0 0 auto;
  padding: 0.9rem 1.5rem;
  border-bottom: 1px solid #f5f5f5;
  background: #fafafa;
}

#chamadoDetalheDescricao {
  min-height: 4.25rem;
  color: #525252;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.chamado-detalhe-composer {
  flex: 0 0 auto;
  margin: 1rem 1.5rem;
  border: 1px solid #e5e5e5;
  border-radius: 0.45rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.portal-chamados-shell #chamadoDetalheInteracaoBloco.chamado-detalhe-composer {
  display: grid;
  gap: 0;
  flex: 0 0 auto;
  margin: 1rem 1.5rem;
  padding: 0;
  border: 1px solid #e5e5e5;
  border-radius: 0.45rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.chamado-detalhe-composer .field-title {
  padding: 0.85rem 0.85rem 0;
  color: #525252;
  font-size: 0.82rem;
  font-weight: 700;
}

.chamado-detalhe-composer #chamadoNovaAcaoDescricao {
  min-height: 5.6rem;
  border: 0;
  border-radius: 0;
  padding: 0.85rem;
  box-shadow: none;
}

.chamado-interacao-campo-linha {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: start;
}

.chamado-interacao-anexo-acoes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.chamado-interacao-anexo-btn {
  width: 2.75rem;
  min-width: 2.75rem;
  height: 2.75rem;
  min-height: 2.75rem;
  align-self: start;
  justify-content: center;
  padding: 0;
}

.chamado-interacao-anexo-btn svg {
  width: 1rem;
  height: 1rem;
  display: block;
}

.chamado-detalhe-composer .chamado-interacao-imagem-bloco {
  border: 0;
  border-top: 1px solid #f5f5f5;
  border-radius: 0;
  background: #fafafa;
}

.chamado-detalhe-composer .form-actions {
  justify-content: flex-end;
  padding: 0 0.85rem 0.85rem;
}

.chamado-timeline-section {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 0 1.5rem 1.5rem;
  background: #fafafa;
}

.chamado-timeline-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 0.9rem;
}

.chamado-timeline-head h3 {
  margin: 0;
  color: #171717;
  font-size: 0.9rem;
  font-weight: 750;
}

.chamado-timeline-head span {
  color: #737373;
  font-size: 0.75rem;
}

.chamado-timeline-section .chamado-acoes-cards {
  position: relative;
  display: grid;
  gap: 1rem;
  padding-left: 1.55rem;
}

.chamado-timeline-section .chamado-acoes-cards::before {
  content: "";
  position: absolute;
  top: 0.2rem;
  bottom: 0.2rem;
  left: 0.42rem;
  width: 2px;
  background: #e5e5e5;
}

.chamado-timeline-section .chamado-acao-card {
  position: relative;
  border-color: #e5e5e5;
  border-radius: 0.45rem;
  background: #fff;
  padding: 0.9rem 1rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.chamado-timeline-section .chamado-acao-card::before {
  content: "";
  position: absolute;
  top: 1rem;
  left: -1.42rem;
  width: 0.62rem;
  height: 0.62rem;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #2563eb;
  box-shadow: 0 0 0 1px #bfdbfe;
}

.chamado-timeline-section .chamado-acao-card-data {
  color: #a3a3a3;
  font-size: 0.72rem;
}

.chamado-timeline-section .chamado-acao-card-descricao {
  color: #404040;
  font-size: 0.88rem;
  line-height: 1.5;
}

.chamado-timeline-section .chamado-acao-card-autor {
  color: #737373;
  font-size: 0.76rem;
}

.primebot-floating {
  position: fixed;
  right: 0.85rem;
  bottom: 1.5rem;
  z-index: 60;
}

.primebot-floating .primebot-panel {
  width: 600px;
  height: min(800px, calc(var(--viewport-height) - 7rem));
  max-height: min(800px, calc(var(--viewport-height) - 7rem));
  border-color: #e5e5e5;
  border-radius: 0.5rem;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
}

.primebot-floating.is-collapsed .primebot-panel {
  display: none;
}

.primebot-floating:not(.is-collapsed) .primebot-launcher {
  display: none;
}

.primebot-launcher {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.primebot-launcher-context {
  max-width: 180px;
  border: 1px solid #e5e5e5;
  border-radius: 999px;
  background: #fff;
  color: #525252;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.42rem 0.75rem;
}

.primebot-launcher-bubble {
  position: relative;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 999px;
  background: #7c3aed;
  box-shadow: 0 14px 28px rgba(124, 58, 237, 0.32);
}

.primebot-launcher-bubble::before {
  content: "";
  position: absolute;
  inset: 1rem 0.85rem 1.1rem;
  border: 2px solid #fff;
  border-radius: 999px 999px 999px 0.35rem;
}

.primebot-launcher-bubble::after {
  content: "";
  position: absolute;
  right: 0.34rem;
  bottom: 0.34rem;
  width: 0.78rem;
  height: 0.78rem;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #10b981;
}

.primebot-title-block {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.primebot-title-block span {
  color: #737373;
  font-size: 0.68rem;
}

.primebot-avatar {
  position: relative;
  width: 2rem;
  height: 2rem;
  border-radius: 0.45rem;
  background: #f5f3ff;
}

.primebot-avatar::before {
  content: "";
  position: absolute;
  inset: 0.58rem 0.48rem 0.62rem;
  border: 1.8px solid #7c3aed;
  border-radius: 0.35rem;
}

.primebot-avatar::after {
  content: "";
  position: absolute;
  right: -0.05rem;
  bottom: -0.05rem;
  width: 0.55rem;
  height: 0.55rem;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #10b981;
}

.primebot-icon-btn {
  width: 1.8rem;
  height: 1.8rem;
  border: 0;
  border-radius: 0.4rem;
  background: transparent;
  color: #737373;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.primebot-icon-btn:hover,
.primebot-icon-btn:focus-visible {
  background: #f5f5f5;
  color: #171717;
  outline: none;
}

.primebot-floating .primebot-head {
  min-height: 3.7rem;
  padding: 0.85rem 1rem;
}

.primebot-floating .primebot-contexto {
  margin: 0;
  border-width: 0 0 1px;
  border-color: #dbeafe;
  border-radius: 0;
  background: #eff6ff;
  padding: 0.55rem 1rem;
}

.primebot-floating .primebot-mensagens {
  background: rgba(250, 250, 250, 0.75);
  padding: 1rem;
}

.primebot-floating .primebot-msg {
  max-width: 85%;
  border: 0;
  border-radius: 0.8rem;
  background: #f5f5f5;
  color: #171717;
}

.primebot-floating .primebot-msg-user {
  border-top-right-radius: 0.15rem;
  background: #2563eb;
  color: #fff;
}

.primebot-floating .primebot-msg-assistant {
  border-top-left-radius: 0.15rem;
}

.primebot-floating .primebot-form {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.4rem;
  padding: 0.55rem 0.75rem;
}

.primebot-floating .primebot-form textarea {
  min-height: 2.05rem;
  max-height: 8rem;
  border-radius: 0.45rem;
  background: #fafafa;
}

.primebot-floating .primebot-form .btn {
  min-width: 2.05rem;
  width: auto;
}

@media (max-width: 1240px) {
  .portal-chamados-shell {
    width: 100%;
  }

  .primebot-floating {
    right: 0.85rem;
  }
}

@media (max-width: 900px) {
  .portal-chamados-shell {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .portal-chamados-shell .chamados-layout {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .portal-chamados-shell .chamados-layout > .panel {
    min-height: 420px;
  }

  .primebot-floating {
    right: 0.85rem;
    bottom: 1rem;
  }
}

@media (max-width: 640px) {
  body {
    --shell-page-pad-left: 3.5rem;
    --shell-page-pad-right: 0.85rem;
    --shell-menu-button-size: 2.25rem;
  }

  .portal-chamados-topbar {
    height: auto;
    min-height: 3.5rem;
  }

  .portal-chamados-breadcrumb {
    display: none;
  }

  .chamados-filter-chips {
    flex-wrap: wrap;
  }

  .chamado-detalhe-head {
    grid-template-columns: 1fr;
  }

  .chamado-detalhe-actions {
    width: 100%;
  }

  .primebot-floating .primebot-panel {
    width: min(100%, calc(100vw - 2rem));
    height: min(800px, calc(var(--viewport-height) - 5.5rem));
    max-height: min(800px, calc(var(--viewport-height) - 5.5rem));
  }

  .primebot-launcher-context {
    display: none;
  }
}

/* Portal de chamados - layout conforme referencia */
body.app-auth-pending .app-workspace-topbar {
  visibility: hidden;
}

.app-workspace-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 36;
  height: 3.75rem;
  border-bottom: 1px solid #dbe3ef;
  background: rgba(255, 255, 255, 0.96);
  padding: 0 var(--shell-page-pad-right) 0 var(--shell-page-pad-left);
}

.workspace-topbar-inner {
  width: min(var(--shell-content-max-width), 100%);
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
}

.workspace-brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-self: start;
}

.workspace-brand-logo {
  display: block;
  width: auto;
  height: 2rem;
  max-width: min(220px, 100%);
  object-fit: contain;
}

.workspace-breadcrumb {
  min-width: 0;
  overflow: hidden;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
  justify-self: center;
  text-align: center;
}

.workspace-notification-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

.workspace-notification {
  position: relative;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid #cfe0ff;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff 0%, #eef5ff 100%);
  color: #2563eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.12);
  transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.workspace-notification:hover,
.workspace-notification:focus-visible {
  background: linear-gradient(180deg, #f8fbff 0%, #e8f1ff 100%);
  border-color: #9fc0ff;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.18);
  outline: none;
  transform: translateY(-1px);
}

.workspace-notification-icon {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 1.1rem;
  height: 1.1rem;
  display: block;
  object-fit: contain;
  color: currentColor;
  pointer-events: none;
}

.workspace-notification-icon path {
  vector-effect: non-scaling-stroke;
}

.workspace-notification-badge {
  position: absolute;
  top: -0.12rem;
  right: -0.14rem;
  min-width: 1rem;
  height: 1rem;
  padding: 0 0.22rem;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.35);
}

.workspace-notification-panel {
  position: absolute;
  top: calc(100% + 0.65rem);
  right: 0;
  z-index: 60;
  width: min(26rem, calc(100vw - 2rem));
  max-height: 24rem;
  border: 1px solid #dbe3ef;
  border-radius: 0.85rem;
  background: #fff;
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.16);
  padding: 0.9rem;
  display: grid;
  gap: 0.8rem;
}

.workspace-notification-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.workspace-notification-panel-heading {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.workspace-notification-panel-heading strong {
  color: #0f172a;
  font-size: 0.96rem;
  font-weight: 800;
}

.workspace-notification-panel-heading span {
  color: #5b6b82;
  font-size: 0.78rem;
}

.workspace-notification-count {
  min-width: 1.6rem;
  height: 1.6rem;
  padding: 0 0.45rem;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
}

.workspace-notification-list {
  display: grid;
  gap: 0.55rem;
  overflow: auto;
  max-height: 18rem;
  padding-right: 0.15rem;
}

.workspace-notification-item {
  display: grid;
  gap: 0.3rem;
  width: 100%;
  border: 1px solid #dbe7f7;
  border-radius: 0.75rem;
  background: #f8fbff;
  padding: 0.8rem 0.85rem;
  cursor: pointer;
  text-align: left;
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.workspace-notification-item:hover,
.workspace-notification-item:focus-visible {
  border-color: #9fc0ff;
  background: #eef5ff;
  outline: none;
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(37, 99, 235, 0.12);
}

.workspace-notification-item-title {
  min-width: 0;
  color: #0f172a;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.25;
}

.workspace-notification-item-subtitle,
.workspace-notification-item-meta {
  min-width: 0;
  color: #5b6b82;
  font-size: 0.8rem;
  line-height: 1.35;
}

.workspace-notification-item-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.workspace-notification-empty {
  margin: 0;
  padding: 0.85rem 0.2rem 0.2rem;
  color: #64748b;
  font-size: 0.88rem;
  text-align: center;
}

.workspace-notification-wrap.is-hidden,
.workspace-notification-badge.is-hidden,
.workspace-notification-panel.is-hidden,
.workspace-notification-empty.is-hidden {
  display: none !important;
}

.workspace-user-summary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.8rem;
  min-width: 0;
  justify-self: end;
}

.workspace-manual-btn {
  width: 2.35rem;
  height: 2.35rem;
  min-width: 2.35rem;
  min-height: 2.35rem;
  padding: 0;
  border: 1px solid #cfe0ff;
  border-radius: 0.55rem;
  background: #eff6ff;
  color: #2563eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.1);
  transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.workspace-manual-btn img,
.workspace-manual-btn svg {
  width: 1.55rem;
  height: 1.55rem;
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
  filter: brightness(0.7) contrast(1.08);
}

.workspace-manual-btn:hover,
.workspace-manual-btn:focus-visible {
  border-color: #9fc0ff;
  background: #e8f1ff;
  color: #2563eb;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.16);
  outline: none;
  transform: translateY(-1px);
}

.workspace-manual-btn:hover img,
.workspace-manual-btn:hover svg,
.workspace-manual-btn:focus-visible img,
.workspace-manual-btn:focus-visible svg {
  filter: brightness(0.58) contrast(1.1);
}

.workspace-manual-btn.is-hidden {
  display: none !important;
}

.workspace-kanban-btn {
  width: 2.35rem;
  height: 2.35rem;
  min-width: 2.35rem;
  min-height: 2.35rem;
  padding: 0;
  border: 1px solid #cfe0ff;
  border-radius: 0.55rem;
  background: #eff6ff;
  color: #2563eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.1);
  transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.workspace-kanban-btn img,
.workspace-kanban-btn svg {
  width: 1.35rem;
  height: 1.35rem;
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
}

.workspace-kanban-btn:hover,
.workspace-kanban-btn:focus-visible {
  border-color: #9fc0ff;
  background: #e8f1ff;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.16);
  outline: none;
  transform: translateY(-1px);
}

.workspace-kanban-btn.is-list-mode-icon {
  border-color: #a9c7ff;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.14);
}

.workspace-kanban-btn.is-list-mode-icon img {
  width: 1.28rem;
  height: 1.28rem;
  filter: brightness(0) saturate(100%) invert(36%) sepia(87%) saturate(1746%) hue-rotate(211deg) brightness(94%) contrast(93%);
}

.workspace-kanban-btn.is-list-mode-icon:hover,
.workspace-kanban-btn.is-list-mode-icon:focus-visible {
  border-color: #7fb0ff;
  background: linear-gradient(135deg, #e8f1ff 0%, #cfe0ff 100%);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.18);
}

.workspace-dashboard-btn.is-active {
  border-color: #2563eb;
  background: #dbeafe;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.workspace-kanban-btn.is-hidden {
  display: none !important;
}

.workspace-user-info {
  display: grid;
  gap: 0.12rem;
  text-align: right;
}

.workspace-user-summary strong {
  color: #0f172a;
  font-size: 0.86rem;
  font-weight: 700;
}

.workspace-user-info span {
  color: #587095;
  font-size: 0.75rem;
}

.workspace-user-avatar {
  width: 2.1rem;
  height: 2.1rem;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #9dc2ff;
  border-radius: 999px;
  background: #eaf2ff;
  color: #2563eb !important;
  font-size: 0.82rem !important;
  font-weight: 800;
  cursor: pointer;
}

.workspace-user-avatar:hover,
.workspace-user-avatar:focus-visible {
  background: #dbeafe;
  color: #1d4ed8 !important;
  outline: none;
}

.workspace-user-panel {
  position: absolute;
  top: calc(100% + 0.6rem);
  right: 0;
  z-index: 50;
  min-width: 16rem;
  display: grid;
  gap: 0.35rem;
  border: 1px solid #dbe3ef;
  border-radius: 0.55rem;
  background: #fff;
  padding: 0.75rem;
  text-align: left;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}

.workspace-user-panel strong {
  color: #0f172a;
  font-size: 0.86rem;
  font-weight: 800;
}

.workspace-user-panel span {
  color: #64748b;
  font-size: 0.78rem;
}

.workspace-user-panel .workspace-app-version {
  margin-top: -0.18rem;
  color: #94a3b8;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
}

.workspace-user-toggle {
  margin-top: 0.45rem;
  padding-top: 0.55rem;
  border-top: 1px solid #e6edf7;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.55rem;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
}

.workspace-user-toggle.is-hidden {
  display: none !important;
}

.workspace-user-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.workspace-user-toggle-control {
  width: 2.25rem;
  height: 1.25rem;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #e2e8f0;
  position: relative;
  transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.workspace-user-toggle-control::after {
  content: "";
  position: absolute;
  top: 0.16rem;
  left: 0.16rem;
  width: 0.82rem;
  height: 0.82rem;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.22);
  transition: transform 0.18s ease;
}

.workspace-user-toggle input:checked + .workspace-user-toggle-control {
  border-color: #2563eb;
  background: #2563eb;
}

.workspace-user-toggle input:checked + .workspace-user-toggle-control::after {
  transform: translateX(1rem);
}

.workspace-user-toggle input:focus-visible + .workspace-user-toggle-control {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.22);
}

.workspace-user-toggle-text {
  min-width: 0;
}

.workspace-user-logout {
  min-height: 2rem;
  margin-top: 0.4rem;
  border: 1px solid #dbe3ef;
  border-radius: 0.4rem;
  background: #f8fafc;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.workspace-user-logout:hover,
.workspace-user-logout:focus-visible {
  background: #eff6ff;
  color: #1d4ed8;
  outline: none;
}

.modal-content-manual {
  width: min(1280px, calc(100vw - 2rem));
  height: min(88vh, 900px);
  max-height: calc(100vh - 2rem);
  padding: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.modal-content-inventario-iframe {
  width: min(960px, calc(100vw - 2rem));
  height: auto;
  max-height: calc(100vh - 2rem);
  padding: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto;
}

.inventario-equipamento-iframe-body {
  min-height: 0;
  overflow: hidden;
  background: #f8fafc;
}

.modal-content-inventario-iframe .manual-portal-modal-frame {
  height: min(560px, calc(100vh - 8rem));
}

.manual-portal-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid #e6edf7;
  background: #fff;
}

.manual-portal-modal-heading {
  display: grid;
  gap: 0.14rem;
  min-width: 0;
}

.manual-portal-modal-heading h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 800;
}

.manual-portal-modal-heading span {
  color: #64748b;
  font-size: 0.8rem;
}

.manual-portal-modal-close {
  flex: 0 0 auto;
}

.manual-portal-modal-body {
  min-height: 0;
  background: #f8fafc;
}

.manual-portal-modal-frame {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  background: #fff;
}

.categoria-cor-field input[type="color"] {
  width: 100%;
  min-height: 2.6rem;
  padding: 0.25rem;
  cursor: pointer;
}

.categoria-cor-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 700;
}

.categoria-cor-swatch {
  width: 0.9rem;
  height: 0.9rem;
  display: inline-block;
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 999px;
  background: var(--categoria-cor, #3b82f6);
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(15, 23, 42, 0.08);
}

body.app-page-chamados {
  background: #f4f7fb;
}

.menu-section-label {
  display: block;
  margin: 1.1rem 0 0.45rem;
  padding: 0 0.85rem;
  color: #95a3bf;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

body.app-page-chamados .app-layout.app-layout-chamados {
  min-height: var(--viewport-height);
  width: min(var(--shell-content-max-width), calc(100% - 2rem));
  max-width: var(--shell-content-max-width);
  margin: 0 auto;
  padding: 4.7rem 0 1.8rem;
  background: #f4f7fb;
}

body.app-page-chamados #viewChamados {
  width: 100%;
  max-width: 100%;
  height: calc(var(--viewport-height) - 7.15rem);
  min-height: 620px;
}

body.app-page-chamados .portal-chamados-shell {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-width: var(--shell-content-max-width);
  margin: 0 auto;
  overflow: visible;
}

body.app-page-chamados .portal-chamados-shell .chamados-layout {
  height: 100%;
  grid-template-columns: 384px minmax(0, 1fr);
  gap: 0.65rem;
  margin-top: 0;
}

body.app-page-chamados .portal-chamados-shell .chamados-layout > .panel {
  border: 1px solid #dbe3ef;
  border-radius: 0.45rem;
  background: #fff;
  box-shadow: none;
}

body.app-page-chamados .chamados-list-panel,
body.app-page-chamados .chamados-detalhe-panel {
  position: relative;
  overflow: hidden;
}

body.app-page-chamados .chamados-list-panel {
  padding: 0;
}

body.app-page-chamados .portal-chamados-shell .chamados-list-head {
  min-height: 3.25rem;
  align-items: center;
  padding: 0.75rem 0.75rem 0.4rem;
}

body.app-page-chamados .chamados-list-head h2 {
  color: #0f172a;
  font-size: 1rem;
  font-weight: 800;
}

body.app-page-chamados .portal-chamados-shell #btnNovoChamado {
  width: 1.8rem;
  min-width: 1.8rem;
  height: 1.8rem;
  min-height: 1.8rem;
  justify-content: center;
  border-radius: 0.35rem;
  padding: 0;
  font-size: 1.25rem;
  line-height: 1;
}

body.app-page-chamados .portal-chamados-shell #btnNovoChamado::before {
  display: none;
}

body.app-page-chamados .chamados-filterbar {
  gap: 0.5rem;
  padding: 0.45rem 0.75rem 0.75rem;
  border-bottom: 1px solid #edf1f7;
}

.chamados-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.45rem;
}

body.app-page-chamados .chamados-search-field input {
  min-height: 2rem;
  border-color: #cfd9ea;
  border-radius: 0.35rem;
  background: #fff;
  font-size: 0.83rem;
}

body.app-page-chamados .chamados-filter-chips {
  gap: 0.35rem;
  flex-wrap: wrap;
  overflow: visible;
}

body.app-page-chamados .chamados-filter-chips select,
body.app-page-chamados .chamados-status-filter-btn {
  min-height: 1.55rem;
  width: max-content;
  max-width: 100%;
  border-color: #bfdbfe;
  background-color: #eff6ff;
  color: #1d4ed8;
  font-size: 0.68rem;
}

body.app-page-chamados .chamados-status-filter-menu {
  min-width: 12.75rem;
}

body.app-page-chamados .chamados-prioridade-filter .chamados-status-filter-menu,
body.app-page-chamados .chamados-resolvedor-filter .chamados-status-filter-menu {
  min-width: 14.5rem;
}

body.app-page-chamados .chamados-status-filter-option span,
body.app-page-chamados .chamados-status-filter-empty {
  font-size: 0.68rem;
}

body.app-page-chamados .portal-chamados-shell .chamados-lista-wrap {
  position: relative;
  height: calc(100% - 7.25rem);
  overflow: auto;
  padding: 0;
}

body.app-page-chamados .portal-chamados-shell:not(.chamados-kanban-mode) .chamados-lista-wrap {
  scrollbar-color: transparent transparent;
  scrollbar-gutter: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body.app-page-chamados .portal-chamados-shell:not(.chamados-kanban-mode) .chamados-lista-wrap::-webkit-scrollbar {
  width: 0;
  height: 0;
  background: transparent;
}

body.app-page-chamados .portal-chamados-shell:not(.chamados-kanban-mode) .chamados-lista-wrap::-webkit-scrollbar-track {
  background: transparent;
}

body.app-page-chamados .portal-chamados-shell:not(.chamados-kanban-mode) .chamados-lista-wrap::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: transparent;
  background-clip: padding-box;
}

.chamados-lista-scrollbar {
  position: absolute;
  top: var(--lista-scrollbar-thumb-top, 0);
  right: 0;
  z-index: 6;
  width: 0.9rem;
  height: var(--lista-scrollbar-thumb-height, 2rem);
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  touch-action: none;
  cursor: default;
  transition: opacity 0.14s ease;
}

.chamados-lista-scrollbar::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0.2rem;
  width: 0.38rem;
  height: 100%;
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.5);
  transition: background-color 0.14s ease;
}

body.app-page-chamados .portal-chamados-shell:not(.chamados-kanban-mode) .chamados-lista-wrap.has-lista-scrollbar:hover .chamados-lista-scrollbar,
body.app-page-chamados .portal-chamados-shell:not(.chamados-kanban-mode) .chamados-lista-wrap.has-lista-scrollbar.is-scrolling .chamados-lista-scrollbar,
body.app-page-chamados .portal-chamados-shell:not(.chamados-kanban-mode) .chamados-lista-wrap.has-lista-scrollbar.is-scrollbar-dragging .chamados-lista-scrollbar {
  opacity: 1;
  pointer-events: auto;
}

body.app-page-chamados .portal-chamados-shell:not(.chamados-kanban-mode) .chamados-lista-wrap.has-lista-scrollbar:hover .chamados-lista-scrollbar::before,
body.app-page-chamados .portal-chamados-shell:not(.chamados-kanban-mode) .chamados-lista-wrap.has-lista-scrollbar.is-scrollbar-dragging .chamados-lista-scrollbar::before {
  background: rgba(71, 85, 105, 0.62);
}

body.app-page-chamados .portal-chamados-shell:not(.chamados-kanban-mode) .chamados-lista-wrap.is-scrollbar-dragging,
body.app-page-chamados .portal-chamados-shell:not(.chamados-kanban-mode) .chamados-lista-wrap.is-scrollbar-dragging .chamados-lista-scrollbar {
  cursor: default;
  user-select: none;
}

body.app-page-chamados .portal-chamados-shell .chamados-cards-list {
  gap: 0;
}

body.app-page-chamados .portal-chamados-shell .chamado-card-item {
  border-width: 0 0 1px;
  border-color: #edf1f7;
  border-radius: 0;
  background: #fff;
}

body.app-page-chamados .portal-chamados-shell .chamado-card-item:hover {
  background: #f7fbff;
}

body.app-page-chamados .portal-chamados-shell .chamado-card-item.chamado-linha-ativo {
  border-color: #dbeafe;
  background: #eef6ff;
  box-shadow: inset -4px 0 0 #cbd5e1;
}

body.app-page-chamados .portal-chamados-shell .chamado-card-item::before {
  display: none;
}

body.app-page-chamados .portal-chamados-shell .chamado-card-main {
  padding: 0.95rem 1rem;
}

body.app-page-chamados .portal-chamados-shell .chamado-card-linha-topo {
  align-items: start;
}

body.app-page-chamados .portal-chamados-shell .chamado-card-numero {
  color: #2563eb;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.66rem;
}

body.app-page-chamados .portal-chamados-shell .chamado-card-numero::before {
  content: "";
  width: 0.38rem;
  height: 0.38rem;
  display: inline-block;
  margin-right: 0.38rem;
  border-radius: 999px;
  background: #3b82f6;
  vertical-align: 0.08rem;
}

body.app-page-chamados .portal-chamados-shell .chamado-card-titulo {
  margin-top: 0.45rem;
  color: #0f172a;
  font-size: 0.9rem;
  font-weight: 800;
}

body.app-page-chamados .portal-chamados-shell .chamado-card-data {
  margin-top: auto;
  color: #657797;
  font-size: 0.7rem;
}

body.app-page-chamados .portal-chamados-shell .chamado-card-solicitante {
  color: #4f6588;
  font-size: 0.78rem;
}

body.app-page-chamados .portal-chamados-shell .chamado-card-meta-campos,
body.app-page-chamados .portal-chamados-shell .chamados-layout .chamado-card-meta-campos {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.5rem;
}

body.app-page-chamados .portal-chamados-shell .chamado-card-meta-resolvedor {
  display: none;
}

body.app-page-chamados .portal-chamados-shell .chamado-inline-select {
  min-height: 1.45rem;
  max-width: 100%;
  border-color: #bfdbfe;
  border-radius: 999px;
  background-color: #eff6ff;
  color: #155eef;
  padding: 0 1.4rem 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
}

body.app-page-chamados .portal-chamados-shell .chamado-card-actions {
  display: none;
}

body.app-page-chamados .portal-chamados-shell .chamado-card-item {
  min-height: 129px;
  border-width: 0 0 1px;
  border-color: #e6ebf2;
  background: #fff;
}

body.app-page-chamados .portal-chamados-shell .chamado-card-item.chamado-linha-ativo {
  background: #eef6ff;
  box-shadow: none;
}

body.app-page-chamados .portal-chamados-shell .chamado-card-main {
  min-height: 166px;
  display: grid;
  grid-template-rows: auto auto auto auto 1fr;
  align-content: start;
  gap: 0;
  padding: 1rem 1.05rem 0.9rem 1rem;
}

.chamado-card-row {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.chamado-card-row-top {
  min-height: 1.5rem;
  margin-bottom: 0.2rem;
}

body.app-page-chamados .portal-chamados-shell .chamado-card-numero {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  color: #2563eb;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1;
}

body.app-page-chamados .portal-chamados-shell .chamado-card-numero::before {
  content: "";
  width: 0.39rem;
  height: 0.39rem;
  display: inline-block;
  flex: 0 0 auto;
  margin-right: 0.43rem;
  border-radius: 999px;
  background: #3b82f6;
}

.chamado-card-numero-button {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  text-align: left;
}

.chamado-card-numero-button:hover,
.chamado-card-numero-button:focus-visible {
  color: #1d4ed8;
  text-decoration: underline;
  text-underline-offset: 0.16rem;
}

.chamado-card-numero-button:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 0.18rem;
  border-radius: 0.25rem;
}

.chamado-card-status {
  max-width: 8.8rem;
  min-height: 1.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eff6ff;
  color: #155eef;
  padding: 0.16rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.chamado-card-status-button {
  cursor: pointer;
  appearance: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.chamado-card-status-button:hover {
  filter: brightness(0.98);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.12);
}

.chamado-card-status-button:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.chamado-card-status-select {
  max-width: 8.8rem;
  min-height: 1.45rem;
  border: 1px solid #93c5fd;
  border-radius: 999px;
  background: #ffffff;
  color: #155eef;
  padding: 0.12rem 1.5rem 0.12rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 0 0 1px rgba(191, 219, 254, 0.25);
}

.chamado-card-status-select:focus {
  outline: 2px solid rgba(37, 99, 235, 0.22);
  outline-offset: 1px;
}

.chamado-card-status[data-status="resolvido"],
.chamado-card-status[data-status="fechado"],
.chamado-card-status[data-status="finalizado pelo primebot"] {
  border-color: #bbf7d0;
  background: #ecfdf3;
  color: #039855;
}

.chamado-card-status[data-status="pendente"] {
  border-color: #fde68a;
  background: #fffbeb;
  color: #b45309;
}

.chamado-card-status[data-status="cancelado"] {
  border-color: #fecaca;
  background: #fef2f2;
  color: #dc2626;
}

.chamado-card-status[data-status="chat ativo"] {
  border-color: #c7d2fe;
  background: #eef2ff;
  color: #3730a3;
}

body.app-page-chamados .portal-chamados-shell .chamado-card-item.chamado-linha-ativo {
  background: color-mix(in srgb, var(--chamado-categoria-cor, #3b82f6) 10%, #ffffff);
}

body.app-page-chamados .portal-chamados-shell .chamado-card-item.chamado-linha-nao-lido:not(.chamado-linha-ativo) {
  border-color: #f3d38b;
  background: #fffaf0;
  box-shadow: inset 4px 0 0 #f59e0b;
}

body.app-page-chamados .portal-chamados-shell .chamado-card-item.chamado-linha-nao-lido:not(.chamado-linha-ativo)::before {
  background: #f59e0b;
}

body.app-page-chamados .portal-chamados-shell .chamado-card-item.chamado-linha-nao-lido:not(.chamado-linha-ativo) .chamado-card-numero,
body.app-page-chamados .portal-chamados-shell .chamado-card-item.chamado-linha-nao-lido:not(.chamado-linha-ativo) .chamado-card-titulo {
  color: #9a3412;
}

body.app-page-chamados .portal-chamados-shell .chamado-card-numero::before {
  background: var(--chamado-categoria-cor, #3b82f6);
}

body.app-page-chamados .portal-chamados-shell .chamado-card-titulo {
  display: block;
  min-width: 0;
  margin: 0.35rem 0 0;
  overflow: hidden;
  color: #020617;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.28;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.app-page-chamados .portal-chamados-shell .chamado-card-solicitante {
  display: block;
  min-width: 0;
  margin-top: 0.35rem;
  overflow: hidden;
  color: #526789;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chamado-card-sla {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.62rem;
  margin-top: 0.62rem;
  padding-top: 0.58rem;
  border-top: 1px solid #e6ebf2;
  color: #172554;
}

.chamado-card-sla-ring {
  width: 2.18rem;
  height: 2.18rem;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  background: conic-gradient(var(--sla-color, #16a34a) var(--sla-progress, 0deg), #e5e7eb 0);
}

.chamado-card-sla-ring span {
  width: 1.62rem;
  height: 1.62rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #ffffff;
  color: var(--sla-color, #16a34a);
  font-size: 0.62rem;
  font-weight: 850;
  line-height: 1;
}

.chamado-card-sla-info {
  min-width: 0;
  display: grid;
  gap: 0.18rem;
  color: #1e2a4a;
  font-size: 0.74rem;
  font-weight: 650;
  line-height: 1.18;
}

.chamado-card-sla-info span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chamado-card-sla-info strong {
  color: #111827;
  font-weight: 800;
}

.chamado-card-sla-info em {
  color: var(--sla-color, #16a34a);
  font-style: normal;
  font-weight: 850;
}

.chamado-card-sla-pausado .chamado-card-sla-info em,
.chamado-card-sla-pausado .chamado-card-sla-ring span,
.chamado-card-sla-sem-sla .chamado-card-sla-info,
.chamado-card-sla-sem-sla .chamado-card-sla-ring span {
  color: #64748b;
}

.chamado-card-row-bottom {
  align-self: end;
  margin-top: 0.72rem;
}

.chamado-card-prioridade {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  color: #155eef;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
}

.chamado-card-prioridade::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  display: inline-block;
  flex: 0 0 auto;
  margin-right: 0.4rem;
  border-radius: 999px;
  background: #3b82f6;
}

.chamado-card-prioridade[data-prioridade="alta"] {
  color: #b45309;
}

.chamado-card-prioridade[data-prioridade="alta"]::before {
  background: #f59e0b;
}

.chamado-card-prioridade[data-prioridade="critica"] {
  color: #dc2626;
}

.chamado-card-prioridade[data-prioridade="critica"]::before {
  background: #ef4444;
}

.chamado-card-prioridade[data-prioridade="baixa"] {
  color: #64748b;
}

.chamado-card-prioridade[data-prioridade="baixa"]::before {
  background: #94a3b8;
}

.chamado-card-cardfooter {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  flex: 0 0 auto;
}

body.app-page-chamados .portal-chamados-shell .chamado-card-data {
  color: #7180a2;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: right;
  white-space: normal;
}

.chamado-card-avatar {
  width: 1.45rem;
  height: 1.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #e5ebf4;
  color: #435775;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0;
  cursor: help;
}

.chamado-card-avatar-button {
  border: 0;
  padding: 0;
  appearance: none;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.chamado-card-avatar-button:hover {
  filter: brightness(0.98);
  box-shadow: 0 4px 12px rgba(67, 87, 117, 0.18);
}

.chamado-card-avatar-button:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.chamados-kanban-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
  padding-top: 0.2rem;
}

.chamados-kanban-toolbar.is-hidden {
  display: none !important;
}

.chamados-kanban-toolbar-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.chamados-kanban-new-btn {
  width: 1.8rem;
  min-width: 1.8rem;
  height: 1.8rem;
  min-height: 1.8rem;
  justify-content: center;
  gap: 0.32rem;
  padding: 0;
  border-radius: 0.35rem;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.chamados-kanban-new-btn span[aria-hidden="true"] {
  font-size: 1.2rem;
  line-height: 1;
}

.chamados-kanban-mode-label {
  color: #475569;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.chamados-kanban-group {
  display: inline-flex;
  align-items: center;
  gap: 0.18rem;
  padding: 0.16rem;
  border: 1px solid #dbeafe;
  border-radius: 0.45rem;
  background: #eff6ff;
}

.chamados-kanban-group-btn {
  min-height: 1.55rem;
  border: 0;
  border-radius: 0.32rem;
  background: transparent;
  color: #476188;
  padding: 0.2rem 0.5rem;
  font-size: 0.68rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.chamados-kanban-group-btn:hover,
.chamados-kanban-group-btn:focus-visible {
  background: #dbeafe;
  color: #1d4ed8;
  outline: none;
}

.chamados-kanban-group-btn.is-active {
  background: #2563eb;
  color: #fff;
}

body.app-page-chamados .portal-chamados-shell.chamados-kanban-mode .chamados-layout,
.portal-chamados-shell.chamados-kanban-mode .chamados-layout {
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  min-height: 0;
}

body.app-page-chamados.app-page-chamados-kanban .app-layout.app-layout-chamados {
  min-height: 0;
  width: calc(100% - 2rem);
  max-width: none;
  padding-bottom: 0;
}

body.app-page-chamados.app-page-chamados-kanban #viewChamados {
  height: calc(var(--viewport-height) - 4.7rem);
  min-height: 0;
}

body.app-page-chamados .portal-chamados-shell.chamados-kanban-mode,
.portal-chamados-shell.chamados-kanban-mode {
  width: 100%;
  max-width: none;
}

body.app-page-chamados .portal-chamados-shell.chamados-kanban-mode .chamados-list-panel,
.portal-chamados-shell.chamados-kanban-mode .chamados-list-panel {
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: visible;
}

body.app-page-chamados .portal-chamados-shell.chamados-kanban-mode .chamados-detalhe-panel,
.portal-chamados-shell.chamados-kanban-mode .chamados-detalhe-panel {
  display: none;
}

body.app-page-chamados .portal-chamados-shell.chamados-kanban-mode .chamados-list-head,
.portal-chamados-shell.chamados-kanban-mode .chamados-list-head {
  display: none;
}

body.app-page-chamados .portal-chamados-shell.chamados-kanban-mode .chamados-search-row,
.portal-chamados-shell.chamados-kanban-mode .chamados-search-row {
  display: none;
}

body.app-page-chamados .portal-chamados-shell.chamados-kanban-mode .chamados-filterbar,
.portal-chamados-shell.chamados-kanban-mode .chamados-filterbar {
  position: relative;
  z-index: 20;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.65rem;
}

body.app-page-chamados .portal-chamados-shell.chamados-kanban-mode .chamados-filter-chips,
.portal-chamados-shell.chamados-kanban-mode .chamados-filter-chips {
  position: relative;
  z-index: 21;
  grid-column: 2;
  grid-row: 1;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: nowrap;
  overflow: visible;
  padding-bottom: 0;
}

body.app-page-chamados .portal-chamados-shell.chamados-kanban-mode .chamados-resolvedor-filter .chamados-status-filter-menu,
.portal-chamados-shell.chamados-kanban-mode .chamados-resolvedor-filter .chamados-status-filter-menu,
body.app-page-chamados .portal-chamados-shell.chamados-kanban-mode .chamados-prioridade-filter .chamados-status-filter-menu,
.portal-chamados-shell.chamados-kanban-mode .chamados-prioridade-filter .chamados-status-filter-menu,
body.app-page-chamados .portal-chamados-shell.chamados-kanban-mode .chamados-status-filter:not(.chamados-sort-filter) .chamados-status-filter-menu,
.portal-chamados-shell.chamados-kanban-mode .chamados-status-filter:not(.chamados-sort-filter) .chamados-status-filter-menu {
  left: auto;
  right: 0;
}

body.app-page-chamados .portal-chamados-shell.chamados-kanban-mode .chamados-kanban-toolbar,
.portal-chamados-shell.chamados-kanban-mode .chamados-kanban-toolbar {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  padding-top: 0;
}

body.app-page-chamados .portal-chamados-shell.chamados-kanban-mode .chamados-lista-wrap,
.portal-chamados-shell.chamados-kanban-mode .chamados-lista-wrap {
  height: calc(100% - 3.4rem);
  min-height: 24rem;
  overflow: hidden;
  padding: 0.75rem 0.75rem 0.15rem;
  background: #f8fafc;
}

.chamados-kanban-board {
  height: 100%;
  min-height: 0;
}

.chamados-kanban-scroll-shell {
  position: relative;
  height: 100%;
  min-height: 0;
}

.chamados-kanban-columns {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 23rem;
  gap: 0.75rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.12rem;
  scroll-snap-type: none;
  scrollbar-color: transparent transparent;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.chamados-kanban-columns::-webkit-scrollbar {
  width: 0;
  height: 0;
  background: transparent;
}

.chamados-kanban-columns::-webkit-scrollbar-track {
  background: transparent;
}

.chamados-kanban-columns::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: transparent;
  background-clip: padding-box;
}

.chamados-kanban-horizontal-scrollbar {
  position: absolute;
  left: 0.55rem;
  right: 0.55rem;
  bottom: 0.18rem;
  z-index: 8;
  height: 0.72rem;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.14s ease;
}

.chamados-kanban-horizontal-scrollbar::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 0.18rem;
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.18);
  transform: translateY(-50%);
}

.chamados-kanban-horizontal-scrollbar > span {
  position: absolute;
  left: 0;
  top: 50%;
  width: var(--kanban-horizontal-thumb-width, 3rem);
  height: 0.38rem;
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.54);
  transform: translate(var(--kanban-horizontal-thumb-left, 0), -50%);
  transition: background-color 0.14s ease;
}

.chamados-kanban-scroll-shell.has-kanban-horizontal-scrollbar:hover .chamados-kanban-horizontal-scrollbar,
.chamados-kanban-scroll-shell.has-kanban-horizontal-scrollbar.is-horizontal-scrolling .chamados-kanban-horizontal-scrollbar,
.chamados-kanban-scroll-shell.has-kanban-horizontal-scrollbar.is-horizontal-dragging .chamados-kanban-horizontal-scrollbar {
  opacity: 1;
}

.chamados-kanban-scroll-shell.has-kanban-horizontal-scrollbar:hover .chamados-kanban-horizontal-scrollbar {
  pointer-events: auto;
}

.chamados-kanban-scroll-shell.has-kanban-horizontal-scrollbar:hover .chamados-kanban-horizontal-scrollbar > span,
.chamados-kanban-scroll-shell.has-kanban-horizontal-scrollbar.is-horizontal-dragging .chamados-kanban-horizontal-scrollbar > span {
  background: rgba(71, 85, 105, 0.68);
}

.chamados-kanban-column {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border: 1px solid #dbe3ef;
  border-radius: 0.5rem;
  background: #fff;
  overflow: visible;
  scroll-snap-align: start;
}

.chamados-kanban-column-head {
  position: relative;
  min-height: 2.7rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid #e6ebf2;
  background: #f8fbff;
  z-index: 6;
}

.chamados-kanban-column-head strong {
  min-width: 0;
  overflow: hidden;
  color: #0f172a;
  font-size: 0.82rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chamados-kanban-column-count {
  min-width: 1.45rem;
  height: 1.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #eaf2ff;
  color: #2563eb;
  font-size: 0.72rem;
  font-weight: 850;
}

.chamados-kanban-column-body {
  position: relative;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.45rem;
  background: #fff;
  scrollbar-color: transparent transparent;
  scrollbar-gutter: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  transition: background-color 0.16s ease, box-shadow 0.16s ease;
}

.chamados-kanban-column-body::-webkit-scrollbar {
  width: 0;
  height: 0;
  background: transparent;
}

.chamados-kanban-column-body::-webkit-scrollbar-track {
  background: transparent;
}

.chamados-kanban-column-body::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: transparent;
  background-clip: padding-box;
}

.chamados-kanban-column-scrollbar {
  position: absolute;
  top: var(--kanban-scrollbar-thumb-top, 0);
  right: 0;
  z-index: 6;
  width: 0.9rem;
  height: var(--kanban-scrollbar-thumb-height, 2rem);
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  touch-action: none;
  cursor: default;
  transition: opacity 0.14s ease, background-color 0.14s ease;
}

.chamados-kanban-column-scrollbar::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0.2rem;
  width: 0.38rem;
  height: 100%;
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.5);
  transition: background-color 0.14s ease;
}

.chamados-kanban-column-body.has-kanban-scrollbar:hover .chamados-kanban-column-scrollbar,
.chamados-kanban-column-body.has-kanban-scrollbar.is-scrolling .chamados-kanban-column-scrollbar,
.chamados-kanban-column-body.has-kanban-scrollbar.is-scrollbar-dragging .chamados-kanban-column-scrollbar {
  opacity: 1;
  pointer-events: auto;
}

.chamados-kanban-column-body.has-kanban-scrollbar:hover .chamados-kanban-column-scrollbar::before,
.chamados-kanban-column-body.has-kanban-scrollbar.is-scrollbar-dragging .chamados-kanban-column-scrollbar::before {
  background: rgba(71, 85, 105, 0.62);
}

.chamados-kanban-column-body.is-scrollbar-dragging,
.chamados-kanban-column-body.is-scrollbar-dragging .chamados-kanban-column-scrollbar {
  cursor: default;
  user-select: none;
}

.chamados-kanban-column-body > .chamado-kanban-card,
.chamados-kanban-column-body > .chamados-kanban-empty {
  flex: 0 0 auto;
}

.chamados-kanban-column-body.is-drop-target {
  background: #eff6ff;
  box-shadow: inset 0 0 0 2px #93c5fd;
}

.chamado-iframe-dialog {
  position: fixed;
  inset: 0;
  z-index: 335;
  display: grid;
  place-items: center;
  padding: 1.1rem;
}

.chamado-iframe-dialog.is-hidden {
  display: none;
}

.chamado-iframe-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.54);
  backdrop-filter: blur(5px);
}

.chamado-iframe-saving-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(2px);
  cursor: wait;
}

.chamado-iframe-saving-overlay.is-hidden {
  display: none;
}

.chamado-iframe-card {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100vw - 2.2rem));
  height: min(820px, calc(var(--viewport-height, 100vh) - 2.2rem));
  min-height: 34rem;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #dbe3ef;
  border-radius: 0.7rem;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.3);
}

.chamado-iframe-card-head {
  min-height: 3.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0.85rem 0.75rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.chamado-iframe-card-head > div {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.chamado-iframe-card-numero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #eff6ff;
  color: #155eef;
  padding: 0.26rem 0.62rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  font-weight: 850;
}

.chamado-iframe-card-head strong {
  overflow: hidden;
  color: #0f172a;
  font-size: 0.96rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chamado-iframe-close {
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid #dbe3ef;
  border-radius: 0.5rem;
  background: #ffffff;
  color: #334155;
  cursor: pointer;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
}

.chamado-iframe-close:hover,
.chamado-iframe-close:focus-visible {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #155eef;
  outline: none;
}

.chamado-iframe-frame {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  background: #f8fafc;
}

body.chamado-iframe-dialog-active {
  overflow: hidden;
}

@media (max-width: 760px) {
  .chamado-iframe-dialog {
    padding: 0.6rem;
  }

  .chamado-iframe-card {
    width: calc(100vw - 1.2rem);
    height: calc(var(--viewport-height, 100vh) - 1.2rem);
    min-height: 0;
  }

  .chamado-iframe-card-head {
    padding: 0.65rem;
  }
}

.chamados-kanban-empty {
  margin: 0.75rem;
  min-height: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed #cbd5e1;
  border-radius: 0.45rem;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
}

body.app-page-chamados .portal-chamados-shell.chamados-kanban-mode .chamados-kanban-board .chamado-card-item,
.portal-chamados-shell.chamados-kanban-mode .chamados-kanban-board .chamado-card-item {
  min-height: 11.1rem;
  border-width: 0 0 1px;
  border-color: #e6ebf2;
  border-radius: 0;
  background: #fff;
  cursor: grab;
  user-select: none;
}

body.app-page-chamados .portal-chamados-shell.chamados-kanban-mode .chamados-kanban-board button,
body.app-page-chamados .portal-chamados-shell.chamados-kanban-mode .chamados-kanban-board select,
.portal-chamados-shell.chamados-kanban-mode .chamados-kanban-board button,
.portal-chamados-shell.chamados-kanban-mode .chamados-kanban-board select {
  user-select: auto;
}

body.app-page-chamados .portal-chamados-shell.chamados-kanban-mode .chamados-kanban-board .chamado-card-item:active,
.portal-chamados-shell.chamados-kanban-mode .chamados-kanban-board .chamado-card-item:active {
  cursor: grabbing;
}

body.app-page-chamados .portal-chamados-shell.chamados-kanban-mode .chamados-kanban-board .chamado-card-item.is-dragging,
.portal-chamados-shell.chamados-kanban-mode .chamados-kanban-board .chamado-card-item.is-dragging {
  opacity: 0.52;
}

body.app-page-chamados .portal-chamados-shell.chamados-kanban-mode .chamados-kanban-board .chamado-card-main,
.portal-chamados-shell.chamados-kanban-mode .chamados-kanban-board .chamado-card-main {
  min-height: 11.1rem;
  padding: 0.95rem 1rem 0.85rem;
  cursor: pointer;
}

body.app-page-chamados .portal-chamados-shell.chamados-kanban-mode .chamados-kanban-board .chamado-card-titulo,
.portal-chamados-shell.chamados-kanban-mode .chamados-kanban-board .chamado-card-titulo {
  font-size: 0.92rem;
  line-height: 1.28;
}

body.app-page-chamados .portal-chamados-shell.chamados-kanban-mode .chamados-kanban-board .chamado-card-row-bottom,
.portal-chamados-shell.chamados-kanban-mode .chamados-kanban-board .chamado-card-row-bottom {
  margin-top: 0.9rem;
}

body.app-page-chamados .portal-chamados-shell .chamados-cards-list {
  gap: 0;
  padding: 0;
}

body.app-page-chamados .portal-chamados-shell .chamado-card-item,
body.app-page-chamados .portal-chamados-shell.chamados-kanban-mode .chamados-kanban-board .chamado-card-item,
.portal-chamados-shell.chamados-kanban-mode .chamados-kanban-board .chamado-card-item {
  min-height: 0;
  border: 1px solid #dbe3ef;
  border-radius: 0.6rem;
  background: #fffaf1;
  box-shadow: 0 9px 22px rgba(15, 23, 42, 0.1);
}

body.app-page-chamados .portal-chamados-shell .chamado-card-item:hover {
  border-color: #cbd5e1;
  background: #fffdf7;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.13);
}

body.app-page-chamados .portal-chamados-shell .chamado-card-item.chamado-linha-ativo {
  border-color: #bfdbfe;
  background: color-mix(in srgb, var(--chamado-categoria-cor, #3b82f6) 8%, #fffaf1);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.12);
}

body.app-page-chamados .portal-chamados-shell:not(.chamados-kanban-mode) .chamado-card-item {
  border-width: 0 0 1px;
  border-color: #dbe3ef;
  border-radius: 0;
  box-shadow: none;
}

body.app-page-chamados .portal-chamados-shell:not(.chamados-kanban-mode) .chamado-card-item:hover {
  border-color: #dbe3ef;
  background: #fffdf7;
  box-shadow: none;
}

body.app-page-chamados .portal-chamados-shell:not(.chamados-kanban-mode) .chamado-card-item.chamado-linha-ativo {
  box-shadow: inset -4px 0 0 #cbd5e1;
}

body.app-page-chamados .portal-chamados-shell:not(.chamados-kanban-mode) .chamado-card-item::before {
  border-radius: 0;
}

.portal-chamados-shell:not(.chamados-kanban-mode) .chamados-lista-wrap,
body.app-page-chamados .portal-chamados-shell:not(.chamados-kanban-mode) .chamados-lista-wrap {
  padding: 0 !important;
}

.portal-chamados-shell:not(.chamados-kanban-mode) .chamados-cards-list,
body.app-page-chamados .portal-chamados-shell:not(.chamados-kanban-mode) .chamados-cards-list {
  gap: 0 !important;
  padding: 0 !important;
}

.portal-chamados-shell:not(.chamados-kanban-mode) .chamado-card-item,
body.app-page-chamados .portal-chamados-shell:not(.chamados-kanban-mode) .chamado-card-item {
  margin: 0 !important;
  border-width: 0 0 1px !important;
  border-color: #dbe3ef !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.portal-chamados-shell:not(.chamados-kanban-mode) .chamado-card-item:hover,
body.app-page-chamados .portal-chamados-shell:not(.chamados-kanban-mode) .chamado-card-item:hover {
  border-color: #dbe3ef !important;
  box-shadow: none !important;
}

.portal-chamados-shell:not(.chamados-kanban-mode) .chamado-card-item::before,
body.app-page-chamados .portal-chamados-shell:not(.chamados-kanban-mode) .chamado-card-item::before {
  border-radius: 0 !important;
}

body.app-page-chamados .portal-chamados-shell .chamado-card-item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0.34rem;
  display: block;
  border-radius: 0.6rem 0 0 0.6rem;
  background: var(--chamado-categoria-cor, #f59e0b);
  opacity: 1;
}

body.app-page-chamados .portal-chamados-shell:not(.chamados-kanban-mode) .chamado-card-item::before {
  border-radius: 0;
}

body.app-page-chamados .portal-chamados-shell .chamado-card-main,
body.app-page-chamados .portal-chamados-shell.chamados-kanban-mode .chamados-kanban-board .chamado-card-main,
.portal-chamados-shell.chamados-kanban-mode .chamados-kanban-board .chamado-card-main {
  min-height: 9.65rem;
  display: grid;
  grid-template-rows: auto minmax(2.65rem, 1fr) auto;
  align-content: start;
  gap: 0.42rem;
  padding: 0.9rem 1.05rem 0.72rem 1rem;
  cursor: pointer;
}

body.app-page-chamados .portal-chamados-shell .chamado-card-row-top {
  min-height: 1.5rem;
  align-items: center;
  margin-bottom: 0;
}

.chamado-card-meta-top {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.42rem;
  flex-wrap: wrap;
}

body.app-page-chamados .portal-chamados-shell .chamado-card-numero,
body.app-page-chamados .portal-chamados-shell.chamados-kanban-mode .chamados-kanban-board .chamado-card-numero,
.portal-chamados-shell.chamados-kanban-mode .chamados-kanban-board .chamado-card-numero {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  color: color-mix(in srgb, var(--chamado-categoria-cor, #f59e0b) 78%, #7c2d12);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
}

body.app-page-chamados .portal-chamados-shell .chamado-card-numero::before,
body.app-page-chamados .portal-chamados-shell.chamados-kanban-mode .chamados-kanban-board .chamado-card-numero::before,
.portal-chamados-shell.chamados-kanban-mode .chamados-kanban-board .chamado-card-numero::before {
  content: none !important;
  display: none !important;
}

.chamado-card-separador {
  color: #93a4b8;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1;
}

body.app-page-chamados .portal-chamados-shell .chamado-card-data {
  color: #7180a2;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: left;
  white-space: nowrap;
}

body.app-page-chamados .portal-chamados-shell .chamado-card-status {
  max-width: 8.8rem;
  min-height: 1.45rem;
  border-width: 1px;
  padding: 0.16rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
}

body.app-page-chamados .portal-chamados-shell .chamado-card-status-select {
  max-width: 8.8rem;
  min-height: 1.45rem;
  padding: 0.12rem 1.5rem 0.12rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
}

.chamado-card-content-row {
  min-width: 0;
  display: grid;
  gap: 0.35rem;
}

body.app-page-chamados .portal-chamados-shell .chamado-card-titulo,
body.app-page-chamados .portal-chamados-shell.chamados-kanban-mode .chamados-kanban-board .chamado-card-titulo,
.portal-chamados-shell.chamados-kanban-mode .chamados-kanban-board .chamado-card-titulo {
  display: -webkit-box;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: color-mix(in srgb, var(--chamado-categoria-cor, #f59e0b) 72%, #7c2d12);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.28;
  text-overflow: ellipsis;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.chamado-card-solicitante-row {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
}

body.app-page-chamados .portal-chamados-shell .chamado-card-solicitante {
  min-width: 0;
  margin-top: 0;
  overflow: hidden;
  color: #526789;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.app-page-chamados .portal-chamados-shell .chamado-card-avatar {
  width: 1.45rem;
  height: 1.45rem;
  background: #e5ebf4;
  color: #435775;
  font-size: 0.64rem;
  font-weight: 800;
}

.chamado-card-footer-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.7rem;
  padding-top: 0.34rem;
  border-top: 1px solid #dbe3ef;
}

.chamado-card-sla {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.62rem;
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.chamado-card-sla-ring {
  width: 2.18rem;
  height: 2.18rem;
}

.chamado-card-sla-ring span {
  width: 1.62rem;
  height: 1.62rem;
  font-size: 0.62rem;
}

.chamado-card-sla-info {
  gap: 0.18rem;
  color: #1e2a4a;
  font-size: 0.74rem;
  font-weight: 650;
  line-height: 1.18;
}

.chamado-card-sla-info span {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.chamado-card-prioridade {
  justify-self: end;
  color: #155eef;
  font-size: 0.78rem;
  font-weight: 700;
}

.chamado-card-prioridade::before {
  width: 0.45rem;
  height: 0.45rem;
  margin-right: 0.4rem;
}

@media (max-width: 760px) {
  body.app-page-chamados .portal-chamados-shell .chamado-card-main,
  body.app-page-chamados .portal-chamados-shell.chamados-kanban-mode .chamados-kanban-board .chamado-card-main,
  .portal-chamados-shell.chamados-kanban-mode .chamados-kanban-board .chamado-card-main {
    min-height: auto;
    grid-template-rows: auto auto auto;
    gap: 0.42rem;
    padding: 0.9rem 1.05rem 0.72rem 1rem;
  }

  body.app-page-chamados .portal-chamados-shell .chamado-card-row-top {
    align-items: flex-start;
  }

  body.app-page-chamados .portal-chamados-shell .chamado-card-numero {
    font-size: 0.68rem;
  }

  body.app-page-chamados .portal-chamados-shell .chamado-card-data {
    font-size: 0.7rem;
  }

  body.app-page-chamados .portal-chamados-shell .chamado-card-status,
  body.app-page-chamados .portal-chamados-shell .chamado-card-status-select {
    max-width: 8.8rem;
    min-height: 1.45rem;
    padding-top: 0.12rem;
    padding-bottom: 0.12rem;
    font-size: 0.72rem;
  }

  body.app-page-chamados .portal-chamados-shell .chamado-card-titulo {
    font-size: 0.9rem;
  }

  body.app-page-chamados .portal-chamados-shell .chamado-card-solicitante {
    font-size: 0.78rem;
  }

  body.app-page-chamados .portal-chamados-shell .chamado-card-avatar {
    width: 1.45rem;
    height: 1.45rem;
    font-size: 0.64rem;
  }

  .chamado-card-footer-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.65rem;
    min-height: 0;
    padding-top: 0.34rem;
  }

  .chamado-card-prioridade {
    justify-self: end;
    font-size: 0.78rem;
  }
}

@media (max-width: 900px) {
  body.app-page-chamados .portal-chamados-shell.chamados-kanban-mode .chamados-filterbar,
  .portal-chamados-shell.chamados-kanban-mode .chamados-filterbar {
    grid-template-columns: minmax(0, 1fr);
  }

  body.app-page-chamados .portal-chamados-shell.chamados-kanban-mode .chamados-filter-chips,
  .portal-chamados-shell.chamados-kanban-mode .chamados-filter-chips,
  body.app-page-chamados .portal-chamados-shell.chamados-kanban-mode .chamados-kanban-toolbar,
  .portal-chamados-shell.chamados-kanban-mode .chamados-kanban-toolbar {
    grid-column: 1;
    justify-self: stretch;
  }

  body.app-page-chamados .portal-chamados-shell.chamados-kanban-mode .chamados-filter-chips,
  .portal-chamados-shell.chamados-kanban-mode .chamados-filter-chips {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  body.app-page-chamados .portal-chamados-shell.chamados-kanban-mode .chamados-kanban-toolbar,
  .portal-chamados-shell.chamados-kanban-mode .chamados-kanban-toolbar {
    grid-row: 2;
  }

  body.app-page-chamados .portal-chamados-shell.chamados-kanban-mode .chamados-lista-wrap,
  .portal-chamados-shell.chamados-kanban-mode .chamados-lista-wrap {
    height: calc(100vh - 11.5rem);
    min-height: 22rem;
  }

  .chamados-kanban-columns {
    grid-auto-columns: 23rem;
  }
}

body.app-page-chamados .portal-chamados-shell #chamadoDetalheConteudo.chamado-detalhe-conteudo:not(.is-hidden) {
  height: 100%;
  background: #fff;
}

body.app-page-chamados .chamado-detalhe-head {
  min-height: auto;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 1rem 0.4rem;
  border-bottom: 0;
}

.chamado-detalhe-resolvedor {
  display: inline-block;
  max-width: 12rem;
  overflow: hidden;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.app-page-chamados #chamadoDetalheTitulo {
  color: #0f172a;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.15;
}

body.app-page-chamados .chamado-detalhe-actions {
  align-items: center;
  gap: 0.35rem;
}

body.app-page-chamados .chamado-detalhe-actions .btn {
  min-height: 1.65rem;
  border-radius: 0.32rem;
  padding: 0.24rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 800;
}

body.app-page-chamados .chamado-detalhe-action-resolve {
  background: #16a34a;
  color: #fff;
}

.chamado-iframe-fechar-btn {
  min-height: 1.9rem;
  padding: 0.34rem 0.72rem;
  font-size: 0.76rem;
  font-weight: 800;
}

.chamado-detalhe-more-btn {
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 0.32rem;
  background: transparent;
  color: #53657f;
  font-size: 1.25rem;
  cursor: pointer;
}

body.app-page-chamados .chamado-detalhe-meta {
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  border: 1px solid #eef2f7;
  border-radius: 0.35rem;
  background: #f8fafc;
  margin: 0 1rem 1rem;
}

.chamado-meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  color: #586b8b;
  font-size: 0.88rem;
}

.chamado-meta-line strong,
.chamado-meta-line input {
  color: #0f172a;
  font-size: 0.88rem;
  font-weight: 700;
}

.chamado-meta-line input {
  width: auto !important;
  min-width: 9rem;
  border: 0 !important;
  background: transparent !important;
  padding: 0 !important;
}

.chamado-meta-pill {
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eff6ff;
  color: #155eef !important;
  padding: 0.15rem 0.55rem;
  font-size: 0.74rem !important;
}

.chamado-meta-prioridade::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  display: inline-block;
  margin-right: 0.35rem;
  border-radius: 999px;
  background: #f59e0b;
  vertical-align: 0.08rem;
}

.chamado-meta-prioridade[data-prioridade="critica"]::before {
  background: #ef4444;
}

.chamado-meta-prioridade[data-prioridade="baixa"]::before {
  background: #94a3b8;
}

.chamado-meta-prioridade[data-prioridade="media"]::before {
  background: #3b82f6;
}

.chamado-detalhe-descricao-bloco {
  flex: 0 0 auto;
  padding: 0.4rem 1rem 0.85rem;
  background: #fff;
}

.chamado-detalhe-descricao-topo {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
}

.chamado-detalhe-descricao-meta {
  min-width: 0;
}

.chamado-detalhe-descricao-meta .chamado-message-head {
  margin-bottom: 0.15rem;
}

.chamado-detalhe-descricao-field {
  display: grid;
  gap: 0.55rem;
}

.chamado-detalhe-descricao-card {
  position: relative;
}

.chamado-detalhe-descricao-toggle {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 50%);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid #dbe3ef;
  border-radius: 999px;
  background: #ffffff;
  color: var(--brand);
  padding: 0.26rem 0.72rem;
  font: inherit;
  font-size: 0.7em;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06);
  cursor: pointer;
}

.chamado-detalhe-descricao-toggle::after {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  display: inline-block;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transform-origin: center;
  transition: transform 0.16s ease;
}

.chamado-detalhe-descricao-toggle[aria-expanded="true"]::after {
  transform: rotate(-135deg) translateY(-1px);
}

.chamado-detalhe-descricao-toggle:hover,
.chamado-detalhe-descricao-toggle:focus-visible {
  border-color: #bfdbfe;
  background: #eff6ff;
  outline: none;
}

.chamado-detalhe-descricao-toggle.is-hidden {
  display: none;
}

.chamado-conversa-section {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  border-top: 1px solid #edf1f7;
  border-bottom: 1px solid #edf1f7;
  background: #fff;
  padding: 0.85rem 1rem;
}

.chamado-acao-card-staff,
.chamado-acao-card-requester {
  display: grid;
  grid-template-columns: 1.6rem minmax(0, 1fr);
  gap: 0.55rem;
  align-items: start;
}

.chamado-acao-card-own {
  grid-template-columns: minmax(0, 1fr) 1.6rem;
  justify-items: end;
}

.chamado-acao-card-own .chamado-acao-avatar {
  grid-column: 2;
  grid-row: 1;
}

.chamado-acao-card-own .chamado-acao-card-body {
  grid-column: 1;
  grid-row: 1;
  max-width: min(560px, 86%);
}

.chamado-acao-card-own .chamado-acao-card-autor {
  justify-content: flex-end;
}

.chamado-acao-card-own .chamado-acao-card-descricao,
.chamado-acao-card-own .chamado-acao-card-anexos,
.chamado-acao-card-own .chamado-acao-card-data {
  text-align: right;
}

.chamado-acao-card-other {
  justify-items: start;
}

.chamado-acao-card-other .chamado-acao-avatar {
  grid-column: 1;
  grid-row: 1;
}

.chamado-acao-card-other .chamado-acao-card-body {
  grid-column: 2;
  grid-row: 1;
  max-width: min(560px, 86%);
}

.chamado-acao-card-other .chamado-acao-card-autor {
  justify-content: flex-start;
}

.chamado-acao-card-other .chamado-acao-card-descricao,
.chamado-acao-card-other .chamado-acao-card-anexos,
.chamado-acao-card-other .chamado-acao-card-data {
  text-align: left;
}

.chamado-message-avatar,
.chamado-acao-avatar {
  width: 1.6rem;
  height: 1.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #e2e8f0;
  color: #365073;
  font-size: 0.64rem;
  font-weight: 800;
}

.chamado-message-body {
  min-width: 0;
}

.chamado-message-head,
.chamado-acao-card-autor {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  margin-bottom: 0.4rem;
}

.chamado-message-head strong,
.chamado-acao-card-autor strong {
  color: #0f172a;
  font-size: 0.88rem;
  font-weight: 800;
}

.chamado-message-head span,
.chamado-acao-card-autor span {
  color: #8ba0bd;
  font-size: 0.75rem;
}

body.app-page-chamados #chamadoDetalheDescricao {
  width: 100%;
  min-height: 3.55rem;
  border: 1px solid #dbe3ef !important;
  border-radius: 0.35rem;
  background: #fff !important;
  color: #273858;
  padding: 1.1rem 0.85rem 0.75rem !important;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

body.app-page-chamados #chamadoDetalheDescricao.is-expanded {
  display: block;
  -webkit-line-clamp: unset;
  max-height: calc(var(--viewport-height) - 13rem);
  overflow-y: auto;
}

body.app-page-chamados .chamado-acoes-cards {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.6rem;
}

body.app-page-chamados .chamado-acoes-cards::before {
  display: none;
}

body.app-page-chamados .chamado-acao-card {
  border: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

body.app-page-chamados .chamado-acao-card::before {
  display: none;
}

.chamado-acao-card-requester .chamado-acao-avatar {
  background: #dbeafe;
  color: #2563eb;
}

.chamado-acao-card-requester .chamado-acao-card-descricao,
.chamado-acao-card-requester .chamado-acao-card-anexos {
  border: 1px solid #d8e9ff;
  border-radius: 0.3rem;
  background: #eef6ff;
  color: #17233b;
  padding: 0.45rem 0.65rem;
}

.chamado-acao-card-staff .chamado-acao-avatar {
  background: #e2e8f0;
  color: #365073;
}

.chamado-acao-card-staff .chamado-acao-card-descricao,
.chamado-acao-card-staff .chamado-acao-card-anexos {
  border: 1px solid #dbe3ef;
  border-radius: 0.3rem;
  background: #ffffff;
  color: #17233b;
  padding: 0.45rem 0.65rem;
}

.chamado-acao-card-system {
  display: flex;
  justify-content: center;
}

.chamado-acao-card-system .chamado-acao-card-body {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.chamado-acao-card-system-pill {
  border: 1px solid #dbe3ef;
  border-radius: 999px;
  background: #f3f6fb;
  color: #64748b;
  padding: 0.16rem 0.55rem;
  font-size: 0.72rem;
}

.chamado-acao-card-system .chamado-acao-card-descricao {
  display: inline;
  color: inherit;
  font-size: inherit;
}

body.app-page-chamados .chamado-acao-card-data {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.66rem;
  line-height: 1.1;
}

.chamado-acao-card-system .chamado-acao-card-data {
  text-align: center;
}

body.app-page-chamados .portal-chamados-shell #chamadoDetalheInteracaoBloco.chamado-detalhe-composer {
  display: block;
  margin: 0;
  padding: 0.55rem 0.8rem 0.6rem;
  border: 0;
  border-top: 1px solid #edf1f7;
  border-radius: 0;
  background: #fafcff;
  box-shadow: none;
}

body.app-page-chamados .chamado-detalhe-composer .chamado-interacao-composer-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.45rem;
}

body.app-page-chamados .chamado-detalhe-composer .chamado-interacao-composer-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 0;
  overflow: hidden;
  padding: 0.08rem 0.5rem;
  border: 1.5px solid #c7d5ef;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

body.app-page-chamados .chamado-detalhe-composer .chamado-interacao-composer-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 0.32rem;
}

body.app-page-chamados .chamado-detalhe-composer .chamado-interacao-composer-card:focus-within {
  border-color: #2f63f5;
  box-shadow: 0 0 0 1px rgba(47, 99, 245, 0.1);
}

body.app-page-chamados .chamado-detalhe-composer #chamadoNovaAcaoDescricao {
  display: block;
  align-self: center;
  width: 100%;
  min-height: 0.9rem;
  max-height: 8rem;
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  resize: none;
  overflow-y: hidden;
  line-height: 1.05;
}

body.app-page-chamados .chamado-iframe-list-shell .chamado-detalhe-composer #chamadoNovaAcaoDescricao {
  box-sizing: border-box;
  min-height: 2.35rem;
  padding: 0.48rem 0;
  line-height: 1.35;
}

body.app-page-chamados .chamado-detalhe-composer .chamado-interacao-imagem-bloco {
  margin: 0;
  margin-top: 0.28rem;
  border: 0;
  background: transparent;
  max-height: min(11rem, 22vh);
  overflow: auto;
  padding-top: 0;
  padding-right: 0.15rem;
}

body.app-page-chamados .chamado-detalhe-composer .chamado-interacao-imagem-topo {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

body.app-page-chamados .chamado-detalhe-composer .chamado-interacao-imagem-topo .muted,
body.app-page-chamados .chamado-detalhe-composer .chamado-interacao-imagem-preview:not(.has-image),
body.app-page-chamados #btnRemoverImagemChamado.is-hidden,
body.app-page-chamados .chamado-detalhe-composer .chamado-interacao-imagem-bloco.is-hidden {
  display: none !important;
}

body.app-page-chamados .chamado-detalhe-composer .chamado-interacao-composer-footer {
  display: inline-flex;
  align-self: center;
  align-items: center;
  justify-content: flex-end;
  gap: 0.32rem;
  min-height: 2.7rem;
  padding: 0.16rem 0;
  border-top: 0;
  background: transparent;
  justify-self: end;
}

body.app-page-chamados .chamado-detalhe-composer .chamado-interacao-anexo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  min-height: 2.35rem;
  min-width: 2.35rem;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 0.45rem;
  background: #fff;
  color: #475569;
  box-shadow: none;
  box-sizing: border-box;
  flex: 0 0 2.35rem;
}

body.app-page-chamados .chamado-detalhe-composer .chamado-interacao-anexo-btn-external {
  align-self: center;
}

body.app-page-chamados .chamado-detalhe-composer .chamado-interacao-anexo-btn:hover,
body.app-page-chamados .chamado-detalhe-composer .chamado-interacao-anexo-btn:focus-visible {
  background: #eef4ff;
  color: #1d4ed8;
}

body.app-page-chamados .chamado-detalhe-composer .chamado-interacao-anexo-btn img,
body.app-page-chamados .chamado-detalhe-composer .chamado-interacao-enviar-btn img,
body.app-page-chamados .chamado-detalhe-composer .chamado-interacao-anexo-btn svg,
body.app-page-chamados .chamado-detalhe-composer .chamado-interacao-enviar-btn svg {
  width: 1.6rem;
  height: 1.6rem;
  flex: 0 0 auto;
  display: block;
  object-fit: contain;
}

body.app-page-chamados .chamado-detalhe-composer .chamado-interacao-enviar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  min-height: 2.35rem;
  min-width: 2.35rem;
  border-radius: 0.45rem;
  background: #fff;
  border: 1px solid #d7e3f7;
  color: #283582;
  padding: 0;
  line-height: 1;
  box-shadow: none;
  box-sizing: border-box;
  flex: 0 0 2.35rem;
  transition: background-color 0.16s ease, color 0.16s ease;
}

@media (max-width: 760px) {
  .workspace-manual-btn {
    width: 2.15rem;
    height: 2.15rem;
    min-width: 2.15rem;
    min-height: 2.15rem;
  }

  .workspace-manual-btn img,
  .workspace-manual-btn svg {
    width: 1.35rem;
    height: 1.35rem;
  }

  .modal-content-manual {
    width: min(100vw - 1rem, 1280px);
    height: min(92vh, 900px);
  }

  .manual-portal-modal-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .manual-portal-modal-close {
    align-self: flex-end;
  }

  body.app-page-chamados .chamado-detalhe-composer .chamado-interacao-composer-shell {
    gap: 0.4rem;
  }
}

body.app-page-chamados .chamado-detalhe-composer .chamado-interacao-enviar-btn:hover,
body.app-page-chamados .chamado-detalhe-composer .chamado-interacao-enviar-btn:focus-visible {
  background: #eef4ff;
  color: #283582;
}

body.app-page-chamados .chamado-detalhe-composer .chamado-interacao-enviar-btn:disabled,
body.app-page-chamados .chamado-detalhe-composer .chamado-interacao-enviar-btn.btn:disabled {
  box-shadow: none;
}

body.app-page-chamados .primebot-launcher-bubble {
  background: #7c3aed;
}

body.app-page-chamados .primebot-floating {
  left: auto;
  right: 0.85rem;
  bottom: 1.5rem;
  width: min(600px, calc(100vw - 1.7rem));
  height: min(800px, calc(var(--viewport-height) - 7rem));
  display: block;
  pointer-events: none;
}

body.app-page-chamados .primebot-floating .primebot-panel {
  width: 100%;
  height: 100%;
  max-height: none;
  pointer-events: auto;
}

body.app-page-chamados .primebot-floating.is-collapsed .primebot-panel {
  display: none;
}

body.app-page-chamados .primebot-launcher {
  position: absolute;
  right: 1rem;
  bottom: clamp(7.2rem, 15vh, 9.6rem);
  z-index: 3;
  pointer-events: auto;
}

body.app-page-chamados .primebot-launcher[hidden] {
  display: none !important;
}

body.app-page-chamados .primebot-launcher-context {
  display: none;
}

body.app-page-chamados .primebot-launcher-bubble {
  width: 3rem;
  height: 3rem;
}

body.app-page-chamados .primebot-launcher-bubble::before {
  inset: 0.86rem 0.78rem 0.94rem;
}

body.app-page-chamados .primebot-launcher-bubble::after {
  right: 0.28rem;
  bottom: 0.28rem;
  width: 0.66rem;
  height: 0.66rem;
}

body.app-page-chamados.primebot-loading-active {
  overflow: hidden;
}

body.app-page-chamados .primebot-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(3px);
  cursor: wait;
  touch-action: none;
}

body.app-page-chamados .primebot-loading-overlay.is-hidden {
  display: none;
}

body.app-page-chamados .primebot-loading-card {
  width: min(22rem, calc(100vw - 2rem));
  display: grid;
  justify-items: center;
  gap: 0.7rem;
  padding: 1.15rem 1.25rem 1rem;
  border: 1px solid rgba(47, 99, 245, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.26);
  color: #0f172a;
  text-align: center;
}

body.app-page-chamados .primebot-loading-spinner {
  width: 2.4rem;
  height: 2.4rem;
  border: 3px solid rgba(47, 99, 245, 0.16);
  border-top-color: #2f63f5;
  border-radius: 999px;
  animation: primebotLoadingSpin 0.85s linear infinite;
}

body.app-page-chamados .primebot-loading-card strong {
  font-size: 1rem;
  font-weight: 800;
}

body.app-page-chamados .primebot-loading-message {
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.35;
}

body.app-page-chamados .primebot-loading-dots {
  display: inline-flex;
  gap: 0.3rem;
  align-items: center;
  justify-content: center;
}

body.app-page-chamados .primebot-loading-dots span {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: #2f63f5;
  animation: primebotLoadingBounce 1s ease-in-out infinite;
}

body.app-page-chamados .primebot-loading-dots span:nth-child(2) {
  animation-delay: 0.14s;
}

body.app-page-chamados .primebot-loading-dots span:nth-child(3) {
  animation-delay: 0.28s;
}

@keyframes primebotLoadingSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes primebotLoadingBounce {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.35;
  }

  40% {
    transform: translateY(-0.18rem);
    opacity: 1;
  }
}

@media (max-width: 1120px) {
  .workspace-topbar-inner {
    grid-template-columns: minmax(140px, 1fr) minmax(0, auto) minmax(140px, 1fr);
  }

  .workspace-user-info {
    display: none;
  }

  body.app-page-chamados .portal-chamados-shell .chamados-layout {
    grid-template-columns: 340px minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .workspace-topbar-inner {
    gap: 0.75rem;
  }

  .workspace-notification-panel {
    width: min(24rem, calc(100vw - 1.25rem));
  }

  .app-layout.app-layout-chamados {
    width: min(var(--shell-content-max-width), calc(100% - 2rem));
    max-width: var(--shell-content-max-width);
    margin: 0 auto;
    padding: 5rem 0 1rem;
  }

  body.app-page-chamados #viewChamados {
    height: auto;
  }

  body.app-page-chamados .portal-chamados-shell .chamados-layout {
    grid-template-columns: 1fr;
  }

  body.app-page-chamados .chamados-list-panel,
  body.app-page-chamados .chamados-detalhe-panel {
    min-height: 460px;
  }

  body.app-page-chamados .primebot-floating {
    right: 0.75rem;
    bottom: 1rem;
    width: calc(100vw - 1.5rem);
  }

  body.app-page-chamados .primebot-launcher {
    bottom: clamp(6rem, 14vh, 7.8rem);
  }
}

@media (max-width: 640px) {
  .workspace-brand-logo {
    height: 1.7rem;
    max-width: 132px;
  }

  .workspace-breadcrumb {
    font-size: 0.92rem;
  }
}

#tabelaChamados.chamados-cards-list {
  gap: 0 !important;
  padding: 0 !important;
}

.portal-chamados-shell .chamados-lista-wrap:has(#tabelaChamados.chamados-cards-list) {
  padding: 0 !important;
}

#tabelaChamados.chamados-kanban-board .chamados-kanban-column-body {
  gap: 0 !important;
  padding: 0 !important;
}

#tabelaChamados.chamados-cards-list > .chamado-card-item,
#tabelaChamados.chamados-kanban-board .chamados-kanban-column-body > .chamado-card-item {
  margin: 0 !important;
  border-width: 0 0 1px !important;
  border-color: #dbe3ef !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}

#tabelaChamados.chamados-cards-list > .chamado-card-item:hover,
#tabelaChamados.chamados-kanban-board .chamados-kanban-column-body > .chamado-card-item:hover {
  box-shadow: none !important;
}

#tabelaChamados.chamados-cards-list > .chamado-card-item::before,
#tabelaChamados.chamados-kanban-board .chamados-kanban-column-body > .chamado-card-item::before {
  border-radius: 8px 0 0 8px !important;
}

body.app-page-dashboard-chamados .app-layout {
  width: min(var(--shell-content-max-width), calc(100% - 2rem));
  max-width: var(--shell-content-max-width);
  margin: 0 auto;
  padding: 5rem 0 1.5rem;
}

body.app-page-dashboard-chamados #viewChamados {
  height: auto;
  min-height: 0;
}

.dashboard-chamados-shell {
  width: min(1200px, 100%);
  margin: 0 auto;
  color: #0f172a;
}

.dashboard-chamados-header {
  position: relative;
  z-index: 12;
  padding: 1rem;
  border: 1px solid #dbe3ef;
  border-radius: 0.5rem;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
}

.dashboard-chamados-filtros {
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, 1fr)) repeat(4, minmax(118px, 1fr)) auto;
  gap: 0.7rem;
  align-items: end;
}

.dashboard-chamados-filtros label,
.dashboard-multiselect > label {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
  color: #48658f;
  font-size: 0.74rem;
  font-weight: 800;
}

.dashboard-chamados-filtros input[type="date"],
.dashboard-multiselect-btn {
  width: 100%;
  height: 2.55rem;
  min-width: 0;
  border: 1px solid #cbd8ea;
  border-radius: 0.45rem;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
}

.dashboard-chamados-filtros input[type="date"] {
  padding: 0 0.75rem;
}

.dashboard-multiselect {
  position: relative;
  min-width: 0;
}

.dashboard-multiselect-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  padding: 0 2rem 0 0.75rem;
  text-align: left;
  cursor: pointer;
}

.dashboard-multiselect-btn::after {
  content: "";
  position: absolute;
  right: 0.75rem;
  top: 50%;
  width: 0.48rem;
  height: 0.48rem;
  border-right: 2px solid #2563eb;
  border-bottom: 2px solid #2563eb;
  transform: translateY(-65%) rotate(45deg);
}

.dashboard-multiselect-btn[aria-expanded="true"] {
  border-color: #8db7ff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.dashboard-multiselect-btn[aria-expanded="true"]::after {
  transform: translateY(-35%) rotate(225deg);
}

.dashboard-multiselect-btn span {
  min-width: 0;
  overflow: hidden;
  color: #0f172a;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-multiselect-panel {
  position: absolute;
  z-index: 80;
  top: calc(100% + 0.35rem);
  left: 0;
  width: min(18rem, max(100%, 14rem));
  max-height: 16rem;
  overflow: auto;
  border: 1px solid #cbd8ea;
  border-radius: 0.45rem;
  background: #fff;
  box-shadow: 0 22px 42px rgba(15, 23, 42, 0.18);
}

.dashboard-multiselect-panel.is-hidden {
  display: none;
}

.dashboard-multiselect-options {
  display: grid;
  gap: 0.1rem;
  padding: 0.35rem;
}

.dashboard-multiselect-option {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 0.5rem !important;
  min-height: 2rem;
  padding: 0.35rem 0.5rem;
  border-radius: 0.35rem;
  color: #0f172a !important;
  font-size: 0.84rem !important;
  font-weight: 700 !important;
  cursor: pointer;
}

.dashboard-multiselect-option:hover {
  background: #eef4ff;
}

.dashboard-multiselect-option input {
  width: 0.95rem;
  height: 0.95rem;
  flex: 0 0 auto;
  margin: 0;
  accent-color: #2563eb;
}

.dashboard-multiselect-option span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-chamados-filtros .btn {
  min-height: 2.55rem;
  white-space: nowrap;
}

.dashboard-chamados-state {
  margin: 0.85rem 0 0;
  padding: 0.75rem 0.9rem;
  border: 1px solid #bfdbfe;
  border-radius: 0.45rem;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.9rem;
  font-weight: 700;
}

.dashboard-chamados-state.is-error {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.dashboard-chamados-state.is-loading {
  color: #475569;
}

.dashboard-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 0.9rem;
}

.dashboard-kpis article {
  min-width: 0;
  padding: 1rem;
  border: 1px solid #dbe3ef;
  border-radius: 0.5rem;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.dashboard-kpis span {
  display: block;
  color: #5b7191;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.dashboard-kpis strong {
  display: block;
  margin-top: 0.45rem;
  color: #0f172a;
  font-size: 1.85rem;
  line-height: 1;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 0.9rem;
}

.dashboard-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dbe3ef;
  border-radius: 0.5rem;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.07);
}

.dashboard-panel-wide {
  grid-column: 1 / -1;
}

.dashboard-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #e5edf7;
  background: #f8fafc;
}

.dashboard-panel h3 {
  margin: 0;
  color: #0f172a;
  font-size: 0.98rem;
  font-weight: 800;
}

.dashboard-chart {
  min-height: 260px;
  padding: 1rem;
}

.dashboard-empty,
.dashboard-table-empty {
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
}

.dashboard-empty {
  display: grid;
  min-height: 210px;
  place-items: center;
}

.dashboard-line-chart {
  min-height: 330px;
}

.dashboard-line-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.dashboard-line-grid line {
  stroke: #e2e8f0;
  stroke-width: 1;
}

.dashboard-line-grid text {
  fill: #64748b;
  font-size: 10px;
  font-weight: 700;
}

.dashboard-line {
  fill: none;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-line-open {
  stroke: #2563eb;
}

.dashboard-line-done {
  stroke: #16a34a;
}

.dashboard-line-svg circle {
  stroke: #fff;
  stroke-width: 2;
  cursor: default;
}

.dashboard-point-open {
  fill: #2563eb;
}

.dashboard-point-done {
  fill: #16a34a;
}

.dashboard-line-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 0.65rem;
  color: #475569;
  font-size: 0.86rem;
  font-weight: 800;
}

.dashboard-line-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.dashboard-line-legend i {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
}

.dashboard-line-legend .is-open {
  background: #2563eb;
}

.dashboard-line-legend .is-done {
  background: #16a34a;
}

.dashboard-sla-donut {
  width: min(13.5rem, 58vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin: 0.2rem auto 1rem;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.dashboard-sla-donut span {
  width: 54%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #fff;
  color: #0f172a;
  font-size: 1.45rem;
  font-weight: 900;
  box-shadow: 0 0 0 1px #e2e8f0;
}

.dashboard-legend {
  display: grid;
  gap: 0.45rem;
}

.dashboard-legend div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.5rem;
  align-items: center;
  color: #475569;
  font-size: 0.86rem;
}

.dashboard-legend span {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
}

.dashboard-legend strong {
  min-width: 0;
  overflow: hidden;
  color: #0f172a;
  font-size: 0.86rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-legend em {
  color: #64748b;
  font-style: normal;
  font-weight: 800;
}

.dashboard-bar-list {
  display: grid;
  gap: 0.75rem;
}

.dashboard-bar-row {
  display: grid;
  grid-template-columns: minmax(7.5rem, 0.9fr) minmax(0, 1.4fr) auto;
  gap: 0.65rem;
  align-items: center;
}

.dashboard-bar-label {
  min-width: 0;
  overflow: hidden;
  color: #334155;
  font-size: 0.86rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-bar-track {
  height: 0.72rem;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eef7;
}

.dashboard-bar-track span {
  display: block;
  height: 100%;
  min-width: 0.18rem;
  border-radius: inherit;
}

.dashboard-bar-row strong {
  color: #0f172a;
  font-size: 0.86rem;
}

.dashboard-table-wrap {
  overflow: auto;
}

.dashboard-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.dashboard-table th,
.dashboard-table td {
  padding: 0.78rem 0.9rem;
  border-bottom: 1px solid #e5edf7;
  text-align: left;
  vertical-align: middle;
}

.dashboard-table th {
  background: #f8fafc;
}

.dashboard-table th button {
  position: relative;
  border: 0;
  background: transparent;
  color: #48658f;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.dashboard-table th button::after {
  content: "";
  display: inline-block;
  width: 0.4rem;
  height: 0.4rem;
  margin-left: 0.32rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  opacity: 0.35;
  transform: translateY(-0.15rem) rotate(45deg);
}

.dashboard-table th button.is-active {
  color: #2563eb;
}

.dashboard-table th button.is-active[data-sort-direction="asc"]::after {
  opacity: 1;
  transform: translateY(0.05rem) rotate(225deg);
}

.dashboard-table th button.is-active[data-sort-direction="desc"]::after {
  opacity: 1;
}

.dashboard-table td {
  color: #334155;
  font-size: 0.88rem;
  font-weight: 700;
}

.dashboard-table td:first-child strong {
  color: #2563eb;
  font-size: 0.86rem;
}

.dashboard-sla-badge {
  display: inline-flex;
  min-width: 3rem;
  justify-content: center;
  padding: 0.28rem 0.5rem;
  border-radius: 999px;
  background: #e2e8f0;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 900;
}

.dashboard-sla-badge-dentro {
  background: #dcfce7;
  color: #15803d;
}

.dashboard-sla-badge-atencao {
  background: #fef3c7;
  color: #b45309;
}

.dashboard-sla-badge-alerta {
  background: #ffedd5;
  color: #c2410c;
}

.dashboard-sla-badge-vencido {
  background: #fee2e2;
  color: #b91c1c;
}

@media (max-width: 1100px) {
  .dashboard-chamados-filtros {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  body.app-page-dashboard-chamados .app-layout {
    width: min(100% - 1rem, var(--shell-content-max-width));
    padding-top: 4.5rem;
  }

  .dashboard-kpis,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-chamados-filtros {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-panel-wide {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .dashboard-chamados-header {
    padding: 0.8rem;
  }

  .dashboard-chamados-filtros,
  .dashboard-kpis {
    grid-template-columns: 1fr;
  }

  .dashboard-chart {
    padding: 0.8rem;
  }

  .dashboard-bar-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .dashboard-bar-track {
    grid-column: 1 / -1;
  }
}
