﻿/* Overrides para aproximar o shell ao Color Admin mantendo os modulos do wf-ticket. */

body {
  overflow: hidden;
}

body.login-bg {
  background: #2a303a;
}

.login-split.auth-container {
  min-height: 100vh;
  position: relative;
}

.login-split.auth-container:before,
.login-split.auth-container:after {
  content: none !important;
  display: none !important;
}

.login-visual-panel {
  min-height: 100vh;
  background: #252b35 url("/color-admin-assets/images/login.svg") no-repeat center center;
  background-size: cover;
  border-right: 1px solid #4f586a;
}

.login-form-panel {
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 10%, rgba(32, 161, 208, 0.12), rgba(48, 54, 65, 0) 55%),
    #303641;
}

.login-split .auth-box {
  margin: 2rem auto;
  width: min(100%, 360px);
}

.login-form-panel .auth-logo {
  width: 100%;
  display: flex;
  justify-content: center;
}

:root {
  --company-logo-upload-max-width: 203.588px;
  --company-logo-upload-max-height: 68.759px;
  --company-logo-display-max-width: 170px;
  --company-logo-display-max-height: 40px;
}

.app-header .logo {
  max-width: var(--company-logo-display-max-width);
  max-height: var(--company-logo-display-max-height);
  width: auto;
  height: auto;
  object-fit: contain;
}

.auth-logo img {
  max-width: var(--company-logo-display-max-width);
  max-height: var(--company-logo-display-max-height);
  width: auto;
  height: auto;
  object-fit: contain;
}

.company-logo-preview-wrap {
  border: 1px dashed #59657a;
  border-radius: 0.75rem;
  background: #2a303a;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.company-logo-preview {
  max-width: var(--company-logo-display-max-width);
  max-height: var(--company-logo-display-max-height);
  width: auto;
  height: auto;
  object-fit: contain;
}

.app-hero-header {
  border-bottom: 1px solid #50596a;
}

.app-footer {
  border-top: 1px solid #50596a;
  color: #8b95a8;
}

.sidebar-profile p {
  color: #9caac2;
}

.app-body {
  scrollbar-width: thin;
}

.sidebarMenuScroll {
  overflow-y: auto;
  padding-top: 12px;
}

/* Sidebar — cabeçalhos de seção */
.sidebar-menu li.sidebar-section {
  pointer-events: none;
  padding: 14px 22px 4px;
  margin: 0;
  background: transparent;
}

.sidebar-menu li.sidebar-section .menu-text {
  font-size: 0.66rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 700;
  color: #6b7688;
}

/* Sidebar — hover e item ativo com barra lateral */
.sidebar-menu > li > a {
  transition: background-color 0.15s ease, color 0.15s ease;
}

.sidebar-menu > li:not(.sidebar-section) > a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #e8eefb;
}

.sidebar-menu > li.active > a,
.sidebar-menu > li.current-page > a {
  position: relative;
  background: rgba(32, 161, 208, 0.14);
  color: #ffffff;
}

.sidebar-menu > li.active > a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 62%;
  border-radius: 0 3px 3px 0;
  background: #20a1d0;
}

/* Sidebar — badge de item (ex.: Novo) */
.sidebar-menu .menu-badge {
  margin-left: auto;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #20a1d0;
  color: #07222b;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  line-height: 1.4;
}

/* Sidebar — rodapé fixo com a versão do sistema */
.sidebar-footer {
  padding: 12px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-version {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: #8b99b0;
}

.sidebar-version i {
  font-size: 0.95rem;
}

/* Estado compacto (pinned sem hover): some o texto/badge e a seção vira separador */
.page-wrapper.pinned:not(.sidebar-hovered) .sidebar-wrapper .sidebar-menu .menu-badge {
  display: none !important;
}

.page-wrapper.pinned:not(.sidebar-hovered) .sidebar-wrapper .sidebar-menu li.sidebar-section {
  padding: 6px 0;
  margin: 6px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.page-wrapper.pinned:not(.sidebar-hovered) .sidebar-wrapper .sidebar-footer {
  text-align: center;
  padding: 12px 0;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.page-title-wrap {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.page-icon {
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 0.9rem;
  border: 1px solid #4f586a;
  background: #2a303a;
  color: #53bcd7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.page-header h1,
.page-header .h3 {
  margin-bottom: 0.2rem;
}

.page-description {
  margin: 0;
  color: #97a4bb;
}

.page-actions {
  display: flex;
  gap: 0.5rem;
}

.page-actions .btn {
  border-radius: 2rem;
}

.day-filters .btn {
  border-radius: 999px;
}

.day-filters {
  overflow-x: auto;
  white-space: nowrap;
}

.text-muted {
  color: #9ba8be !important;
}

.app-card-header {
  border-bottom: 1px solid #4d5668;
  background: #2b313b !important;
}

.app-card {
  border: 0;
  border-radius: 0.5rem;
  background: #303641;
  box-shadow: none;
}

.app-card .card-header {
  border-bottom: 1px solid #4d5668;
  background: #2b313b !important;
}

.app-card-header-tabs {
  border-bottom: 0;
}

.app-card-header-tabs .nav-item + .nav-item {
  border-left: 1px solid #4d5668;
}

.app-card-header-tabs .nav-link {
  border: 0;
  border-radius: 0;
  color: #b9c7dd;
  font-weight: 600;
  padding: 0.72rem 0.85rem;
  background: transparent;
}

.app-card-header-tabs .nav-link:hover,
.app-card-header-tabs .nav-link:focus {
  border: 0;
  color: #d9e7f8;
  background: rgba(23, 145, 189, 0.14);
}

.app-card-header-tabs .nav-link.active {
  border: 0;
  color: #e4f3ff;
  background: rgba(23, 145, 189, 0.24);
}

.stat-card {
  border: 1px solid #50596a;
  border-radius: 0.7rem;
  padding: 0.95rem 1rem;
  background: #303641;
}

.stat-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9eabc1;
  margin-bottom: 0.35rem;
}

.stat-value {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1;
}

.module-card {
  border: 1px solid #50596a;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.module-card:hover {
  transform: translateY(-2px);
  border-color: #1791bd;
}

a.text-decoration-none .module-card {
  color: inherit;
}

a.text-decoration-none:hover .module-card {
  color: inherit;
}

.module-card .bi-chevron-right {
  transition: transform 0.15s ease;
}

.module-card:hover .bi-chevron-right {
  transform: translateX(2px);
}

.table {
  --bs-table-bg: transparent;
  --bs-table-color: #b4bfd5;
  --bs-table-border-color: #4e5768;
}

.table thead th {
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #9fb0c9;
}

.table-light,
.table-light > tr,
.table-light > tr > th,
.table-light > tr > td,
.table > :not(caption) > * > .table-light {
  --bs-table-bg: #2b313b;
  --bs-table-color: #afbed6;
}

.table-hover > tbody > tr:hover > * {
  --bs-table-bg-state: #2a303a;
}

.table-outer {
  border-color: #4f5869;
  border-radius: 0.7rem;
  background: #303641;
}

.empty-state {
  border: 1px dashed #59657a;
  border-radius: 0.75rem;
  padding: 1.1rem;
  text-align: center;
  color: #9ba9bf;
  background: rgba(25, 145, 189, 0.05);
}

.empty-state i {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 0.45rem;
  color: #56bdd8;
}

.priority-list-item {
  background: #2a303a;
  border-color: #4e5768;
  color: #cad4e6;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  cursor: pointer;
}

.priority-list-item:hover {
  background: #303641;
  color: #d4dded;
}

.priority-list-item.active,
.priority-list-item.active:hover {
  background: rgba(23, 145, 189, 0.2);
  color: #d8e7f8;
  border-color: #1791bd;
}

.priority-list-item .priority-select-checkbox {
  flex: 0 0 auto;
}

.priority-list-item .workflow-color-dot {
  flex: 0 0 auto;
  margin-top: 1px;
}

.priority-list-item .priority-name {
  line-height: 1.2;
}

.badge-soft {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.35rem 0.58rem;
  font-size: 0.72rem;
  font-weight: 600;
}

.badge-status-open {
  color: #72caf2;
  background: rgba(32, 161, 208, 0.15);
}

.badge-status-triage {
  color: #ffd47d;
  background: rgba(255, 200, 87, 0.15);
}

.badge-status-progress {
  color: #8ddbe8;
  background: rgba(23, 145, 189, 0.2);
}

.badge-status-done {
  color: #79d8b8;
  background: rgba(4, 167, 119, 0.2);
}

.badge-status-closed {
  color: #b7c2d7;
  background: rgba(134, 143, 160, 0.25);
}

.badge-soft-info {
  color: #8cd8f2;
  background: rgba(32, 161, 208, 0.18);
}

.badge-soft-muted {
  color: #b8c5da;
  background: rgba(134, 143, 160, 0.2);
}

.workflow-color-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.form-control,
.form-select {
  background-color: #2a303a;
  border-color: #545e70;
  color: #cad4e6;
}

.form-control:focus,
.form-select:focus {
  border-color: #1791bd;
  box-shadow: 0 0 0 0.2rem rgba(23, 145, 189, 0.2);
  background-color: #2a303a;
  color: #d4dded;
}

.form-control::placeholder {
  color: #8592a8;
}

.client-lookup-results {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  right: 0;
  z-index: 1080;
  background: #2b313b;
  border: 1px solid #4d5668;
  border-radius: 0.55rem;
  max-height: 260px;
  overflow-y: auto;
  padding: 0.35rem;
  display: grid;
  gap: 0.35rem;
}

.client-lookup-item {
  width: 100%;
  border: 1px solid #4d5668;
  border-radius: 0.55rem;
  background: #2a303a;
  color: #cad4e6;
  text-align: left;
  padding: 0.5rem 0.6rem;
  display: grid;
  gap: 0.25rem;
  cursor: pointer;
}

.client-lookup-item:hover {
  border-color: #1791bd;
  background: #303641;
}

.client-lookup-empty-state {
  border: 1px dashed #59657a;
  border-radius: 0.55rem;
  padding: 0.7rem;
  background: rgba(25, 145, 189, 0.06);
}

.client-form-grid .client-form-field {
  min-width: 220px;
}

.client-form-control {
  min-height: 42px;
}

.client-form-divider {
  border-color: #4f5869;
}

.ticket-create-ui .ticket-create-card {
  border: 1px solid #4d5668;
  border-radius: 0.75rem;
}

.ticket-create-ui .ticket-create-card > .card-body {
  padding: 1.3rem 1.4rem 1.45rem;
}

.ticket-create-ui .ticket-create-sections {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.ticket-create-ui .ticket-section {
  border: 1px solid #434c5d;
  border-radius: 0.7rem;
  padding: 1rem 1.1rem 1.2rem;
  background: #2b313b;
}

.ticket-create-ui .ticket-section-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid #3c4456;
}

.ticket-create-ui .ticket-section-icon {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 0.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid #4f586a;
  background: rgba(23, 145, 189, 0.14);
  color: #53bcd7;
  font-size: 1.05rem;
}

.ticket-create-ui .ticket-section-heading {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.ticket-create-ui .ticket-section-title {
  font-weight: 600;
  color: #dce7f6;
  font-size: 0.95rem;
}

.ticket-create-ui .ticket-section-subtitle {
  font-size: 0.78rem;
  color: #93a1b8;
  margin-top: 0.1rem;
}

.ticket-create-ui .ticket-create-form .form-label {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
  color: #9eabc1;
  margin-bottom: 0.35rem;
}

.ticket-create-ui .ticket-create-form .form-control,
.ticket-create-ui .ticket-create-form .form-select,
.ticket-create-ui .ticket-create-form .dropdown-toggle {
  min-height: 42px;
  padding: 0.45rem 0.7rem;
  font-size: 0.9rem;
  border-radius: 0.55rem;
}

.ticket-create-ui .ticket-dynamic-select-col {
  min-width: 0;
}

.ticket-create-ui .ticket-create-form .ticket-dynamic-select {
  width: 100%;
}

.ticket-create-ui .ticket-create-form textarea.form-control {
  min-height: 110px;
}

.ticket-create-ui .ticket-disclosure-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem 0.85rem;
  border: 1px solid #4d5668;
  border-radius: 0.55rem;
  background: #2a303a;
  color: #cad4e6;
  font-size: 0.9rem;
  font-weight: 600;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.ticket-create-ui .ticket-disclosure-toggle:hover,
.ticket-create-ui .ticket-disclosure-toggle:focus {
  border-color: #1791bd;
  color: #e3eefb;
}

.ticket-create-ui .ticket-disclosure-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.ticket-create-ui .ticket-disclosure-chevron {
  transition: transform 0.18s ease;
}

.ticket-create-ui .ticket-disclosure-toggle[aria-expanded="true"] .ticket-disclosure-chevron {
  transform: rotate(180deg);
}

.ticket-create-ui .ticket-attachments {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  border: 1px dashed #59657a;
  border-radius: 0.6rem;
  padding: 0.85rem 1rem;
  background: rgba(25, 145, 189, 0.05);
}

.ticket-create-ui .ticket-attachments-info {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.ticket-create-ui .ticket-attachments-icon {
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 0.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid #4f586a;
  background: #2a303a;
  color: #56bdd8;
  font-size: 1.1rem;
}

.ticket-create-ui .ticket-attachments-title {
  color: #d4dded;
  font-weight: 600;
  font-size: 0.88rem;
}

.ticket-create-ui .ticket-attachments-hint {
  color: #93a1b8;
  font-size: 0.78rem;
}

.ticket-create-ui .ticket-attachments input[type="file"] {
  flex: 1 1 240px;
  min-width: 200px;
}

.ticket-create-ui .ticket-create-form .btn {
  border-radius: 0.55rem;
}

.ticket-create-ui .ticket-create-form .btn.btn-primary,
.ticket-create-ui .ticket-create-form .btn.btn-outline-secondary {
  padding: 0.5rem 0.95rem;
}

.ticket-create-ui .ticket-create-footer {
  margin-top: 1.35rem;
  padding-top: 1.1rem;
  border-top: 1px solid #3c4456;
}

.ticket-create-ui .client-form-control {
  min-height: 36px;
}

.ticket-create-ui .modal .modal-body {
  padding: 0.95rem 1rem;
}

/*
  Modal "Novo Ticket" do Kanban: a grade do Bootstrap usa os breakpoints da janela
  (nao a largura do modal), entao Fluxo/Tipo/Titulo/Cliente ficariam apertados em
  uma unica linha num viewport largo. Aqui forcamos 2 campos por linha e trazemos
  os campos longos (Titulo e Cliente) para a linha de cima. Escopo apenas no modal
  (classe `ticket-basic-row--modal`) — a tela cheia de Novo Ticket nao muda.
*/
.ticket-create-ui .ticket-basic-row--modal > [class*="col-"] {
  flex: 0 0 auto;
  width: 50%;
}

.ticket-create-ui .ticket-basic-row--modal > .ticket-basic-titulo {
  order: 1;
}

.ticket-create-ui .ticket-basic-row--modal > .ticket-basic-cliente {
  order: 2;
}

.ticket-create-ui .ticket-basic-row--modal > .ticket-basic-fluxo {
  order: 3;
}

.ticket-create-ui .ticket-basic-row--modal > .ticket-basic-tipo {
  order: 4;
}

.ticket-create-ui .ticket-basic-row--modal > .ticket-basic-extra {
  order: 5;
  width: 100%;
}

@media (max-width: 575.98px) {
  .ticket-create-ui .ticket-basic-row--modal > [class*="col-"] {
    width: 100%;
  }
}

@media (max-width: 575.98px) {
  .ticket-create-ui .ticket-section {
    padding: 0.85rem 0.9rem 1rem;
  }

  .ticket-create-ui .ticket-attachments {
    align-items: flex-start;
  }
}

@media (max-width: 1199.98px) {
  .client-form-grid .client-form-field {
    min-width: 0;
  }
}

.workflow-dropdown .btn {
  background-color: #2a303a;
  border-color: #545e70;
  color: #cad4e6;
}

.workflow-dropdown .btn:hover,
.workflow-dropdown .btn:focus,
.workflow-dropdown .btn.show {
  border-color: #1791bd;
  box-shadow: 0 0 0 0.2rem rgba(23, 145, 189, 0.2);
  background-color: #2a303a;
  color: #d4dded;
}

.workflow-dropdown-menu {
  max-height: 260px;
  overflow-y: auto;
  background: #2b313b;
  border: 1px solid #4d5668;
}

.workflow-dropdown-item {
  color: #cad4e6;
}

.workflow-dropdown-item:hover {
  background: #303641;
}

.category-tree-menu {
  min-width: 230px;
}

.category-tree-menu .btn-link {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.category-tree-menu .dropdown-item {
  overflow: hidden;
  text-overflow: ellipsis;
}

.category-tree-menu .btn-outline-secondary {
  flex-shrink: 0;
}

.category-tree-label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

.kb-editor {
  min-height: 300px;
  white-space: pre-wrap;
  border-radius: 0.55rem;
}

.kpi-card .icon-box {
  background: rgba(23, 145, 189, 0.2);
}

.kpi-card h4,
.kpi-card .h4 {
  margin: 0;
}

.kpi-progress {
  height: 0.35rem;
  background: #2a303a;
}

.kanban-column {
  min-height: 420px;
}

.kanban-dropzone {
  min-height: 340px;
}

.kanban-dragging {
  opacity: 0.65;
  transform: scale(0.98);
}

.kanban-drop-hover {
  outline: 2px dashed #20a1d0;
  outline-offset: -2px;
}

.alert {
  border: 1px solid #59657a;
  border-radius: 0.65rem;
}

.alert-success {
  background: rgba(4, 167, 119, 0.14);
  color: #92dfc4;
}

.alert-danger {
  background: rgba(254, 95, 85, 0.12);
  color: #ffc0bb;
}

.wf-alert-portal {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1200;
  display: grid;
  gap: 0.65rem;
  width: min(92vw, 360px);
  pointer-events: none;
}

.wf-alert-modal {
  pointer-events: auto;
  border: 1px solid #59657a;
  border-radius: 0.75rem;
  background: #2b313b;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  transform: translateY(0);
  opacity: 1;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.wf-alert-modal.is-leaving {
  transform: translateY(8px);
  opacity: 0;
}

.wf-alert-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.7rem 0;
}

.wf-alert-icon {
  font-size: 0.95rem;
}

.wf-alert-title {
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.wf-alert-close {
  margin-left: auto;
  color: inherit;
  text-decoration: none;
  padding: 0;
}

.wf-alert-close:hover,
.wf-alert-close:focus {
  color: inherit;
}

.wf-alert-message {
  padding: 0.2rem 0.7rem 0.45rem;
  color: #d4dded;
  font-size: 0.88rem;
  line-height: 1.35;
}

.wf-alert-foot {
  padding: 0 0.7rem 0.45rem;
}

.wf-alert-counter {
  color: #99a8bf;
  font-size: 0.72rem;
}

.wf-alert-progress {
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
}

.wf-alert-progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  transition: width 1s linear;
}

.wf-alert-success {
  border-color: rgba(4, 167, 119, 0.55);
}

.wf-alert-success .wf-alert-icon,
.wf-alert-success .wf-alert-title {
  color: #92dfc4;
}

.wf-alert-success .wf-alert-progress-bar {
  background-color: #1eb980;
}

.wf-alert-error {
  border-color: rgba(254, 95, 85, 0.55);
}

.wf-alert-error .wf-alert-icon,
.wf-alert-error .wf-alert-title {
  color: #ffc0bb;
}

.wf-alert-error .wf-alert-progress-bar {
  background-color: #f45a52;
}

.wf-alert-warning {
  border-color: rgba(255, 193, 7, 0.6);
}

.wf-alert-warning .wf-alert-icon,
.wf-alert-warning .wf-alert-title {
  color: #ffe3a5;
}

.wf-alert-warning .wf-alert-progress-bar {
  background-color: #f2b934;
}

.wf-alert-info {
  border-color: rgba(32, 161, 208, 0.6);
}

.wf-alert-info .wf-alert-icon,
.wf-alert-info .wf-alert-title {
  color: #b6e9fb;
}

.wf-alert-info .wf-alert-progress-bar {
  background-color: #20a1d0;
}

.triage-ticket-context {
  border: 1px solid #4d6f88;
  border-radius: 0.75rem;
  padding: 0.9rem 1rem;
  background:
    linear-gradient(125deg, rgba(32, 161, 208, 0.2), rgba(23, 145, 189, 0.07)),
    #2b313b;
}

.triage-ticket-context-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.triage-ticket-context-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(122, 200, 228, 0.45);
  color: #8cd8f2;
  background: rgba(23, 145, 189, 0.22);
  flex-shrink: 0;
}

.triage-ticket-context-title {
  color: #d9e7f8;
  font-weight: 600;
  line-height: 1.25;
}

.triage-ticket-context-description {
  color: #9db1cb;
  font-size: 0.85rem;
  margin-top: 0.1rem;
}

.triage-ticket-context-tags {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.triage-ticket-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  background: rgba(23, 145, 189, 0.12);
  border: 1px solid rgba(113, 181, 208, 0.35);
  color: #c7d9ed;
  font-size: 0.76rem;
}

.triage-ticket-tag strong {
  margin-left: 0.2rem;
  font-weight: 700;
  color: #dff0ff;
}

.triage-handoff-note {
  border: 1px solid #4d6f88;
  border-radius: 0.65rem;
  padding: 0.65rem 0.75rem;
  background: rgba(23, 145, 189, 0.12);
  color: #b9cee7;
  font-size: 0.86rem;
}

.ticket-list-card,
.ticket-list-card .card-header,
.ticket-list-card .card-body {
  overflow: visible !important;
}

.ticket-list-actions > * {
  flex-shrink: 0;
}

.ticket-list-actions .btn {
  white-space: nowrap;
}

.ticket-filter-dropdown {
  position: relative;
}

.ticket-filter-toggle {
  border-radius: 2rem;
  min-height: 31px;
  padding-inline: 0.7rem;
}

.ticket-filter-toggle.is-active {
  border-color: #1791bd;
  color: #8cd8f2;
  background: rgba(23, 145, 189, 0.18);
}

.ticket-filter-menu {
  min-width: 300px;
  max-width: 340px;
  max-height: 360px;
  overflow-y: auto;
  background: #2b313b;
  z-index: 2200;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
  padding: 0.4rem !important;
}

.ticket-filter-form {
  display: grid;
  gap: 0.4rem;
}

.ticket-filter-section {
  border: 1px solid #4d5668;
  border-radius: 0.5rem;
  background: #2a303a;
  padding: 0.35rem;
}

.ticket-filter-section-title {
  margin: 0 0 0.2rem;
  font-size: 0.64rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9eabc1;
}

.ticket-filter-item {
  padding: 0.24rem 0.35rem;
  font-size: 0.84rem;
}

.ticket-filter-empty {
  padding: 0.3rem 0.35rem;
  font-size: 0.76rem;
  color: #93a4bc;
}

.ticket-filter-actions {
  display: flex;
  gap: 0.35rem;
  justify-content: flex-end;
  padding-top: 0.25rem;
}

.ticket-filter-actions .btn {
  min-height: 31px;
  border-radius: 0.55rem;
  padding-block: 0.2rem;
}

.ticket-column-filter-head {
  min-width: 128px;
  vertical-align: top;
}

.ticket-list-card .table-responsive {
  overflow: visible !important;
  position: relative;
}

.ticket-column-title {
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #c6d2e6;
  font-weight: 700;
  display: inline-block;
  white-space: nowrap;
}

.ticket-column-title-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #4d5668;
  border-radius: 0.5rem;
  background: #2b313b;
}

.ticket-column-title-table td {
  padding: 0.16rem 0.35rem;
  vertical-align: middle;
}

.ticket-column-title-table.is-active {
  border-color: #68758c;
  background: #313845;
}

.ticket-column-title-table.is-active .ticket-column-title {
  color: #d6e0ef;
}

.ticket-column-filter-cell {
  width: 1%;
  text-align: right;
  white-space: nowrap;
}

/* Modo de busca global: o filtro de topo (Arquivado) e os gatilhos de filtro por
   coluna ficam ocultos, deixando apenas os titulos das colunas. */
.ticket-list-card.is-search-mode .ticket-filter-dropdown,
.ticket-list-card.is-search-mode .ticket-column-filter-cell {
  display: none;
}

.ticket-search-fields-menu {
  min-width: 260px;
  max-height: 320px;
  overflow-y: auto;
}

.ticket-column-filter-spacer {
  width: 1.65rem;
  height: 1.65rem;
  display: inline-block;
  visibility: hidden;
}

.ticket-column-filter {
  position: relative;
}

.ticket-column-filter-trigger {
  width: 1.65rem;
  height: 1.65rem;
  padding: 0;
  border-radius: 999px;
  color: #c6d2e6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ticket-column-filter-trigger:hover {
  color: #e2ecfa;
  background: rgba(23, 145, 189, 0.16);
}

.ticket-column-filter-trigger.is-active {
  color: #8cd8f2;
  background: rgba(23, 145, 189, 0.18);
}

.ticket-column-filter-menu {
  min-width: 260px;
  max-width: 320px;
  max-height: 360px;
  overflow: visible;
  background: #2b313b;
  border: 1px solid #4d5668;
  z-index: 7000;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
}

.ticket-column-filter-menu,
.ticket-column-filter-menu * {
  text-transform: none;
}

.ticket-column-filter-toolbar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding-bottom: 0.4rem;
}

.ticket-column-filter-toolbar .form-control {
  flex: 1;
  min-width: 0;
}

.ticket-column-filter-toolbar .btn {
  flex-shrink: 0;
}

.ticket-column-filter-list {
  --ticket-filter-visible-items: 5;
  --ticket-filter-option-height: 32px;
  max-height: none;
  overflow-y: hidden;
  overflow-x: hidden;
  border: 1px solid #4d5668;
  border-radius: 0.5rem;
  background: #2a303a;
  padding: 0.25rem;
}

.ticket-column-filter-list.ticket-column-filter-list--scroll {
  max-height: calc(var(--ticket-filter-option-height) * var(--ticket-filter-visible-items) + 0.5rem);
  overflow-y: scroll;
}

.ticket-column-filter-option {
  font-size: 0.82rem;
  color: #c8d5e8;
  padding: 0.28rem 0.35rem;
  height: var(--ticket-filter-option-height);
  width: 100%;
  flex-wrap: nowrap;
}

.ticket-column-filter-option > span:last-child {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticket-column-filter-option:hover {
  background: rgba(23, 145, 189, 0.15);
}

.ticket-list-footer {
  border-top: 1px solid #4d5668;
  background: #2b313b;
}

.ticket-list-footer .btn {
  border-radius: 2rem;
}

.ticket-detail-ui .ticket-detail-info-field {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.ticket-detail-ui .ticket-detail-field-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem 1.25rem;
  align-items: start;
}

.ticket-detail-ui .ticket-history-text {
  white-space: pre-wrap;
  word-break: break-word;
}

.ticket-detail-ui .ticket-detail-field-grid + .ticket-detail-field-grid {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding-top: 0.85rem;
}

.ticket-detail-ui .ticket-detail-select {
  width: min(100%, 240px);
  min-width: 0;
}

.ticket-detail-ui .ticket-detail-category-dropdown {
  width: min(100%, 240px);
}

#kanbanTicketModal .ticket-detail-select,
#kanbanTicketModal .ticket-detail-category-dropdown {
  width: min(100%, 150px);
}

#kanbanTicketModal .ticket-detail-field-grid--controls .ticket-detail-info-field {
  flex-wrap: nowrap;
}

#kanbanTicketModal .ticket-detail-field-grid--controls .ticket-detail-select,
#kanbanTicketModal .ticket-detail-field-grid--controls .ticket-detail-category-dropdown {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
}

@media (max-width: 767.98px) {
  .ticket-detail-ui .ticket-detail-select,
  .ticket-detail-ui .ticket-detail-category-dropdown {
    width: 100%;
    min-width: 0;
  }

  .ticket-detail-ui .ticket-detail-field-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991.98px) {
  body {
    overflow: auto;
  }

  .login-form-panel {
    min-height: auto;
    background: #303641;
  }

  .login-split .auth-box {
    margin: 1rem auto;
  }

  .app-body {
    height: auto;
    min-height: calc(100vh - 210px);
  }
}

@media (max-width: 768px) {
  .page-header {
    flex-direction: column;
  }

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

  .page-actions .btn {
    width: 100%;
  }

  .triage-ticket-context-tags {
    flex-direction: column;
  }

  .ticket-filter-menu,
  .ticket-column-filter-menu {
    min-width: 280px;
    max-width: min(92vw, 320px);
    max-height: 320px;
  }

  .ticket-filter-actions .btn,
  .ticket-column-filter-toolbar .btn {
    flex: 1;
  }
}

/* =========================================================
   Tickets UI - reformulacao visual (Lista, Detalhes, Kanban, Modal)
   ========================================================= */

/* ---- Indicadores (Lista) ---- */
.tk-stat-card {
  --tk-accent: #20a1d0;
  --tk-accent-soft: rgba(32, 161, 208, 0.16);
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  height: 100%;
  padding: 1rem 1.1rem;
  border: 1px solid #4a5366;
  border-radius: 0.85rem;
  background: linear-gradient(160deg, #333a47, #2c323d);
  overflow: hidden;
}

.tk-stat-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--tk-accent);
}

.tk-stat-icon {
  flex: 0 0 auto;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--tk-accent);
  background: var(--tk-accent-soft);
  border: 1px solid var(--tk-accent-soft);
}

.tk-stat-value {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.1;
  color: #e8eefb;
}

.tk-stat-label {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #97a4bb;
}

.tk-stat-info {
  --tk-accent: #20a1d0;
  --tk-accent-soft: rgba(32, 161, 208, 0.16);
}

.tk-stat-primary {
  --tk-accent: #8ab4f8;
  --tk-accent-soft: rgba(138, 180, 248, 0.14);
}

.tk-stat-success {
  --tk-accent: #1eb980;
  --tk-accent-soft: rgba(30, 185, 128, 0.15);
}

.tk-stat-warning {
  --tk-accent: #f2b934;
  --tk-accent-soft: rgba(242, 185, 52, 0.14);
}

/* ---- Elementos compartilhados ---- */
.tk-code {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, "Cascadia Mono", Consolas, monospace;
  font-size: 0.76rem;
  font-weight: 600;
  color: #8cd8f2;
  background: rgba(32, 161, 208, 0.12);
  border: 1px solid rgba(32, 161, 208, 0.28);
  border-radius: 0.45rem;
  padding: 0.16rem 0.5rem;
  white-space: nowrap;
  line-height: 1.3;
}

.tk-stage-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  font-size: 0.74rem;
  font-weight: 600;
  white-space: nowrap;
}

.tk-stage-badge .workflow-color-dot {
  width: 8px;
  height: 8px;
  background: currentColor;
}

.tk-priority-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.24rem 0.6rem;
  border-radius: 999px;
  border: 1px solid #4a5366;
  background: #2a303a;
  color: #c8d5e8;
  white-space: nowrap;
}

.tk-priority-pill .workflow-color-dot {
  width: 8px;
  height: 8px;
}

.tk-chip {
  display: inline-block;
  font-size: 0.74rem;
  padding: 0.22rem 0.55rem;
  border-radius: 0.45rem;
  background: rgba(134, 143, 160, 0.14);
  border: 1px solid rgba(134, 143, 160, 0.28);
  color: #b8c5da;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}

.tk-avatar {
  flex: 0 0 auto;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #eaf6ff;
  background: linear-gradient(135deg, #1791bd, #136f91);
}

.tk-avatar-empty {
  background: #343c4a;
  color: #8b95a8;
  border: 1px dashed #59657a;
}

.tk-person {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  max-width: 100%;
}

.tk-person > span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tk-person-muted > span:last-child {
  color: #8b95a8;
}

.tk-sla {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: ui-monospace, SFMono-Regular, "Cascadia Mono", Consolas, monospace;
  font-size: 0.78rem;
  color: #b4bfd5;
  white-space: nowrap;
}

.tk-sla i {
  color: #56bdd8;
  font-size: 0.82rem;
}

/* SLA clock paused (outside configured business hours) */
.tk-sla.tk-sla-paused {
  color: #f0ad4e;
}

.tk-sla-paused-icon {
  color: #f0ad4e !important;
  margin-left: 0.15rem;
}

.tk-sla-paused-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 0.5rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: rgba(240, 173, 78, 0.16);
  color: #f0ad4e;
  font-size: 0.7rem;
  font-weight: 600;
  vertical-align: middle;
  white-space: nowrap;
}

.tk-sla-paused-badge i {
  font-size: 0.78rem;
}

.tk-archived-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.16rem 0.5rem;
  border-radius: 999px;
  color: #ffd9a8;
  background: rgba(242, 185, 52, 0.14);
  border: 1px solid rgba(242, 185, 52, 0.35);
  white-space: nowrap;
}

.tk-section-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9eabc1;
}

.tk-section-title i {
  color: #56bdd8;
  font-size: 0.9rem;
}

/* ---- Lista de tickets ---- */
.tk-row-title {
  font-weight: 600;
  color: #dbe5f5;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.ticket-list-card tbody td {
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.tk-row-action {
  width: 1.95rem;
  height: 1.95rem;
  padding: 0;
  border-radius: 0.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---- Kanban ---- */
.kanban-column {
  --stage-color: #20a1d0;
  border: 1px solid #4a5366;
  border-radius: 0.85rem;
  overflow: hidden;
  background: #2d333e;
}

.kanban-col-header {
  position: relative;
  padding-top: 0.85rem !important;
}

.kanban-col-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--stage-color);
}

.kanban-col-title {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: #dbe5f5;
  min-width: 0;
}

.kanban-col-title .workflow-color-dot {
  background: var(--stage-color);
}

.kanban-col-count {
  font-family: ui-monospace, SFMono-Regular, "Cascadia Mono", Consolas, monospace;
  font-size: 0.74rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.24rem 0.6rem;
}

.kanban-ticket {
  --tk-priority: #6c757d;
  position: relative;
  border: 1px solid #4a5366;
  border-left: 3px solid var(--tk-priority);
  border-radius: 0.65rem;
  background: #313845;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.kanban-ticket:hover,
.kanban-ticket:focus-visible {
  border-color: #1791bd;
  border-left-color: var(--tk-priority);
  transform: translateY(-1px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.22);
  outline: none;
}

.kanban-ticket .kt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.kanban-ticket .kt-priority {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--tk-priority);
  white-space: nowrap;
}

.kanban-ticket .kt-priority::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tk-priority);
}

.kanban-ticket .kt-title {
  font-weight: 600;
  color: #dde7f6;
  line-height: 1.3;
  margin-bottom: 0.45rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.kanban-ticket .kt-meta {
  display: grid;
  gap: 0.22rem;
  font-size: 0.76rem;
  color: #93a2ba;
}

.kanban-ticket .kt-meta i {
  color: #56bdd8;
  width: 1rem;
  display: inline-block;
}

.kanban-ticket .kt-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.55rem;
  padding-top: 0.5rem;
  border-top: 1px dashed rgba(148, 163, 184, 0.2);
  min-width: 0;
}

.kanban-ticket .kt-foot .tk-person {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.76rem;
  color: #b4bfd5;
}

/* ---- Modal do Kanban ---- */
.tk-modal-header {
  align-items: flex-start;
  gap: 0.75rem;
}

.tk-modal-title-icon {
  flex: 0 0 auto;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  color: #8cd8f2;
  background: rgba(32, 161, 208, 0.16);
  border: 1px solid rgba(32, 161, 208, 0.3);
}

.tk-modal-title-meta {
  font-size: 0.78rem;
  color: #93a2ba;
}

.tk-stat-tile {
  height: 100%;
  border: 1px solid #4a5366;
  border-radius: 0.7rem;
  padding: 0.8rem 0.9rem;
  background: linear-gradient(160deg, #323947, #2c323d);
}

.tk-stat-tile .stat-label {
  margin-bottom: 0.4rem;
}

.tk-stat-tile .stat-value {
  font-size: 1.4rem;
}

.tk-comment {
  border: 1px solid #454e5f;
  border-left: 3px solid #1791bd;
  border-radius: 0.55rem;
  background: #2a303a;
  padding: 0.55rem 0.7rem;
}

.tk-comment-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.74rem;
  color: #8b99b0;
  margin-bottom: 0.25rem;
  flex-wrap: wrap;
}

.tk-comment-meta strong {
  color: #c8d5e8;
}

/* Preserva a formatacao digitada (espacos e quebras de linha) sem usar innerHTML. */
.tk-comment-content {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ---- Detalhes do ticket ---- */
.tk-detail-hero {
  border: 1px solid #4a5366;
  border-radius: 0.85rem;
  background:
    radial-gradient(circle at 0% 0%, rgba(32, 161, 208, 0.14), rgba(48, 54, 65, 0) 50%),
    #303641;
  padding: 1.05rem 1.2rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.tk-detail-hero-main {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  min-width: 0;
}

.tk-detail-hero-text {
  min-width: 0;
}

.tk-detail-hero-title {
  margin: 0.3rem 0 0.25rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #e8eefb;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.tk-detail-hero-meta {
  margin: 0;
  font-size: 0.8rem;
  color: #97a4bb;
}

.tk-detail-hero .page-icon {
  flex: 0 0 auto;
}

.tk-detail-hero-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tk-file-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid #454e5f;
  border-radius: 0.6rem;
  background: #2a303a;
}

.tk-file-icon {
  flex: 0 0 auto;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #8cd8f2;
  background: rgba(32, 161, 208, 0.14);
}

.tk-file-body {
  min-width: 0;
  flex: 1 1 auto;
}

.tk-file-body a {
  color: #d4e4f7;
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.tk-file-body a:hover {
  color: #8cd8f2;
}

.tk-file-meta {
  font-size: 0.72rem;
  color: #8b99b0;
}

.tk-file-date {
  flex: 0 0 auto;
  font-size: 0.72rem;
  color: #8b99b0;
  white-space: nowrap;
}

.tk-file-remove {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.45rem;
  line-height: 1;
}

/* Detalhes — edição inline do título */
.tk-title-edit-btn {
  color: #8b99b0;
  text-decoration: none;
  line-height: 1;
}

.tk-title-edit-btn:hover {
  color: #20a1d0;
}

.tk-title-input-group {
  max-width: 520px;
}

.tk-client-name {
  font-weight: 500;
}

/* Botao de copia dos campos do cliente (modal detalhe e Kanban) */
.tk-copy-btn {
  line-height: 1;
}

/* Relatório de Tickets */
.report-table th {
  white-space: nowrap;
}

.report-solution-cell {
  max-width: 320px;
}

.report-solution-text {
  display: block;
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Caixa de colunas do relatório */
.report-columns-menu {
  min-width: 280px;
  max-height: 360px;
  overflow-y: auto;
}

.report-columns-list .report-column-item {
  padding-left: 0.25rem;
  padding-right: 0.25rem;
  border-radius: 0.4rem;
}

.report-columns-list .report-column-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.report-column-label {
  min-width: 0;
  font-size: 0.85rem;
}

.report-col-move {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.1rem 0.4rem;
  line-height: 1;
}

.tk-sla-stage-row {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.tk-sla-stage-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.tk-sla-stage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
}

.tk-sla-stage-name {
  font-size: 0.82rem;
  color: #b9c5d8;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tk-sla-stage-bar {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.tk-sla-stage-bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #1791bd, #56bdd8);
}

.tk-sla-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.7rem;
  margin-bottom: 0.5rem;
  border: 1px solid rgba(32, 161, 208, 0.3);
  border-radius: 0.6rem;
  background: rgba(32, 161, 208, 0.1);
  color: #c7d9ed;
  font-size: 0.84rem;
}

@media (max-width: 767.98px) {
  .tk-detail-hero {
    flex-direction: column;
  }

  .tk-detail-hero-actions {
    width: 100%;
  }

  .tk-detail-hero-actions .btn {
    flex: 1;
  }
}

/* ---- Lista de fluxos (Configurações > Fluxo) ---- */
.flow-stage-dots {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.flow-stage-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--flow-dot-color, #20a1d0);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2) inset;
}

.flow-stage-dot--terminal {
  border-radius: 3px;
}

