@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');:root {
  --text-muted: #6b7280;
}

@font-face {
  font-family: GenAD Segoe;
  src: url(/genad-segoe-regular.woff2) format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: GenAD Segoe;
  src: url(/genad-segoe-semibold.woff2) format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: GenAD Segoe;
  src: url(/genad-segoe-bold.woff2) format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: GenAD Segoe;
  src: url(/genad-segoe-italic.woff2) format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: GenAD Segoe;
  src: url(/genad-segoe-black.woff2) format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: GenAD Segoe;
  src: url(/genad-segoe-blackitalic.woff2) format("woff2");
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

/* Estilos base do sistema */

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  color: var(--text-color);
  background: transparent;
  overflow: hidden;
  min-height: 1080px;
  min-width: 1920px;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  /* Removidas duplicações de margin e padding já definidas no reset * */
}

h1 {
  font-size: 2.25rem;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

h2 {
  font-size: 1.875rem;
  margin-bottom: 1.5rem;
}

p {
  color:var(--text-muted);
  max-width: 65ch;
}

:root {
  /* Variáveis de cor primárias - valor único para --primary-color */
  --primary-color: #1a7f72;
  --primary-color-light: #bfe4df;
  --primary-hover: #0f6458;
  --app-name: 'GenTICKETS - Gestão de HelpDesk';
  --backg-color: #f8fafc;
  --secondary-color: #6b7280;
  --secondary-hover: #4b5563;
  --accent-color: #3b82f6;
  --success-color: #22c55e;
  --warning-color: #eab308;
  --danger-color: #dc2626;
  --danger-hover: #b91c1c;
  --text-color: #1f2937;

  --bg-color: #f9fafb;
  --border-color: #e5e7eb;
  --border-color-light: #e5e7eb;
  --text-muted: #6b7280;
  --grey-light: #d1d5db;
  --genad-font-family: "GenAD Segoe", "Segoe UI", -apple-system, BlinkMacSystemFont, "Roboto", "Helvetica Neue", Arial, sans-serif;
  --font-family: 'Segoe UI', system-ui, sans-serif;
  --font-size-base: 0.875rem;
  --line-height-base: 1.5;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --transition-default: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --header-height: 135px;
  --footer-height: 40px;
  --hero-section-height: 220px;
  --tecnico-photo-size: 96px;
  --main-content-height: calc(100vh - var(--header-height) - 40px);
  --tickets-layout-height: calc(100vh - var(--header-height) - var(--hero-section-height) - var(--footer-height) - 80px);
  --autor-info-height: calc(var(--tickets-layout-height) * 0.344);
  --autor-histo-height: calc(var(--tickets-layout-height) * 0.656);
  --col-lat-width: calc((100vw) * 0.195);
  --col-center-width: calc((100vw) * 0.568);
}

/* Layout principal */

.tickets-app-header-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  z-index: 1000;
  width: 100%;
  margin-bottom: 20px;

}

.ticket-item {
 background: white ;
 /*border-left: 3px solid var(--primary-color);*/
 border-radius: 6px;
 box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
 width: calc(var(--col-lat-width) - 45px);
 cursor: pointer;
 transition: transform 0.2s ease-in-out;
 margin: 10px;
 padding: 8px;
}

.ticket-item:hover {
  transform: translate(-6px);
  transition: transform 0.2s ease-in-out;
  box-shadow: 6px 6px 10px rgba(0, 0, 0, 0.5);
}

.tickets-app-header {
  width: 100%;
  margin: 0 auto;
  padding: 16px 12px 16px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  background-color: white;
  color: var(--primary-color);
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  margin-bottom: 10px;
  ;
  height: var(--header-height);
  max-width: 100vw;
  
}

.tickets-logout-btn{
  font-size: 0.8rem;
  color: var(--primary-color);
  text-decoration: none;
  padding: 2px 8px;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.2);
  border: 1px solid var(--primary-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tck-container {
  max-width: 100vw;
  min-width: 1920px;
  max-height: 100vh;
  width: 100%;;
  max-height: 100vh;
  width: 100%;
  height: 100%;
  padding: 0px;
  position: relative;
  background: var(--backg-color);
  
  margin: 0px;
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  z-index: 1; /* Garantir que fique abaixo do header */
}

#static-content {
  position: relative;
  z-index: 5;
  width: 100%;
  height: 100%;
}

/* Header e navegação */

.Header-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-height: 75px;
  justify-self: start;
}

.logo {
  width: auto;
  height: 75px;
  margin-right: 12px;
  border-radius: 8px;
  object-fit: cover;
  background: white;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease;
}

.main-content {
  max-height: var(--tickets-layout-height);
  max-width: 100vw;
  margin: 20px;
}

.logo:hover {
  transform: scale(1.05);
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: -0.02em;
}

.tickets-main-nav {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  justify-self: center;
}

.tickets-nav-link {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
  padding-bottom: 0.25rem;
}

.tickets-nav-link:hover {
  color: var(--primary-hover);
}

.tickets-nav-link:hover::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-hover);
  transform: scaleX(1);
  transition: transform 0.3s ease;
}

.tickets-nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
  transform: scaleX(1);
}

/* Estilos para o Dashboard */

.dashboard-content {
  padding: 1.5rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Botões e links */

.btn {
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  text-decoration: none;
  cursor: pointer;
  border: none;
  outline: none;
}

.btn-primary {
  background-color: var(--primary-color) !important;
  color: white !important;
  border: none !important;  
  width: 170px;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(26, 127, 114, 0.2);
}

.animated-button {
  transition: all 0.2s ease-in-out !important;
  position: relative;
  overflow: hidden;
  padding: 0 15px;
  height: 38px;
  min-width: 100px;
  font-size: 14px;
  cursor: pointer;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.animated-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.animated-button:active {
  transform: translateY(1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Seções de conteúdo */

/* Hero section removido - não usado */

.stats-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  padding: 0 4vw;
  margin-bottom: 2.5rem;
  width: 100%;
  justify-content: center;
}

.stat-card {
  background: #fff;
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e5e7eb;
  border-left-width: 5px;
  margin: 0 auto;
  width: 100%;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.stat-card span:first-child {
  font-size: 2.2rem;
  font-weight: 900;
}

/* Adicionando classes específicas para cada tipo de card */

.stat-card:nth-child(1) {
  border-left: 5px solid var(--primary-color);
}

.stat-card:nth-child(2) {
  border-left: 5px solid var(--success-color);
}

.stat-card:nth-child(3) {
  border-left: 5px solid var(--warning-color);
}

.stat-card:nth-child(4) {
  border-left: 5px solid var(--accent-color);
  margin-top: 0.8rem;
  font-family: 'Arial Rounded MT Bold', 'Segoe UI', 'Roboto', sans-serif;
  letter-spacing: -0.02em;
}

.stat-card span:last-child {
  color:var(--text-muted);
  font-size: 1.1rem;
  font-weight: 600;
  position: absolute;
  top: 1rem;
  left: 1rem;
}

/* Layout da página de tickets */

.tickets-layout {
  display: grid;
  grid-template-columns: 20% 57.9% 20%;
  gap: 20px;
  height: 100%;
  max-height: 100%;
  overflow: hidden;

}

.left-column,
.center-column,
.right-column {
  max-height: 100%;
}

.tickets-column {
  border: 1px solid var(--primary-color);
  overflow-y: auto;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  background-color:var(--backg-color);
  overflow: hidden;
  max-height: 100%; /* Altura da página - header - footer - 40px de margens */
  /* Removido overflow-y: auto para esconder as barras de rolagem */
}

.column-header {
  background-color: var(--primary-color);
  color: white;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 1.1rem;
}

/* tckBase.css - Column content - conteúdo das colunas laterais */

.column-content {
  overflow-y: auto;
  background: white;
  padding: 10px;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  height: calc(var(--tickets-layout-height) - 65px);
  max-width: var(--col-lat-width);
  border-left: 1px solid var(--primary-color);
  border-right: 1px solid var(--primary-color);
  border-bottom: 1px solid var(--primary-color);
}

/* tckBase.css - Left column content - lista de tickets pendentes */

.left-column-content {
  background-color: whitesmoke;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  align-items: baseline;
  text-align: left;
  min-width: 390px;
  width: calc(var(--col-lat-width) - 1px);
}

.column-content-dir {
  background-color: whitesmoke;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  /*/height: calc(100vh - 50px);*/
}

.right-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
  background-color: transparent;
  border: 0px;
  min-width: 390px;
  height: 100%;
  max-height: 100%;
}

.right-top {
  height: 40%;
  /*border: 1px solid #cce4e1;*/
  border-radius: 8px;
  margin-right: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-color: white;
}

.right-bottom {
  height: 60%;
  border: 1px solid #cce4e1;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  overflow-y:auto;
  background-color: white;
}

/* Elementos de Utilizador */

.user-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-color);
}

/* Footer */

.modern-footer {
    position: relative;
    left: 0;
    bottom: 0;
    width: 100%;
    max-width: 100vw;
    max-height: 40px;
    height: 100%;
    font-size: 14px;
    background:white;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    padding-left: 40px;
    padding-right: 40px;
    flex-direction: row;
    border-top: 1px solid #c5c5c5;
}

/* Seções de recursos */

.features-section {
  padding: 0 4vw 2rem 4vw;
}

.features-section h2 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.features-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  list-style: none;
  padding: 0;
}

.feature-item {
  background: white;
  border-radius: 0.75rem;
  padding: 1.2rem 1.5rem;
  font-size: 1.08rem;
  transition: all 0.3s ease;
  border-left: 4px solid var(--primary-color);
}

.feature-item:hover {
  border-left: 3px solid var(--primary-color);
  transform: translateX(5px);
  background: #fff;
  box-shadow: var(--shadow-md);
}

/* Responsividade */

/* Mobile e Tablets */

@media (max-width: 768px) {
  .hero-section {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1rem;
  }
  


.app-header {
  flex-direction: column;
  padding: 1rem;
  height: auto;
  margin: 0 20px 0 20px;
}

.main-nav {
  margin-top: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}
  
 
}
/* ==========================================================================
   Variáveis CSS Globais - GenTICKETS
   Implementação BEM - Fase 3.2
   Data: 16/06/2025
   ========================================================================== */

:root {
  /* ==========================================================================
     CORES PRINCIPAIS
     ========================================================================== */
  
  /* Cores Primárias GenTICKETS */
  --gt-primary: #005a4f;
  --gt-primary-dark: #004a40;
  --gt-primary-light: #00796b;
  --gt-primary-hover: #00695c;
  
  /* Cores Secundárias */
  --gt-secondary: #4b53bc;
  --gt-secondary-dark: #3a41a0;
  --gt-secondary-light: #6366f1;
  --gt-secondary-hover: #5b63d3;
  
  /* Cores de Estado */
  --gt-success: #10b981;
  --gt-success-light: #34d399;
  --gt-success-dark: #059669;
  
  --gt-warning: #f59e0b;
  --gt-warning-light: #fbbf24;
  --gt-warning-dark: #d97706;
  
  --gt-error: #ef4444;
  --gt-error-light: #f87171;
  --gt-error-dark: #dc2626;
  
  --gt-info: #3b82f6;
  --gt-info-light: #60a5fa;
  --gt-info-dark: #2563eb;
  
  /* ==========================================================================
     CORES DE TEXTO
     ========================================================================== */
  
  --gt-text-primary: #1f2937;
  --gt-text-secondary: #6b7280;
  --gt-text-muted: #9ca3af;
  --gt-text-light: #d1d5db;
  --gt-text-white: #ffffff;
  
  /* ==========================================================================
     CORES DE FUNDO
     ========================================================================== */
  
  --gt-bg-primary: #ffffff;
  --gt-bg-secondary: #f9fafb;
  --gt-bg-tertiary: #f3f4f6;
  --gt-bg-dark: #1f2937;
  --gt-bg-overlay: rgba(0, 0, 0, 0.5);
  
  /* ==========================================================================
     CORES DE BORDA
     ========================================================================== */
  
  --gt-border-light: #e5e7eb;
  --gt-border-medium: #d1d5db;
  --gt-border-dark: #9ca3af;
  --gt-border-focus: #3b82f6;
  
  /* ==========================================================================
     PRIORIDADES DE TICKET
     ========================================================================== */
  
  --gt-priority-baixa: #10b981;
  --gt-priority-normal: #3b82f6;
  --gt-priority-alta: #f59e0b;
  --gt-priority-urgente: #ef4444;
  --gt-priority-critica: #7c2d12;
  
  /* ==========================================================================
     ESTADOS DE TICKET
     ========================================================================== */
  
  --gt-status-aberto: #3b82f6;
  --gt-status-progresso: #f59e0b;
  --gt-status-pendente: #8b5cf6;
  --gt-status-resolvido: #10b981;
  --gt-status-fechado: #6b7280;
  
  /* ==========================================================================
     TIPOGRAFIA
     ========================================================================== */
  
  /* Famílias de Fonte */
  --gt-font-primary: 'Inter', system-ui, -apple-system, sans-serif;
  --gt-font-mono: 'Fira Code', 'Consolas', monospace;
  
  /* Tamanhos de Fonte */
  --gt-text-xs: 0.75rem;     /* 12px */
  --gt-text-sm: 0.875rem;    /* 14px */
  --gt-text-base: 1rem;      /* 16px */
  --gt-text-lg: 1.125rem;    /* 18px */
  --gt-text-xl: 1.25rem;     /* 20px */
  --gt-text-2xl: 1.5rem;     /* 24px */
  --gt-text-3xl: 1.875rem;   /* 30px */
  --gt-text-4xl: 2.25rem;    /* 36px */
  
  /* Pesos de Fonte */
  --gt-font-light: 300;
  --gt-font-normal: 400;
  --gt-font-medium: 500;
  --gt-font-semibold: 600;
  --gt-font-bold: 700;
  
  /* Altura de Linha */
  --gt-leading-tight: 1.25;
  --gt-leading-normal: 1.5;
  --gt-leading-relaxed: 1.75;
  
  /* ==========================================================================
     ESPAÇAMENTO
     ========================================================================== */
  
  --gt-space-0: 0;
  --gt-space-1: 0.25rem;     /* 4px */
  --gt-space-2: 0.5rem;      /* 8px */
  --gt-space-3: 0.75rem;     /* 12px */
  --gt-space-4: 1rem;        /* 16px */
  --gt-space-5: 1.25rem;     /* 20px */
  --gt-space-6: 1.5rem;      /* 24px */
  --gt-space-8: 2rem;        /* 32px */
  --gt-space-10: 2.5rem;     /* 40px */
  --gt-space-12: 3rem;       /* 48px */
  --gt-space-16: 4rem;       /* 64px */
  --gt-space-20: 5rem;       /* 80px */
  
  /* ==========================================================================
     RAIOS DE BORDA
     ========================================================================== */
  
  --gt-radius-none: 0;
  --gt-radius-sm: 0.125rem;   /* 2px */
  --gt-radius-base: 0.25rem;  /* 4px */
  --gt-radius-md: 0.375rem;   /* 6px */
  --gt-radius-lg: 0.5rem;     /* 8px */
  --gt-radius-xl: 0.75rem;    /* 12px */
  --gt-radius-2xl: 1rem;      /* 16px */
  --gt-radius-full: 9999px;
  
  /* ==========================================================================
     SOMBRAS
     ========================================================================== */
  
  --gt-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --gt-shadow-base: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --gt-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --gt-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --gt-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --gt-shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --gt-shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
  
  /* ==========================================================================
     TRANSIÇÕES
     ========================================================================== */
  
  --gt-transition-fast: 150ms ease-in-out;
  --gt-transition-base: 250ms ease-in-out;
  --gt-transition-slow: 350ms ease-in-out;
  
  /* ==========================================================================
     Z-INDEX
     ========================================================================== */
  
  --gt-z-dropdown: 1000;
  --gt-z-sticky: 1020;
  --gt-z-fixed: 1030;
  --gt-z-modal-backdrop: 1040;
  --gt-z-modal: 1050;
  --gt-z-popover: 1060;
  --gt-z-tooltip: 1070;
  --gt-z-toast: 1080;
  
  /* ==========================================================================
     BREAKPOINTS (para uso em media queries)
     ========================================================================== */
  
  --gt-screen-sm: 640px;
  --gt-screen-md: 768px;
  --gt-screen-lg: 1024px;
  --gt-screen-xl: 1280px;
  --gt-screen-2xl: 1536px;
  
  /* ==========================================================================
     COMPONENTES ESPECÍFICOS
     ========================================================================== */
  
  /* Chat GenChat */
  --gt-chat-bg: var(--gt-bg-primary);
  --gt-chat-border: var(--gt-border-light);
  --gt-chat-message-bg: var(--gt-bg-secondary);
  --gt-chat-message-own: var(--gt-primary-light);
  
  /* Tickets */
  --gt-ticket-bg: var(--gt-bg-primary);
  --gt-ticket-border: var(--gt-border-light);
  --gt-ticket-hover: var(--gt-bg-secondary);
  
  /* Formulários */
  --gt-form-bg: var(--gt-bg-primary);
  --gt-form-border: var(--gt-border-medium);
  --gt-form-focus: var(--gt-border-focus);
  --gt-form-error: var(--gt-error);
  
  /* Botões */
  --gt-btn-padding-sm: var(--gt-space-2) var(--gt-space-3);
  --gt-btn-padding-base: var(--gt-space-3) var(--gt-space-4);
  --gt-btn-padding-lg: var(--gt-space-4) var(--gt-space-6);
  
  /* ==========================================================================
     MODO ESCURO (para implementação futura)
     ========================================================================== */
  
  /* Será implementado numa fase posterior */
}

/* ==========================================================================
   CLASSES UTILITÁRIAS GLOBAIS
   ========================================================================== */

/* Reset básico para elementos BEM */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Classe para esconder elementos visualmente mas manter acessibilidade */
.gt-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;
}

/* Classe para transições suaves */
.gt-transition {
  transition: var(--gt-transition-base);
}

/* Classes para truncar texto */
.gt-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gt-line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gt-line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}/* ==========================================================================
   Estilos Principais - GenTICKETS
   Implementação BEM - Fase 3.2
   Data: 16/06/2025
   ========================================================================== */

/* ==========================================================================
   IMPORTAÇÕES BASE
   Fundações do sistema de design
   ========================================================================== */

/* Variáveis CSS globais */

/* ==========================================================================
   Variáveis CSS Globais - GenTICKETS
   Implementação BEM - Fase 3.2
   Data: 16/06/2025
   ========================================================================== */

:root {
  /* ==========================================================================
     CORES PRINCIPAIS
     ========================================================================== */
  
  /* Cores Primárias GenTICKETS */
  --gt-primary: #005a4f;
  --gt-primary-dark: #004a40;
  --gt-primary-light: #00796b;
  --gt-primary-hover: #00695c;
  
  /* Cores Secundárias */
  --gt-secondary: #4b53bc;
  --gt-secondary-dark: #3a41a0;
  --gt-secondary-light: #6366f1;
  --gt-secondary-hover: #5b63d3;
  
  /* Cores de Estado */
  --gt-success: #10b981;
  --gt-success-light: #34d399;
  --gt-success-dark: #059669;
  
  --gt-warning: #f59e0b;
  --gt-warning-light: #fbbf24;
  --gt-warning-dark: #d97706;
  
  --gt-error: #ef4444;
  --gt-error-light: #f87171;
  --gt-error-dark: #dc2626;
  
  --gt-info: #3b82f6;
  --gt-info-light: #60a5fa;
  --gt-info-dark: #2563eb;
  
  /* ==========================================================================
     CORES DE TEXTO
     ========================================================================== */
  
  --gt-text-primary: #1f2937;
  --gt-text-secondary: #6b7280;
  --gt-text-muted: #9ca3af;
  --gt-text-light: #d1d5db;
  --gt-text-white: #ffffff;
  
  /* ==========================================================================
     CORES DE FUNDO
     ========================================================================== */
  
  --gt-bg-primary: #ffffff;
  --gt-bg-secondary: #f9fafb;
  --gt-bg-tertiary: #f3f4f6;
  --gt-bg-dark: #1f2937;
  --gt-bg-overlay: rgba(0, 0, 0, 0.5);
  
  /* ==========================================================================
     CORES DE BORDA
     ========================================================================== */
  
  --gt-border-light: #e5e7eb;
  --gt-border-medium: #d1d5db;
  --gt-border-dark: #9ca3af;
  --gt-border-focus: #3b82f6;
  
  /* ==========================================================================
     PRIORIDADES DE TICKET
     ========================================================================== */
  
  --gt-priority-baixa: #10b981;
  --gt-priority-normal: #3b82f6;
  --gt-priority-alta: #f59e0b;
  --gt-priority-urgente: #ef4444;
  --gt-priority-critica: #7c2d12;
  
  /* ==========================================================================
     ESTADOS DE TICKET
     ========================================================================== */
  
  --gt-status-aberto: #3b82f6;
  --gt-status-progresso: #f59e0b;
  --gt-status-pendente: #8b5cf6;
  --gt-status-resolvido: #10b981;
  --gt-status-fechado: #6b7280;
  
  /* ==========================================================================
     TIPOGRAFIA
     ========================================================================== */
  
  /* Famílias de Fonte */
  --gt-font-primary: 'Inter', system-ui, -apple-system, sans-serif;
  --gt-font-mono: 'Fira Code', 'Consolas', monospace;
  
  /* Tamanhos de Fonte */
  --gt-text-xs: 0.75rem;     /* 12px */
  --gt-text-sm: 0.875rem;    /* 14px */
  --gt-text-base: 1rem;      /* 16px */
  --gt-text-lg: 1.125rem;    /* 18px */
  --gt-text-xl: 1.25rem;     /* 20px */
  --gt-text-2xl: 1.5rem;     /* 24px */
  --gt-text-3xl: 1.875rem;   /* 30px */
  --gt-text-4xl: 2.25rem;    /* 36px */
  
  /* Pesos de Fonte */
  --gt-font-light: 300;
  --gt-font-normal: 400;
  --gt-font-medium: 500;
  --gt-font-semibold: 600;
  --gt-font-bold: 700;
  
  /* Altura de Linha */
  --gt-leading-tight: 1.25;
  --gt-leading-normal: 1.5;
  --gt-leading-relaxed: 1.75;
  
  /* ==========================================================================
     ESPAÇAMENTO
     ========================================================================== */
  
  --gt-space-0: 0;
  --gt-space-1: 0.25rem;     /* 4px */
  --gt-space-2: 0.5rem;      /* 8px */
  --gt-space-3: 0.75rem;     /* 12px */
  --gt-space-4: 1rem;        /* 16px */
  --gt-space-5: 1.25rem;     /* 20px */
  --gt-space-6: 1.5rem;      /* 24px */
  --gt-space-8: 2rem;        /* 32px */
  --gt-space-10: 2.5rem;     /* 40px */
  --gt-space-12: 3rem;       /* 48px */
  --gt-space-16: 4rem;       /* 64px */
  --gt-space-20: 5rem;       /* 80px */
  
  /* ==========================================================================
     RAIOS DE BORDA
     ========================================================================== */
  
  --gt-radius-none: 0;
  --gt-radius-sm: 0.125rem;   /* 2px */
  --gt-radius-base: 0.25rem;  /* 4px */
  --gt-radius-md: 0.375rem;   /* 6px */
  --gt-radius-lg: 0.5rem;     /* 8px */
  --gt-radius-xl: 0.75rem;    /* 12px */
  --gt-radius-2xl: 1rem;      /* 16px */
  --gt-radius-full: 9999px;
  
  /* ==========================================================================
     SOMBRAS
     ========================================================================== */
  
  --gt-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --gt-shadow-base: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --gt-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --gt-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --gt-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --gt-shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --gt-shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
  
  /* ==========================================================================
     TRANSIÇÕES
     ========================================================================== */
  
  --gt-transition-fast: 150ms ease-in-out;
  --gt-transition-base: 250ms ease-in-out;
  --gt-transition-slow: 350ms ease-in-out;
  
  /* ==========================================================================
     Z-INDEX
     ========================================================================== */
  
  --gt-z-dropdown: 1000;
  --gt-z-sticky: 1020;
  --gt-z-fixed: 1030;
  --gt-z-modal-backdrop: 1040;
  --gt-z-modal: 1050;
  --gt-z-popover: 1060;
  --gt-z-tooltip: 1070;
  --gt-z-toast: 1080;
  
  /* ==========================================================================
     BREAKPOINTS (para uso em media queries)
     ========================================================================== */
  
  --gt-screen-sm: 640px;
  --gt-screen-md: 768px;
  --gt-screen-lg: 1024px;
  --gt-screen-xl: 1280px;
  --gt-screen-2xl: 1536px;
  
  /* ==========================================================================
     COMPONENTES ESPECÍFICOS
     ========================================================================== */
  
  /* Chat GenChat */
  --gt-chat-bg: var(--gt-bg-primary);
  --gt-chat-border: var(--gt-border-light);
  --gt-chat-message-bg: var(--gt-bg-secondary);
  --gt-chat-message-own: var(--gt-primary-light);
  
  /* Tickets */
  --gt-ticket-bg: var(--gt-bg-primary);
  --gt-ticket-border: var(--gt-border-light);
  --gt-ticket-hover: var(--gt-bg-secondary);
  
  /* Formulários */
  --gt-form-bg: var(--gt-bg-primary);
  --gt-form-border: var(--gt-border-medium);
  --gt-form-focus: var(--gt-border-focus);
  --gt-form-error: var(--gt-error);
  
  /* Botões */
  --gt-btn-padding-sm: var(--gt-space-2) var(--gt-space-3);
  --gt-btn-padding-base: var(--gt-space-3) var(--gt-space-4);
  --gt-btn-padding-lg: var(--gt-space-4) var(--gt-space-6);
  
  /* ==========================================================================
     MODO ESCURO (para implementação futura)
     ========================================================================== */
  
  /* Será implementado numa fase posterior */
}

/* ==========================================================================
   CLASSES UTILITÁRIAS GLOBAIS
   ========================================================================== */

/* Reset básico para elementos BEM */

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Classe para esconder elementos visualmente mas manter acessibilidade */

.gt-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;
}

/* Classe para transições suaves */

.gt-transition {
  transition: var(--gt-transition-base);
}

/* Classes para truncar texto */

.gt-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gt-line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

/* Reset e normalização */

/* ==========================================================================
   Reset CSS - GenTICKETS
   Implementação BEM - Fase 3.2
   Data: 16/06/2025
   ========================================================================== */

/* ==========================================================================
   RESET MODERNO E NORMALIZAÇÃO
   ========================================================================== */

/* Reset básico inspirado no Normalize.css e modern-css-reset */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Remove margens padrão */

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

/* Remove padding padrão de listas */

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Configuração base do HTML */

html {
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

/* Configuração base do body */

body {
  font-family: var(--gt-font-primary);
  font-size: var(--gt-text-base);
  line-height: var(--gt-leading-normal);
  color: var(--gt-text-primary);
  background-color: var(--gt-bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ==========================================================================
   ELEMENTOS DE TEXTO
   ========================================================================== */

/* Títulos */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: var(--gt-font-semibold);
  line-height: var(--gt-leading-tight);
  color: var(--gt-text-primary);
}

h1 {
  font-size: var(--gt-text-4xl);
}

h2 {
  font-size: var(--gt-text-3xl);
}

h3 {
  font-size: var(--gt-text-2xl);
}

h4 {
  font-size: var(--gt-text-xl);
}

h5 {
  font-size: var(--gt-text-lg);
}

h6 {
  font-size: var(--gt-text-base);
}

/* Parágrafos */

p {
  margin-bottom: var(--gt-space-4);
}

p:last-child {
  margin-bottom: 0;
}

/* Links */

a {
  color: var(--gt-primary);
  text-decoration: none;
  transition: var(--gt-transition-fast);
}

a:hover,
a:focus {
  color: var(--gt-primary-hover);
  text-decoration: underline;
}

a:focus {
  outline: 2px solid var(--gt-border-focus);
  outline-offset: 2px;
}

/* Texto em destaque */

strong,
b {
  font-weight: var(--gt-font-bold);
}

em,
i {
  font-style: italic;
}

small {
  font-size: var(--gt-text-sm);
}

/* Código */

code,
kbd,
samp,
pre {
  font-family: var(--gt-font-mono);
  font-size: var(--gt-text-sm);
}

code {
  background-color: var(--gt-bg-tertiary);
  padding: var(--gt-space-1) var(--gt-space-2);
  border-radius: var(--gt-radius-sm);
  color: var(--gt-text-primary);
}

pre {
  background-color: var(--gt-bg-tertiary);
  padding: var(--gt-space-4);
  border-radius: var(--gt-radius-base);
  overflow-x: auto;
  line-height: var(--gt-leading-normal);
}

pre code {
  background-color: transparent;
  padding: 0;
  border-radius: 0;
}

/* ==========================================================================
   ELEMENTOS DE FORMULÁRIO
   ========================================================================== */

/* Reset de formulários */

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
  background-color: transparent;
  border: none;
  outline: none;
}

/* Inputs */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
textarea,
select {
  width: 100%;
  padding: var(--gt-space-3);
  border: 1px solid var(--gt-form-border);
  border-radius: var(--gt-radius-base);
  background-color: var(--gt-form-bg);
  transition: var(--gt-transition-fast);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
input[type="datetime-local"]:focus,
textarea:focus,
select:focus {
  border-color: var(--gt-form-focus);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Textarea específico */

textarea {
  resize: vertical;
  min-height: 100px;
}

/* Checkboxes e radio buttons */

input[type="checkbox"],
input[type="radio"] {
  width: auto;
  margin-right: var(--gt-space-2);
}

/* Labels */

label {
  display: block;
  font-weight: var(--gt-font-medium);
  margin-bottom: var(--gt-space-2);
  color: var(--gt-text-primary);
}

/* Fieldsets */

fieldset {
  border: 1px solid var(--gt-border-light);
  border-radius: var(--gt-radius-base);
  padding: var(--gt-space-4);
  margin-bottom: var(--gt-space-4);
}

legend {
  font-weight: var(--gt-font-semibold);
  padding: 0 var(--gt-space-2);
  color: var(--gt-text-primary);
}

/* ==========================================================================
   ELEMENTOS DE MÍDIA
   ========================================================================== */

/* Imagens responsivas */

img,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block;
  max-width: 100%;
  height: auto;
}

/* SVGs */

svg {
  display: block;
  max-width: 100%;
  height: auto;
  fill: currentColor;
}

/* ==========================================================================
   ELEMENTOS DE TABELA
   ========================================================================== */

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

th,
td {
  padding: var(--gt-space-3);
  text-align: left;
  border-bottom: 1px solid var(--gt-border-light);
}

th {
  font-weight: var(--gt-font-semibold);
  color: var(--gt-text-primary);
  background-color: var(--gt-bg-secondary);
}

/* ==========================================================================
   ELEMENTOS DE LAYOUT
   ========================================================================== */

/* Containers */

main {
  display: block;
}

/* Seções */

section,
article,
aside,
header,
footer,
nav {
  display: block;
}

/* Divisores */

hr {
  height: 1px;
  background-color: var(--gt-border-light);
  border: none;
  margin: var(--gt-space-8) 0;
}

/* ==========================================================================
   ELEMENTOS INTERATIVOS
   ========================================================================== */

/* Botões */

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
  padding: 0;
  margin: 0;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

/* Links que parecem botões */

a[role="button"] {
  cursor: pointer;
  user-select: none;
}

/* ==========================================================================
   ELEMENTOS DE LISTA
   ========================================================================== */

/* Reset de listas */

ul,
ol {
  list-style: none;
}

/* Listas com marcadores (quando necessário) */

.gt-list--bulleted {
  list-style: disc;
  padding-left: var(--gt-space-6);
}

.gt-list--numbered {
  list-style: decimal;
  padding-left: var(--gt-space-6);
}

/* ==========================================================================
   ACESSIBILIDADE
   ========================================================================== */

/* Foco visível para navegação por teclado */

:focus-visible {
  outline: 2px solid var(--gt-border-focus);
  outline-offset: 2px;
}

/* Remove outline padrão quando focus-visible é suportado */

:focus:not(:focus-visible) {
  outline: none;
}

/* Redução de movimento para usuários que preferem */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: transparent !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  
  a,
  a:visited {
    text-decoration: underline;
  }
  
  a[href]::after {
    content: " (" attr(href) ")";
  }
  
  abbr[title]::after {
    content: " (" attr(title) ")";
  }
  
  pre {
    white-space: pre-wrap !important;
  }
  
  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }
  
  thead {
    display: table-header-group;
  }
  
  tr,
  img {
    page-break-inside: avoid;
  }
  
  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }
  
  h2,
  h3 {
    page-break-after: avoid;
  }
}

/* Sistema de tipografia */

/* ==========================================================================
   Tipografia - GenTICKETS
   Implementação BEM - Fase 3.2
   Data: 16/06/2025
   ========================================================================== */

/* ==========================================================================
   CLASSES DE TIPOGRAFIA BEM
   ========================================================================== */

/* ==========================================================================
   BLOCO: gt-heading
   Títulos e cabeçalhos do sistema
   ========================================================================== */

.gt-heading {
  font-family: var(--gt-font-primary);
  font-weight: var(--gt-font-semibold);
  line-height: var(--gt-leading-tight);
  color: var(--gt-text-primary);
  margin-bottom: var(--gt-space-4);
}

/* Modificadores de tamanho */

.gt-heading--xs {
  font-size: var(--gt-text-lg);
  font-weight: var(--gt-font-medium);
}

.gt-heading--sm {
  font-size: var(--gt-text-xl);
}

.gt-heading--base {
  font-size: var(--gt-text-2xl);
}

.gt-heading--lg {
  font-size: var(--gt-text-3xl);
}

.gt-heading--xl {
  font-size: var(--gt-text-4xl);
}

/* Modificadores de peso */

.gt-heading--light {
  font-weight: var(--gt-font-light);
}

.gt-heading--normal {
  font-weight: var(--gt-font-normal);
}

.gt-heading--medium {
  font-weight: var(--gt-font-medium);
}

.gt-heading--semibold {
  font-weight: var(--gt-font-semibold);
}

.gt-heading--bold {
  font-weight: var(--gt-font-bold);
}

/* Modificadores de cor */

.gt-heading--primary {
  color: var(--gt-primary);
}

.gt-heading--secondary {
  color: var(--gt-text-secondary);
}

.gt-heading--muted {
  color: var(--gt-text-muted);
}

.gt-heading--white {
  color: var(--gt-text-white);
}

/* Modificadores de espaçamento */

.gt-heading--no-margin {
  margin-bottom: 0;
}

.gt-heading--tight {
  margin-bottom: var(--gt-space-2);
}

.gt-heading--loose {
  margin-bottom: var(--gt-space-6);
}

/* ==========================================================================
   BLOCO: gt-text
   Texto de corpo e parágrafos
   ========================================================================== */

.gt-text {
  font-family: var(--gt-font-primary);
  font-size: var(--gt-text-base);
  font-weight: var(--gt-font-normal);
  line-height: var(--gt-leading-normal);
  color: var(--gt-text-primary);
  margin-bottom: var(--gt-space-4);
}

/* Modificadores de tamanho */

.gt-text--xs {
  font-size: var(--gt-text-xs);
}

.gt-text--sm {
  font-size: var(--gt-text-sm);
}

.gt-text--base {
  font-size: var(--gt-text-base);
}

.gt-text--lg {
  font-size: var(--gt-text-lg);
}

.gt-text--xl {
  font-size: var(--gt-text-xl);
}

/* Modificadores de peso */

.gt-text--light {
  font-weight: var(--gt-font-light);
}

.gt-text--normal {
  font-weight: var(--gt-font-normal);
}

.gt-text--medium {
  font-weight: var(--gt-font-medium);
}

.gt-text--semibold {
  font-weight: var(--gt-font-semibold);
}

.gt-text--bold {
  font-weight: var(--gt-font-bold);
}

/* Modificadores de cor */

.gt-text--primary {
  color: var(--gt-text-primary);
}

.gt-text--secondary {
  color: var(--gt-text-secondary);
}

.gt-text--muted {
  color: var(--gt-text-muted);
}

.gt-text--light {
  color: var(--gt-text-light);
}

.gt-text--white {
  color: var(--gt-text-white);
}

.gt-text--success {
  color: var(--gt-success);
}

.gt-text--warning {
  color: var(--gt-warning);
}

.gt-text--error {
  color: var(--gt-error);
}

.gt-text--info {
  color: var(--gt-info);
}

/* Modificadores de altura de linha */

.gt-text--tight {
  line-height: var(--gt-leading-tight);
}

.gt-text--normal {
  line-height: var(--gt-leading-normal);
}

.gt-text--relaxed {
  line-height: var(--gt-leading-relaxed);
}

/* Modificadores de espaçamento */

.gt-text--no-margin {
  margin-bottom: 0;
}

.gt-text--tight-margin {
  margin-bottom: var(--gt-space-2);
}

.gt-text--loose-margin {
  margin-bottom: var(--gt-space-6);
}

/* Modificadores de alinhamento */

.gt-text--left {
  text-align: left;
}

.gt-text--center {
  text-align: center;
}

.gt-text--right {
  text-align: right;
}

.gt-text--justify {
  text-align: justify;
}

/* Modificadores de transformação */

.gt-text--uppercase {
  text-transform: uppercase;
}

.gt-text--lowercase {
  text-transform: lowercase;
}

.gt-text--capitalize {
  text-transform: capitalize;
}

/* Modificadores de truncamento */

.gt-text--truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gt-text--break {
  word-break: break-word;
  overflow-wrap: break-word;
}

/* ==========================================================================
   BLOCO: gt-label
   Labels de formulários e identificadores
   ========================================================================== */

.gt-label {
  font-family: var(--gt-font-primary);
  font-size: var(--gt-text-sm);
  font-weight: var(--gt-font-medium);
  line-height: var(--gt-leading-normal);
  color: var(--gt-text-primary);
  display: block;
  margin-bottom: var(--gt-space-2);
}

/* Modificadores de tamanho */

.gt-label--xs {
  font-size: var(--gt-text-xs);
}

.gt-label--sm {
  font-size: var(--gt-text-sm);
}

.gt-label--base {
  font-size: var(--gt-text-base);
}

/* Modificadores de peso */

.gt-label--normal {
  font-weight: var(--gt-font-normal);
}

.gt-label--medium {
  font-weight: var(--gt-font-medium);
}

.gt-label--semibold {
  font-weight: var(--gt-font-semibold);
}

/* Modificadores de cor */

.gt-label--primary {
  color: var(--gt-text-primary);
}

.gt-label--secondary {
  color: var(--gt-text-secondary);
}

.gt-label--muted {
  color: var(--gt-text-muted);
}

.gt-label--required {
  color: var(--gt-error);
}

/* Elementos de label */

.gt-label__required {
  color: var(--gt-error);
  margin-left: var(--gt-space-1);
}

.gt-label__optional {
  color: var(--gt-text-muted);
  font-weight: var(--gt-font-normal);
  margin-left: var(--gt-space-1);
}

/* Modificadores de display */

.gt-label--inline {
  display: inline-block;
  margin-right: var(--gt-space-3);
  margin-bottom: 0;
}

/* ==========================================================================
   BLOCO: gt-code
   Código e texto monospace
   ========================================================================== */

.gt-code {
  font-family: var(--gt-font-mono);
  font-size: var(--gt-text-sm);
  background-color: var(--gt-bg-tertiary);
  color: var(--gt-text-primary);
  padding: var(--gt-space-1) var(--gt-space-2);
  border-radius: var(--gt-radius-sm);
  border: 1px solid var(--gt-border-light);
}

/* Modificadores de tamanho */

.gt-code--xs {
  font-size: var(--gt-text-xs);
}

.gt-code--sm {
  font-size: var(--gt-text-sm);
}

.gt-code--base {
  font-size: var(--gt-text-base);
}

/* Modificadores de display */

.gt-code--block {
  display: block;
  padding: var(--gt-space-4);
  margin: var(--gt-space-4) 0;
  overflow-x: auto;
  white-space: pre;
}

.gt-code--inline {
  display: inline;
  padding: var(--gt-space-1) var(--gt-space-2);
}

/* ==========================================================================
   BLOCO: gt-link
   Links e elementos clicáveis
   ========================================================================== */

.gt-link {
  color: var(--gt-primary);
  text-decoration: none;
  transition: var(--gt-transition-fast);
  cursor: pointer;
}

.gt-link:hover,
.gt-link:focus {
  color: var(--gt-primary-hover);
  text-decoration: underline;
}

.gt-link:focus {
  outline: 2px solid var(--gt-border-focus);
  outline-offset: 2px;
}

/* Modificadores de cor */

.gt-link--primary {
  color: var(--gt-primary);
}

.gt-link--primary:hover,
.gt-link--primary:focus {
  color: var(--gt-primary-hover);
}

.gt-link--secondary {
  color: var(--gt-secondary);
}

.gt-link--secondary:hover,
.gt-link--secondary:focus {
  color: var(--gt-secondary-hover);
}

.gt-link--muted {
  color: var(--gt-text-muted);
}

.gt-link--muted:hover,
.gt-link--muted:focus {
  color: var(--gt-text-primary);
}

.gt-link--white {
  color: var(--gt-text-white);
}

.gt-link--white:hover,
.gt-link--white:focus {
  color: var(--gt-text-light);
}

/* Modificadores de decoração */

.gt-link--underlined {
  text-decoration: underline;
}

.gt-link--no-underline {
  text-decoration: none;
}

.gt-link--no-underline:hover,
.gt-link--no-underline:focus {
  text-decoration: none;
}

/* Modificadores de peso */

.gt-link--normal {
  font-weight: var(--gt-font-normal);
}

.gt-link--medium {
  font-weight: var(--gt-font-medium);
}

.gt-link--semibold {
  font-weight: var(--gt-font-semibold);
}

/* ==========================================================================
   BLOCO: gt-badge
   Badges e etiquetas de texto
   ========================================================================== */

.gt-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--gt-font-primary);
  font-size: var(--gt-text-xs);
  font-weight: var(--gt-font-medium);
  line-height: 1;
  padding: var(--gt-space-1) var(--gt-space-2);
  border-radius: var(--gt-radius-full);
  background-color: var(--gt-bg-tertiary);
  color: var(--gt-text-primary);
  border: 1px solid var(--gt-border-light);
}

/* Modificadores de tamanho */

.gt-badge--xs {
  font-size: 0.625rem; /* 10px */
  padding: 2px var(--gt-space-1);
}

.gt-badge--sm {
  font-size: var(--gt-text-xs);
  padding: var(--gt-space-1) var(--gt-space-2);
}

.gt-badge--base {
  font-size: var(--gt-text-sm);
  padding: var(--gt-space-2) var(--gt-space-3);
}

/* Modificadores de cor */

.gt-badge--primary {
  background-color: var(--gt-primary);
  color: var(--gt-text-white);
  border-color: var(--gt-primary);
}

.gt-badge--secondary {
  background-color: var(--gt-secondary);
  color: var(--gt-text-white);
  border-color: var(--gt-secondary);
}

.gt-badge--success {
  background-color: var(--gt-success);
  color: var(--gt-text-white);
  border-color: var(--gt-success);
}

.gt-badge--warning {
  background-color: var(--gt-warning);
  color: var(--gt-text-white);
  border-color: var(--gt-warning);
}

.gt-badge--error {
  background-color: var(--gt-error);
  color: var(--gt-text-white);
  border-color: var(--gt-error);
}

.gt-badge--info {
  background-color: var(--gt-info);
  color: var(--gt-text-white);
  border-color: var(--gt-info);
}

/* Modificadores de variante */

.gt-badge--outline {
  background-color: transparent;
  color: var(--gt-text-primary);
  border-color: var(--gt-border-medium);
}

.gt-badge--outline.gt-badge--primary {
  color: var(--gt-primary);
  border-color: var(--gt-primary);
}

.gt-badge--outline.gt-badge--secondary {
  color: var(--gt-secondary);
  border-color: var(--gt-secondary);
}

.gt-badge--outline.gt-badge--success {
  color: var(--gt-success);
  border-color: var(--gt-success);
}

.gt-badge--outline.gt-badge--warning {
  color: var(--gt-warning);
  border-color: var(--gt-warning);
}

.gt-badge--outline.gt-badge--error {
  color: var(--gt-error);
  border-color: var(--gt-error);
}

.gt-badge--outline.gt-badge--info {
  color: var(--gt-info);
  border-color: var(--gt-info);
}

/* Elementos de badge */

.gt-badge__icon {
  margin-right: var(--gt-space-1);
  width: 12px;
  height: 12px;
}

.gt-badge__icon--right {
  margin-right: 0;
  margin-left: var(--gt-space-1);
}

/* ==========================================================================
   CLASSES UTILITÁRIAS DE TIPOGRAFIA
   ========================================================================== */

/* Truncamento de texto */

.gt-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gt-line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gt-line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

/* Quebra de palavra */

.gt-break-words {
  word-break: break-word;
  overflow-wrap: break-word;
}

.gt-break-all {
  word-break: break-all;
}

/* Espaçamento em branco */

.gt-whitespace-normal {
  white-space: normal;
}

.gt-whitespace-nowrap {
  white-space: nowrap;
}

.gt-whitespace-pre {
  white-space: pre;
}

.gt-whitespace-pre-line {
  white-space: pre-line;
}

.gt-whitespace-pre-wrap {
  white-space: pre-wrap;
}

/* Seleção de texto */

.gt-select-none {
  user-select: none;
}

.gt-select-text {
  user-select: text;
}

.gt-select-all {
  user-select: all;
}

/* ==========================================================================
   RESPONSIVE TYPOGRAPHY
   ========================================================================== */

/* Ajustes responsivos para títulos */

@media (max-width: 768px) {
  .gt-heading--xl {
    font-size: var(--gt-text-3xl);
  }
  
  .gt-heading--lg {
    font-size: var(--gt-text-2xl);
  }
  
  .gt-heading--base {
    font-size: var(--gt-text-xl);
  }
}

@media (max-width: 480px) {
  .gt-heading--xl {
    font-size: var(--gt-text-2xl);
  }
  
  .gt-heading--lg {
    font-size: var(--gt-text-xl);
  }
  
  .gt-heading--base {
    font-size: var(--gt-text-lg);
  }
}

/* ==========================================================================
   IMPORTAÇÕES DE COMPONENTES
   Componentes reutilizáveis seguindo BEM
   ========================================================================== */

/* Botões */

/* ==========================================================================
   Componente: Botões - GenTICKETS
   Implementação BEM - Fase 3.2
   Data: 16/06/2025
   ========================================================================== */

/* ==========================================================================
   BLOCO: gt-btn
   Botões principais do sistema
   ========================================================================== */

.gt-btn {
  /* Layout */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--gt-space-2);
  
  /* Tipografia */
  font-family: var(--gt-font-primary);
  font-size: var(--gt-text-sm);
  font-weight: var(--gt-font-medium);
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  
  /* Espaçamento */
  padding: var(--gt-btn-padding-base);
  
  /* Visual */
  border: 1px solid transparent;
  border-radius: var(--gt-radius-base);
  background-color: var(--gt-bg-secondary);
  color: var(--gt-text-primary);
  
  /* Interação */
  cursor: pointer;
  user-select: none;
  transition: var(--gt-transition-fast);
  
  /* Estados */
  outline: none;
}

.gt-btn:hover {
  background-color: var(--gt-bg-tertiary);
  transform: translateY(-1px);
  box-shadow: var(--gt-shadow-sm);
}

.gt-btn:focus {
  outline: 2px solid var(--gt-border-focus);
  outline-offset: 2px;
}

.gt-btn:active {
  transform: translateY(0);
  box-shadow: var(--gt-shadow-inner);
}

.gt-btn:disabled,
.gt-btn--disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
  box-shadow: none;
}

/* ==========================================================================
   MODIFICADORES DE VARIANTE
   ========================================================================== */

/* Botão Primário */

.gt-btn--primary {
  background-color: var(--gt-primary);
  color: var(--gt-text-white);
  border-color: var(--gt-primary);
}

.gt-btn--primary:hover {
  background-color: var(--gt-primary-hover);
  border-color: var(--gt-primary-hover);
}

.gt-btn--primary:active {
  background-color: var(--gt-primary-dark);
  border-color: var(--gt-primary-dark);
}

/* Botão Secundário */

.gt-btn--secondary {
  background-color: var(--gt-secondary);
  color: var(--gt-text-white);
  border-color: var(--gt-secondary);
}

.gt-btn--secondary:hover {
  background-color: var(--gt-secondary-hover);
  border-color: var(--gt-secondary-hover);
}

.gt-btn--secondary:active {
  background-color: var(--gt-secondary-dark);
  border-color: var(--gt-secondary-dark);
}

/* Botão de Sucesso */

.gt-btn--success {
  background-color: var(--gt-success);
  color: var(--gt-text-white);
  border-color: var(--gt-success);
}

.gt-btn--success:hover {
  background-color: var(--gt-success-light);
  border-color: var(--gt-success-light);
}

.gt-btn--success:active {
  background-color: var(--gt-success-dark);
  border-color: var(--gt-success-dark);
}

/* Botão de Aviso */

.gt-btn--warning {
  background-color: var(--gt-warning);
  color: var(--gt-text-white);
  border-color: var(--gt-warning);
}

.gt-btn--warning:hover {
  background-color: var(--gt-warning-light);
  border-color: var(--gt-warning-light);
}

.gt-btn--warning:active {
  background-color: var(--gt-warning-dark);
  border-color: var(--gt-warning-dark);
}

/* Botão de Erro */

.gt-btn--error {
  background-color: var(--gt-error);
  color: var(--gt-text-white);
  border-color: var(--gt-error);
}

.gt-btn--error:hover {
  background-color: var(--gt-error-light);
  border-color: var(--gt-error-light);
}

.gt-btn--error:active {
  background-color: var(--gt-error-dark);
  border-color: var(--gt-error-dark);
}

/* Botão de Informação */

.gt-btn--info {
  background-color: var(--gt-info);
  color: var(--gt-text-white);
  border-color: var(--gt-info);
}

.gt-btn--info:hover {
  background-color: var(--gt-info-light);
  border-color: var(--gt-info-light);
}

.gt-btn--info:active {
  background-color: var(--gt-info-dark);
  border-color: var(--gt-info-dark);
}

/* ==========================================================================
   MODIFICADORES DE ESTILO
   ========================================================================== */

/* Botão Outline */

.gt-btn--outline {
  background-color: transparent;
  color: var(--gt-text-primary);
  border-color: var(--gt-border-medium);
}

.gt-btn--outline:hover {
  background-color: var(--gt-bg-secondary);
  border-color: var(--gt-border-dark);
}

.gt-btn--outline.gt-btn--primary {
  color: var(--gt-primary);
  border-color: var(--gt-primary);
}

.gt-btn--outline.gt-btn--primary:hover {
  background-color: var(--gt-primary);
  color: var(--gt-text-white);
}

.gt-btn--outline.gt-btn--secondary {
  color: var(--gt-secondary);
  border-color: var(--gt-secondary);
}

.gt-btn--outline.gt-btn--secondary:hover {
  background-color: var(--gt-secondary);
  color: var(--gt-text-white);
}

.gt-btn--outline.gt-btn--success {
  color: var(--gt-success);
  border-color: var(--gt-success);
}

.gt-btn--outline.gt-btn--success:hover {
  background-color: var(--gt-success);
  color: var(--gt-text-white);
}

.gt-btn--outline.gt-btn--warning {
  color: var(--gt-warning);
  border-color: var(--gt-warning);
}

.gt-btn--outline.gt-btn--warning:hover {
  background-color: var(--gt-warning);
  color: var(--gt-text-white);
}

.gt-btn--outline.gt-btn--error {
  color: var(--gt-error);
  border-color: var(--gt-error);
}

.gt-btn--outline.gt-btn--error:hover {
  background-color: var(--gt-error);
  color: var(--gt-text-white);
}

.gt-btn--outline.gt-btn--info {
  color: var(--gt-info);
  border-color: var(--gt-info);
}

.gt-btn--outline.gt-btn--info:hover {
  background-color: var(--gt-info);
  color: var(--gt-text-white);
}

/* Botão Ghost */

.gt-btn--ghost {
  background-color: transparent;
  color: var(--gt-text-primary);
  border-color: transparent;
}

.gt-btn--ghost:hover {
  background-color: var(--gt-bg-secondary);
  border-color: transparent;
}

.gt-btn--ghost.gt-btn--primary {
  color: var(--gt-primary);
}

.gt-btn--ghost.gt-btn--primary:hover {
  background-color: rgba(0, 90, 79, 0.1);
}

.gt-btn--ghost.gt-btn--secondary {
  color: var(--gt-secondary);
}

.gt-btn--ghost.gt-btn--secondary:hover {
  background-color: rgba(75, 83, 188, 0.1);
}

/* Botão Link */

.gt-btn--link {
  background-color: transparent;
  color: var(--gt-primary);
  border-color: transparent;
  padding: 0;
  height: auto;
  text-decoration: underline;
}

.gt-btn--link:hover {
  background-color: transparent;
  color: var(--gt-primary-hover);
  transform: none;
  box-shadow: none;
}

/* ==========================================================================
   MODIFICADORES DE TAMANHO
   ========================================================================== */

/* Botão Extra Pequeno */

.gt-btn--xs {
  font-size: var(--gt-text-xs);
  padding: var(--gt-space-1) var(--gt-space-2);
  border-radius: var(--gt-radius-sm);
}

/* Botão Pequeno */

.gt-btn--sm {
  font-size: var(--gt-text-sm);
  padding: var(--gt-btn-padding-sm);
  border-radius: var(--gt-radius-sm);
}

/* Botão Base (padrão) */

.gt-btn--base {
  font-size: var(--gt-text-sm);
  padding: var(--gt-btn-padding-base);
  border-radius: var(--gt-radius-base);
}

/* Botão Grande */

.gt-btn--lg {
  font-size: var(--gt-text-base);
  padding: var(--gt-btn-padding-lg);
  border-radius: var(--gt-radius-md);
}

/* Botão Extra Grande */

.gt-btn--xl {
  font-size: var(--gt-text-lg);
  padding: var(--gt-space-5) var(--gt-space-8);
  border-radius: var(--gt-radius-lg);
}

/* ==========================================================================
   MODIFICADORES DE LARGURA
   ========================================================================== */

/* Botão de largura total */

.gt-btn--full {
  width: 100%;
}

/* Botão de largura automática */

.gt-btn--auto {
  width: auto;
}

/* ==========================================================================
   MODIFICADORES DE FORMA
   ========================================================================== */

/* Botão quadrado */

.gt-btn--square {
  aspect-ratio: 1;
  padding: var(--gt-space-3);
}

.gt-btn--square.gt-btn--sm {
  padding: var(--gt-space-2);
}

.gt-btn--square.gt-btn--lg {
  padding: var(--gt-space-4);
}

/* Botão circular */

.gt-btn--circle {
  aspect-ratio: 1;
  border-radius: var(--gt-radius-full);
  padding: var(--gt-space-3);
}

.gt-btn--circle.gt-btn--sm {
  padding: var(--gt-space-2);
}

.gt-btn--circle.gt-btn--lg {
  padding: var(--gt-space-4);
}

/* ==========================================================================
   ELEMENTOS DO BOTÃO
   ========================================================================== */

/* Ícone do botão */

.gt-btn__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.gt-btn--sm .gt-btn__icon {
  width: 14px;
  height: 14px;
}

.gt-btn--lg .gt-btn__icon {
  width: 18px;
  height: 18px;
}

.gt-btn--xl .gt-btn__icon {
  width: 20px;
  height: 20px;
}

/* Ícone à esquerda */

.gt-btn__icon--left {
  margin-right: var(--gt-space-2);
}

/* Ícone à direita */

.gt-btn__icon--right {
  margin-left: var(--gt-space-2);
}

/* Ícone apenas (sem texto) */

.gt-btn__icon--only {
  margin: 0;
}

/* Texto do botão */

.gt-btn__text {
  flex: 1;
}

/* Spinner de carregamento */

.gt-btn__spinner {
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: var(--gt-radius-full);
  animation: gt-spin 1s linear infinite;
}

.gt-btn--sm .gt-btn__spinner {
  width: 14px;
  height: 14px;
}

.gt-btn--lg .gt-btn__spinner {
  width: 18px;
  height: 18px;
}

/* Badge no botão */

.gt-btn__badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  font-size: 10px;
  font-weight: var(--gt-font-bold);
  line-height: 18px;
  text-align: center;
  background-color: var(--gt-error);
  color: var(--gt-text-white);
  border-radius: var(--gt-radius-full);
  border: 2px solid var(--gt-bg-primary);
}

/* ==========================================================================
   MODIFICADORES DE ESTADO
   ========================================================================== */

/* Botão carregando */

.gt-btn--loading {
  pointer-events: none;
  position: relative;
}

.gt-btn--loading .gt-btn__text {
  opacity: 0;
}

.gt-btn--loading .gt-btn__icon {
  opacity: 0;
}

.gt-btn--loading .gt-btn__spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Botão ativo */

.gt-btn--active {
  background-color: var(--gt-primary);
  color: var(--gt-text-white);
  border-color: var(--gt-primary);
}

.gt-btn--active.gt-btn--outline {
  background-color: var(--gt-primary);
  color: var(--gt-text-white);
}

.gt-btn--active.gt-btn--ghost {
  background-color: rgba(0, 90, 79, 0.1);
  color: var(--gt-primary);
}

/* ==========================================================================
   GRUPO DE BOTÕES
   ========================================================================== */

.gt-btn-group {
  display: inline-flex;
  border-radius: var(--gt-radius-base);
  overflow: hidden;
  box-shadow: var(--gt-shadow-sm);
}

.gt-btn-group .gt-btn {
  border-radius: 0;
  border-right-width: 0;
  position: relative;
  z-index: 1;
}

.gt-btn-group .gt-btn:first-child {
  border-top-left-radius: var(--gt-radius-base);
  border-bottom-left-radius: var(--gt-radius-base);
}

.gt-btn-group .gt-btn:last-child {
  border-top-right-radius: var(--gt-radius-base);
  border-bottom-right-radius: var(--gt-radius-base);
  border-right-width: 1px;
}

.gt-btn-group .gt-btn:hover,
.gt-btn-group .gt-btn:focus,
.gt-btn-group .gt-btn--active {
  z-index: 2;
  border-right-width: 1px;
}

.gt-btn-group .gt-btn:hover + .gt-btn,
.gt-btn-group .gt-btn:focus + .gt-btn,
.gt-btn-group .gt-btn--active + .gt-btn {
  border-left-width: 0;
}

/* Grupo vertical */

.gt-btn-group--vertical {
  flex-direction: column;
}

.gt-btn-group--vertical .gt-btn {
  border-right-width: 1px;
  border-bottom-width: 0;
}

.gt-btn-group--vertical .gt-btn:first-child {
  border-top-left-radius: var(--gt-radius-base);
  border-top-right-radius: var(--gt-radius-base);
  border-bottom-left-radius: 0;
}

.gt-btn-group--vertical .gt-btn:last-child {
  border-bottom-left-radius: var(--gt-radius-base);
  border-bottom-right-radius: var(--gt-radius-base);
  border-top-right-radius: 0;
  border-bottom-width: 1px;
}

/* ==========================================================================
   ANIMAÇÕES
   ========================================================================== */

@keyframes gt-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* ==========================================================================
   RESPONSIVIDADE
   ========================================================================== */

@media (max-width: 768px) {
  .gt-btn--responsive {
    width: 100%;
  }
  
  .gt-btn-group--responsive {
    flex-direction: column;
  }
  
  .gt-btn-group--responsive .gt-btn {
    border-radius: 0;
    border-right-width: 1px;
    border-bottom-width: 0;
  }
  
  .gt-btn-group--responsive .gt-btn:first-child {
    border-top-left-radius: var(--gt-radius-base);
    border-top-right-radius: var(--gt-radius-base);
    border-bottom-left-radius: 0;
  }
  
  .gt-btn-group--responsive .gt-btn:last-child {
    border-bottom-left-radius: var(--gt-radius-base);
    border-bottom-right-radius: var(--gt-radius-base);
    border-top-right-radius: 0;
    border-bottom-width: 1px;
  }
}

/* ==========================================================================
   ACESSIBILIDADE
   ========================================================================== */

/* Melhor contraste para modo de alto contraste */

@media (prefers-contrast: high) {
  .gt-btn {
    border-width: 2px;
  }
  
  .gt-btn--ghost,
  .gt-btn--link {
    text-decoration: underline;
  }
}

/* Redução de movimento */

@media (prefers-reduced-motion: reduce) {
  .gt-btn {
    transition: none;
  }
  
  .gt-btn:hover {
    transform: none;
  }
  
  .gt-btn__spinner {
    animation: none;
  }
}

/* Formulários */

/* ==========================================================================
   Componente: Formulários - GenTICKETS
   Implementação BEM - Fase 3.2
   Data: 16/06/2025
   ========================================================================== */

/* ==========================================================================
   BLOCO: gt-form
   Formulários principais do sistema
   ========================================================================== */

.gt-form {
  width: 100%;
  max-width: 100%;
}

/* Modificadores de layout */

.gt-form--inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--gt-space-4);
}

.gt-form--grid {
  display: grid;
  gap: var(--gt-space-4);
}

.gt-form--grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.gt-form--grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* ==========================================================================
   BLOCO: gt-form-group
   Grupos de campos de formulário
   ========================================================================== */

.gt-form-group {
  margin-bottom: var(--gt-space-4);
}

.gt-form-group:last-child {
  margin-bottom: 0;
}

/* Modificadores de layout */

.gt-form-group--inline {
  display: flex;
  align-items: center;
  gap: var(--gt-space-3);
}

.gt-form-group--horizontal {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--gt-space-3);
  align-items: start;
}

/* Modificadores de espaçamento */

.gt-form-group--tight {
  margin-bottom: var(--gt-space-2);
}

.gt-form-group--loose {
  margin-bottom: var(--gt-space-6);
}

/* ==========================================================================
   BLOCO: gt-input
   Campos de entrada de texto
   ========================================================================== */

.gt-input {
  /* Layout */
  display: block;
  width: 100%;
  
  /* Tipografia */
  font-family: var(--gt-font-primary);
  font-size: var(--gt-text-base);
  font-weight: var(--gt-font-normal);
  line-height: var(--gt-leading-normal);
  
  /* Espaçamento */
  padding: var(--gt-space-3);
  
  /* Visual */
  background-color: var(--gt-form-bg);
  border: 1px solid var(--gt-form-border);
  border-radius: var(--gt-radius-base);
  color: var(--gt-text-primary);
  
  /* Interação */
  transition: var(--gt-transition-fast);
  outline: none;
}

.gt-input::placeholder {
  color: var(--gt-text-muted);
  opacity: 1;
}

.gt-input:focus {
  border-color: var(--gt-form-focus);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.gt-input:disabled {
  background-color: var(--gt-bg-tertiary);
  color: var(--gt-text-muted);
  cursor: not-allowed;
  opacity: 0.6;
}

.gt-input:read-only {
  background-color: var(--gt-bg-secondary);
  cursor: default;
}

/* Modificadores de tamanho */

.gt-input--sm {
  font-size: var(--gt-text-sm);
  padding: var(--gt-space-2);
}

.gt-input--lg {
  font-size: var(--gt-text-lg);
  padding: var(--gt-space-4);
}

/* Modificadores de estado */

.gt-input--error {
  border-color: var(--gt-form-error);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.gt-input--success {
  border-color: var(--gt-success);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.gt-input--warning {
  border-color: var(--gt-warning);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

/* ==========================================================================
   BLOCO: gt-textarea
   Campos de texto multilinha
   ========================================================================== */

.gt-textarea {
  /* Herda estilos do input */
  display: block;
  width: 100%;
  font-family: var(--gt-font-primary);
  font-size: var(--gt-text-base);
  font-weight: var(--gt-font-normal);
  line-height: var(--gt-leading-normal);
  padding: var(--gt-space-3);
  background-color: var(--gt-form-bg);
  border: 1px solid var(--gt-form-border);
  border-radius: var(--gt-radius-base);
  color: var(--gt-text-primary);
  transition: var(--gt-transition-fast);
  outline: none;
  
  /* Específico para textarea */
  resize: vertical;
  min-height: 100px;
}

.gt-textarea::placeholder {
  color: var(--gt-text-muted);
  opacity: 1;
}

.gt-textarea:focus {
  border-color: var(--gt-form-focus);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.gt-textarea:disabled {
  background-color: var(--gt-bg-tertiary);
  color: var(--gt-text-muted);
  cursor: not-allowed;
  opacity: 0.6;
  resize: none;
}

/* Modificadores de tamanho */

.gt-textarea--sm {
  font-size: var(--gt-text-sm);
  padding: var(--gt-space-2);
  min-height: 80px;
}

.gt-textarea--lg {
  font-size: var(--gt-text-lg);
  padding: var(--gt-space-4);
  min-height: 120px;
}

/* Modificadores de altura */

.gt-textarea--auto {
  resize: none;
  overflow: hidden;
}

.gt-textarea--fixed {
  resize: none;
}

/* Modificadores de estado */

.gt-textarea--error {
  border-color: var(--gt-form-error);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.gt-textarea--success {
  border-color: var(--gt-success);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.gt-textarea--warning {
  border-color: var(--gt-warning);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

/* ==========================================================================
   BLOCO: gt-select
   Campos de seleção
   ========================================================================== */

.gt-select {
  /* Layout */
  display: block;
  width: 100%;
  position: relative;
  
  /* Tipografia */
  font-family: var(--gt-font-primary);
  font-size: var(--gt-text-base);
  font-weight: var(--gt-font-normal);
  line-height: var(--gt-leading-normal);
  
  /* Espaçamento */
  padding: var(--gt-space-3);
  padding-right: var(--gt-space-10);
  
  /* Visual */
  background-color: var(--gt-form-bg);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right var(--gt-space-3) center;
  background-repeat: no-repeat;
  background-size: 16px 12px;
  border: 1px solid var(--gt-form-border);
  border-radius: var(--gt-radius-base);
  color: var(--gt-text-primary);
  
  /* Interação */
  cursor: pointer;
  transition: var(--gt-transition-fast);
  outline: none;
  appearance: none;
}

.gt-select:focus {
  border-color: var(--gt-form-focus);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.gt-select:disabled {
  background-color: var(--gt-bg-tertiary);
  color: var(--gt-text-muted);
  cursor: not-allowed;
  opacity: 0.6;
}

/* Modificadores de tamanho */

.gt-select--sm {
  font-size: var(--gt-text-sm);
  padding: var(--gt-space-2);
  padding-right: var(--gt-space-8);
  background-size: 14px 10px;
}

.gt-select--lg {
  font-size: var(--gt-text-lg);
  padding: var(--gt-space-4);
  padding-right: var(--gt-space-12);
  background-size: 18px 14px;
}

/* Modificadores de estado */

.gt-select--error {
  border-color: var(--gt-form-error);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.gt-select--success {
  border-color: var(--gt-success);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.gt-select--warning {
  border-color: var(--gt-warning);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

/* ==========================================================================
   BLOCO: gt-checkbox
   Caixas de seleção
   ========================================================================== */

.gt-checkbox {
  display: inline-flex;
  align-items: center;
  gap: var(--gt-space-2);
  cursor: pointer;
  user-select: none;
}

.gt-checkbox__input {
  width: 16px;
  height: 16px;
  margin: 0;
  background-color: var(--gt-form-bg);
  border: 1px solid var(--gt-form-border);
  border-radius: var(--gt-radius-sm);
  cursor: pointer;
  transition: var(--gt-transition-fast);
  appearance: none;
  position: relative;
}

.gt-checkbox__input:checked {
  background-color: var(--gt-primary);
  border-color: var(--gt-primary);
}

.gt-checkbox__input:checked::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 4px;
  width: 6px;
  height: 10px;
  border: 2px solid white;
  border-top: 0;
  border-left: 0;
  transform: rotate(45deg);
}

.gt-checkbox__input:focus {
  outline: 2px solid var(--gt-border-focus);
  outline-offset: 2px;
}

.gt-checkbox__input:disabled {
  background-color: var(--gt-bg-tertiary);
  border-color: var(--gt-border-light);
  cursor: not-allowed;
  opacity: 0.6;
}

.gt-checkbox__label {
  font-size: var(--gt-text-base);
  font-weight: var(--gt-font-normal);
  color: var(--gt-text-primary);
  cursor: pointer;
}

/* Modificadores de tamanho */

.gt-checkbox--sm .gt-checkbox__input {
  width: 14px;
  height: 14px;
}

.gt-checkbox--sm .gt-checkbox__input:checked::after {
  left: 3px;
  width: 5px;
  height: 8px;
}

.gt-checkbox--sm .gt-checkbox__label {
  font-size: var(--gt-text-sm);
}

.gt-checkbox--lg .gt-checkbox__input {
  width: 18px;
  height: 18px;
}

.gt-checkbox--lg .gt-checkbox__input:checked::after {
  left: 5px;
  width: 7px;
  height: 11px;
}

.gt-checkbox--lg .gt-checkbox__label {
  font-size: var(--gt-text-lg);
}

/* ==========================================================================
   BLOCO: gt-radio
   Botões de rádio
   ========================================================================== */

.gt-radio {
  display: inline-flex;
  align-items: center;
  gap: var(--gt-space-2);
  cursor: pointer;
  user-select: none;
}

.gt-radio__input {
  width: 16px;
  height: 16px;
  margin: 0;
  background-color: var(--gt-form-bg);
  border: 1px solid var(--gt-form-border);
  border-radius: var(--gt-radius-full);
  cursor: pointer;
  transition: var(--gt-transition-fast);
  appearance: none;
  position: relative;
}

.gt-radio__input:checked {
  background-color: var(--gt-primary);
  border-color: var(--gt-primary);
}

.gt-radio__input:checked::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 8px;
  height: 8px;
  background-color: white;
  border-radius: var(--gt-radius-full);
}

.gt-radio__input:focus {
  outline: 2px solid var(--gt-border-focus);
  outline-offset: 2px;
}

.gt-radio__input:disabled {
  background-color: var(--gt-bg-tertiary);
  border-color: var(--gt-border-light);
  cursor: not-allowed;
  opacity: 0.6;
}

.gt-radio__label {
  font-size: var(--gt-text-base);
  font-weight: var(--gt-font-normal);
  color: var(--gt-text-primary);
  cursor: pointer;
}

/* Modificadores de tamanho */

.gt-radio--sm .gt-radio__input {
  width: 14px;
  height: 14px;
}

.gt-radio--sm .gt-radio__input:checked::after {
  top: 2px;
  left: 2px;
  width: 8px;
  height: 8px;
}

.gt-radio--sm .gt-radio__label {
  font-size: var(--gt-text-sm);
}

.gt-radio--lg .gt-radio__input {
  width: 18px;
  height: 18px;
}

.gt-radio--lg .gt-radio__input:checked::after {
  top: 4px;
  left: 4px;
  width: 8px;
  height: 8px;
}

.gt-radio--lg .gt-radio__label {
  font-size: var(--gt-text-lg);
}

/* ==========================================================================
   BLOCO: gt-input-group
   Grupos de entrada com ícones e botões
   ========================================================================== */

.gt-input-group {
  position: relative;
  display: flex;
  width: 100%;
}

.gt-input-group .gt-input {
  flex: 1;
  border-radius: 0;
}

.gt-input-group .gt-input:first-child {
  border-top-left-radius: var(--gt-radius-base);
  border-bottom-left-radius: var(--gt-radius-base);
}

.gt-input-group .gt-input:last-child {
  border-top-right-radius: var(--gt-radius-base);
  border-bottom-right-radius: var(--gt-radius-base);
}

/* Elementos do grupo */

.gt-input-group__prepend,
.gt-input-group__append {
  display: flex;
  align-items: center;
  padding: var(--gt-space-3);
  background-color: var(--gt-bg-secondary);
  border: 1px solid var(--gt-form-border);
  color: var(--gt-text-secondary);
  font-size: var(--gt-text-base);
  white-space: nowrap;
}

.gt-input-group__prepend {
  border-right: 0;
  border-top-left-radius: var(--gt-radius-base);
  border-bottom-left-radius: var(--gt-radius-base);
}

.gt-input-group__append {
  border-left: 0;
  border-top-right-radius: var(--gt-radius-base);
  border-bottom-right-radius: var(--gt-radius-base);
}

.gt-input-group__prepend + .gt-input {
  border-left: 0;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.gt-input-group__append + .gt-input {
  border-right: 0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

/* Ícones no grupo */

.gt-input-group__icon {
  width: 16px;
  height: 16px;
  color: var(--gt-text-muted);
}

/* ==========================================================================
   BLOCO: gt-form-help
   Textos de ajuda e validação
   ========================================================================== */

.gt-form-help {
  display: block;
  margin-top: var(--gt-space-1);
  font-size: var(--gt-text-sm);
  color: var(--gt-text-muted);
  line-height: var(--gt-leading-normal);
}

/* Modificadores de estado */

.gt-form-help--error {
  color: var(--gt-error);
}

.gt-form-help--success {
  color: var(--gt-success);
}

.gt-form-help--warning {
  color: var(--gt-warning);
}

/* ==========================================================================
   BLOCO: gt-fieldset
   Agrupamento de campos
   ========================================================================== */

.gt-fieldset {
  border: 1px solid var(--gt-border-light);
  border-radius: var(--gt-radius-base);
  padding: var(--gt-space-4);
  margin-bottom: var(--gt-space-4);
}

.gt-fieldset__legend {
  font-weight: var(--gt-font-semibold);
  font-size: var(--gt-text-base);
  color: var(--gt-text-primary);
  padding: 0 var(--gt-space-2);
  margin-bottom: var(--gt-space-3);
}

/* ==========================================================================
   RESPONSIVIDADE
   ========================================================================== */

@media (max-width: 768px) {
  .gt-form--grid-2,
  .gt-form--grid-3 {
    grid-template-columns: 1fr;
  }
  
  .gt-form-group--horizontal {
    grid-template-columns: 1fr;
    gap: var(--gt-space-2);
  }
  
  .gt-form-group--inline {
    flex-direction: column;
    align-items: stretch;
    gap: var(--gt-space-2);
  }
  
  .gt-input-group {
    flex-direction: column;
  }
  
  .gt-input-group .gt-input,
  .gt-input-group__prepend,
  .gt-input-group__append {
    border-radius: var(--gt-radius-base);
    border: 1px solid var(--gt-form-border);
  }
  
  .gt-input-group .gt-input:not(:first-child) {
    margin-top: -1px;
  }
}

/* ==========================================================================
   ACESSIBILIDADE
   ========================================================================== */

/* Melhor contraste para modo de alto contraste */

@media (prefers-contrast: high) {
  .gt-input,
  .gt-textarea,
  .gt-select {
    border-width: 2px;
  }
  
  .gt-checkbox__input,
  .gt-radio__input {
    border-width: 2px;
  }
}

/* Redução de movimento */

@media (prefers-reduced-motion: reduce) {
  .gt-input,
  .gt-textarea,
  .gt-select,
  .gt-checkbox__input,
  .gt-radio__input {
    transition: none;
  }
}

/* Cards */

/* ==========================================================================
   COMPONENTE: CARDS
   Implementação BEM - GenTICKETS
   Data: 16/06/2025
   ========================================================================== */

/* ==========================================================================
   BLOCO PRINCIPAL: gt-card
   ========================================================================== */

.gt-card {
  /* Layout */
  display: flex;
  flex-direction: column;
  position: relative;
  
  /* Aparência */
  background-color: var(--gt-bg-primary);
  border: 1px solid var(--gt-border-light);
  border-radius: var(--gt-radius-lg);
  box-shadow: var(--gt-shadow-base);
  
  /* Espaçamento */
  padding: 0;
  margin: 0;
  
  /* Transições */
  transition: var(--gt-transition-base);
  
  /* Overflow */
  overflow: hidden;
}

/* ==========================================================================
   ELEMENTOS: gt-card__*
   ========================================================================== */

/* Cabeçalho do card */

.gt-card__header {
  /* Layout */
  display: flex;
  align-items: center;
  justify-content: space-between;
  
  /* Espaçamento */
  padding: var(--gt-space-4) var(--gt-space-4) var(--gt-space-3);
  
  /* Aparência */
  border-bottom: 1px solid var(--gt-border-lighter);
  background-color: var(--gt-bg-secondary);
}

/* Título do cabeçalho */

.gt-card__title {
  /* Reset */
  margin: 0;
  
  /* Tipografia */
  font-size: var(--gt-text-lg);
  font-weight: var(--gt-font-weight-semibold);
  color: var(--gt-text-primary);
  line-height: var(--gt-leading-tight);
}

/* Subtítulo do cabeçalho */

.gt-card__subtitle {
  /* Reset */
  margin: 0;
  
  /* Tipografia */
  font-size: var(--gt-text-sm);
  font-weight: var(--gt-font-weight-normal);
  color: var(--gt-text-secondary);
  line-height: var(--gt-leading-normal);
}

/* Ações do cabeçalho */

.gt-card__actions {
  /* Layout */
  display: flex;
  align-items: center;
  gap: var(--gt-space-2);
  
  /* Flexbox */
  flex-shrink: 0;
}

/* Corpo do card */

.gt-card__body {
  /* Layout */
  flex: 1;
  
  /* Espaçamento */
  padding: var(--gt-space-4);
}

/* Conteúdo do corpo */

.gt-card__content {
  /* Tipografia */
  color: var(--gt-text-primary);
  line-height: var(--gt-leading-relaxed);
}

/* Imagem do card */

.gt-card__image {
  /* Layout */
  width: 100%;
  height: auto;
  display: block;
  
  /* Aparência */
  object-fit: cover;
}

/* Rodapé do card */

.gt-card__footer {
  /* Layout */
  display: flex;
  align-items: center;
  justify-content: space-between;
  
  /* Espaçamento */
  padding: var(--gt-space-3) var(--gt-space-4) var(--gt-space-4);
  
  /* Aparência */
  border-top: 1px solid var(--gt-border-lighter);
  background-color: var(--gt-bg-tertiary);
}

/* Meta informações */

.gt-card__meta {
  /* Layout */
  display: flex;
  align-items: center;
  gap: var(--gt-space-2);
  
  /* Tipografia */
  font-size: var(--gt-text-xs);
  color: var(--gt-text-muted);
}

/* Ícone de meta */

.gt-card__meta-icon {
  /* Tamanho */
  width: 16px;
  height: 16px;
  
  /* Cor */
  color: var(--gt-text-muted);
}

/* Texto de meta */

.gt-card__meta-text {
  /* Tipografia */
  font-size: var(--gt-text-xs);
  color: var(--gt-text-muted);
}

/* Badge no card */

.gt-card__badge {
  /* Posicionamento */
  position: absolute;
  top: var(--gt-space-2);
  right: var(--gt-space-2);
  
  /* Z-index */
  z-index: var(--gt-z-10);
}

/* Overlay para cards com imagem */

.gt-card__overlay {
  /* Posicionamento */
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  
  /* Aparência */
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.1) 50%,
    rgba(0, 0, 0, 0.3) 100%
  );
  
  /* Layout */
  display: flex;
  align-items: flex-end;
  
  /* Espaçamento */
  padding: var(--gt-space-4);
  
  /* Z-index */
  z-index: var(--gt-z-10);
}

/* Conteúdo do overlay */

.gt-card__overlay-content {
  /* Cor */
  color: var(--gt-white);
  
  /* Largura */
  width: 100%;
}

/* ==========================================================================
   MODIFICADORES DE VARIANTE: gt-card--*
   ========================================================================== */

/* Card elevado */

.gt-card--elevated {
  box-shadow: var(--gt-shadow-lg);
  border: none;
}

.gt-card--elevated:hover {
  box-shadow: var(--gt-shadow-xl);
  transform: translateY(-2px);
}

/* Card plano */

.gt-card--flat {
  box-shadow: none;
  border: 1px solid var(--gt-border-light);
}

/* Card com borda */

.gt-card--outlined {
  box-shadow: none;
  border: 2px solid var(--gt-border-base);
}

/* Card preenchido */

.gt-card--filled {
  background-color: var(--gt-bg-secondary);
  border: none;
  box-shadow: none;
}

/* Card transparente */

.gt-card--transparent {
  background-color: transparent;
  border: none;
  box-shadow: none;
}

/* ==========================================================================
   MODIFICADORES DE COR: gt-card--*
   ========================================================================== */

/* Card primário */

.gt-card--primary {
  border-color: var(--gt-primary-200);
  background-color: var(--gt-primary-50);
}

.gt-card--primary .gt-card__header {
  background-color: var(--gt-primary-100);
  border-bottom-color: var(--gt-primary-200);
}

/* Card de sucesso */

.gt-card--success {
  border-color: var(--gt-success-200);
  background-color: var(--gt-success-50);
}

.gt-card--success .gt-card__header {
  background-color: var(--gt-success-100);
  border-bottom-color: var(--gt-success-200);
}

/* Card de aviso */

.gt-card--warning {
  border-color: var(--gt-warning-200);
  background-color: var(--gt-warning-50);
}

.gt-card--warning .gt-card__header {
  background-color: var(--gt-warning-100);
  border-bottom-color: var(--gt-warning-200);
}

/* Card de erro */

.gt-card--error {
  border-color: var(--gt-error-200);
  background-color: var(--gt-error-50);
}

.gt-card--error .gt-card__header {
  background-color: var(--gt-error-100);
  border-bottom-color: var(--gt-error-200);
}

/* Card de informação */

.gt-card--info {
  border-color: var(--gt-info-200);
  background-color: var(--gt-info-50);
}

.gt-card--info .gt-card__header {
  background-color: var(--gt-info-100);
  border-bottom-color: var(--gt-info-200);
}

/* ==========================================================================
   MODIFICADORES DE TAMANHO: gt-card--*
   ========================================================================== */

/* Card pequeno */

.gt-card--sm {
  border-radius: var(--gt-radius-base);
}

.gt-card--sm .gt-card__header {
  padding: var(--gt-space-3);
}

.gt-card--sm .gt-card__body {
  padding: var(--gt-space-3);
}

.gt-card--sm .gt-card__footer {
  padding: var(--gt-space-2) var(--gt-space-3);
}

.gt-card--sm .gt-card__title {
  font-size: var(--gt-text-base);
}

/* Card grande */

.gt-card--lg {
  border-radius: var(--gt-radius-xl);
}

.gt-card--lg .gt-card__header {
  padding: var(--gt-space-6);
}

.gt-card--lg .gt-card__body {
  padding: var(--gt-space-6);
}

.gt-card--lg .gt-card__footer {
  padding: var(--gt-space-4) var(--gt-space-6);
}

.gt-card--lg .gt-card__title {
  font-size: var(--gt-text-xl);
}

/* ==========================================================================
   MODIFICADORES DE LAYOUT: gt-card--*
   ========================================================================== */

/* Card horizontal */

.gt-card--horizontal {
  flex-direction: row;
}

.gt-card--horizontal .gt-card__image {
  width: 200px;
  height: 100%;
  flex-shrink: 0;
}

.gt-card--horizontal .gt-card__content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Card com largura total */

.gt-card--full-width {
  width: 100%;
}

/* Card compacto */

.gt-card--compact .gt-card__header {
  padding: var(--gt-space-2) var(--gt-space-3);
}

.gt-card--compact .gt-card__body {
  padding: var(--gt-space-3);
}

.gt-card--compact .gt-card__footer {
  padding: var(--gt-space-2) var(--gt-space-3);
}

/* ==========================================================================
   MODIFICADORES DE ESTADO: gt-card--*
   ========================================================================== */

/* Card interativo */

.gt-card--interactive {
  cursor: pointer;
  transition: all var(--gt-transition-base);
}

.gt-card--interactive:hover {
  box-shadow: var(--gt-shadow-md);
  transform: translateY(-1px);
}

.gt-card--interactive:active {
  transform: translateY(0);
  box-shadow: var(--gt-shadow-base);
}

/* Card selecionado */

.gt-card--selected {
  border-color: var(--gt-primary-500);
  box-shadow: 0 0 0 2px var(--gt-primary-100);
}

/* Card desabilitado */

.gt-card--disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* Card carregando */

.gt-card--loading {
  position: relative;
  overflow: hidden;
}

.gt-card--loading::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: gt-card-loading 1.5s infinite;
  z-index: var(--gt-z-10);
}

@keyframes gt-card-loading {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* ==========================================================================
   GRUPOS DE CARDS: gt-cards
   ========================================================================== */

/* Container de cards */

.gt-cards {
  display: grid;
  gap: var(--gt-space-4);
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

/* Grid de 2 colunas */

.gt-cards--cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

/* Grid de 3 colunas */

.gt-cards--cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* Grid de 4 colunas */

.gt-cards--cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Layout em lista */

.gt-cards--list {
  display: flex;
  flex-direction: column;
  gap: var(--gt-space-3);
}

/* Gap pequeno */

.gt-cards--gap-sm {
  gap: var(--gt-space-2);
}

/* Gap grande */

.gt-cards--gap-lg {
  gap: var(--gt-space-6);
}

/* ==========================================================================
   RESPONSIVIDADE
   ========================================================================== */

@media (max-width: 768px) {
  /* Cards em mobile */
  .gt-cards {
    grid-template-columns: 1fr;
    gap: var(--gt-space-3);
  }
  
  .gt-cards--cols-2,
  .gt-cards--cols-3,
  .gt-cards--cols-4 {
    grid-template-columns: 1fr;
  }
  
  /* Card horizontal vira vertical */
  .gt-card--horizontal {
    flex-direction: column;
  }
  
  .gt-card--horizontal .gt-card__image {
    width: 100%;
    height: 200px;
  }
  
  /* Reduzir padding em mobile */
  .gt-card__header,
  .gt-card__body,
  .gt-card__footer {
    padding-left: var(--gt-space-3);
    padding-right: var(--gt-space-3);
  }
}

@media (max-width: 480px) {
  /* Cards muito pequenos */
  .gt-card__header,
  .gt-card__body,
  .gt-card__footer {
    padding-left: var(--gt-space-2);
    padding-right: var(--gt-space-2);
  }
  
  .gt-card__title {
    font-size: var(--gt-text-base);
  }
  
  .gt-cards {
    gap: var(--gt-space-2);
  }
}

/* ==========================================================================
   ACESSIBILIDADE
   ========================================================================== */

/* Focus para cards interativos */

.gt-card--interactive:focus {
  outline: 2px solid var(--gt-primary-500);
  outline-offset: 2px;
}

/* Redução de movimento */

@media (prefers-reduced-motion: reduce) {
  .gt-card,
  .gt-card--interactive,
  .gt-card--elevated {
    transition: none;
  }
  
  .gt-card--loading::before {
    animation: none;
  }
}

/* Alto contraste */

@media (prefers-contrast: high) {
  .gt-card {
    border-width: 2px;
    border-color: var(--gt-text-primary);
  }
  
  .gt-card__header {
    border-bottom-width: 2px;
  }
  
  .gt-card__footer {
    border-top-width: 2px;
  }
}

/* ==========================================================================
   UTILITÁRIOS ESPECÍFICOS
   ========================================================================== */

/* Card sem padding */

.gt-card--no-padding .gt-card__body {
  padding: 0;
}

/* Card sem header */

.gt-card--no-header .gt-card__header {
  display: none;
}

/* Card sem footer */

.gt-card--no-footer .gt-card__footer {
  display: none;
}

/* Card com scroll */

.gt-card--scrollable {
  max-height: 400px;
  overflow-y: auto;
}

.gt-card--scrollable .gt-card__body {
  flex: 1;
  overflow-y: auto;
}

/* Card sticky header */

.gt-card--sticky-header .gt-card__header {
  position: sticky;
  top: 0;
  z-index: var(--gt-z-20);
}

/* ==========================================================================
   CLASSES DE COMPATIBILIDADE (temporárias)
   ========================================================================== */

/* Mapeamento de classes antigas */

.card {
  @apply gt-card;
}

.card-header {
  @apply gt-card__header;
}

.card-body {
  @apply gt-card__body;
}

.card-footer {
  @apply gt-card__footer;
}

.card-title {
  @apply gt-card__title;
}

.card-text {
  @apply gt-card__content;
}

.card-img {
  @apply gt-card__image;
}

/* Variantes antigas */

.card-primary {
  @apply gt-card gt-card--primary;
}

.card-success {
  @apply gt-card gt-card--success;
}

.card-warning {
  @apply gt-card gt-card--warning;
}

.card-danger {
  @apply gt-card gt-card--error;
}

.card-info {
  @apply gt-card gt-card--info;
}

/* Modais */

/* ==========================================================================
   COMPONENTE: MODALS
   Implementação BEM - GenTICKETS
   Data: 16/06/2025
   ========================================================================== */

/* ==========================================================================
   BLOCO PRINCIPAL: gt-modal
   ========================================================================== */

.gt-modal {
  /* Posicionamento */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  
  /* Z-index */
  z-index: var(--gt-z-modal);
  
  /* Layout */
  display: flex;
  align-items: center;
  justify-content: center;
  
  /* Espaçamento */
  padding: var(--gt-space-4);
  
  /* Aparência */
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  
  /* Transições */
  transition: all var(--gt-transition-base);
  
  /* Estado inicial (oculto) */
  opacity: 0;
  visibility: hidden;
  
  /* Overflow */
  overflow-y: auto;
}

/* Modal visível */

.gt-modal--open {
  opacity: 1;
  visibility: visible;
}

/* ==========================================================================
   ELEMENTOS: gt-modal__*
   ========================================================================== */

/* Container do conteúdo do modal */

.gt-modal__container {
  /* Layout */
  position: relative;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  
  /* Aparência */
  background-color: var(--gt-bg-primary);
  border-radius: var(--gt-radius-lg);
  box-shadow: var(--gt-shadow-xl);
  
  /* Overflow */
  overflow: hidden;
  
  /* Transições */
  transition: all var(--gt-transition-base);
  transform: scale(0.95) translateY(20px);
}

/* Container visível */

.gt-modal--open .gt-modal__container {
  transform: scale(1) translateY(0);
}

/* Cabeçalho do modal */

.gt-modal__header {
  /* Layout */
  display: flex;
  align-items: center;
  justify-content: space-between;
  
  /* Espaçamento */
  padding: var(--gt-space-4) var(--gt-space-5);
  
  /* Aparência */
  border-bottom: 1px solid var(--gt-border-light);
  background-color: var(--gt-bg-secondary);
}

/* Título do modal */

.gt-modal__title {
  /* Reset */
  margin: 0;
  
  /* Tipografia */
  font-size: var(--gt-text-lg);
  font-weight: var(--gt-font-weight-semibold);
  color: var(--gt-text-primary);
  line-height: var(--gt-leading-tight);
}

/* Subtítulo do modal */

.gt-modal__subtitle {
  /* Reset */
  margin: 0;
  margin-top: var(--gt-space-1);
  
  /* Tipografia */
  font-size: var(--gt-text-sm);
  font-weight: var(--gt-font-weight-normal);
  color: var(--gt-text-secondary);
  line-height: var(--gt-leading-normal);
}

/* Botão de fechar */

.gt-modal__close {
  /* Layout */
  display: flex;
  align-items: center;
  justify-content: center;
  
  /* Tamanho */
  width: 32px;
  height: 32px;
  
  /* Aparência */
  background: none;
  border: none;
  border-radius: var(--gt-radius-base);
  color: var(--gt-text-secondary);
  
  /* Cursor */
  cursor: pointer;
  
  /* Transições */
  transition: var(--gt-transition-base);
  
  /* Flexbox */
  flex-shrink: 0;
}

.gt-modal__close:hover {
  background-color: var(--gt-bg-tertiary);
  color: var(--gt-text-primary);
}

.gt-modal__close:focus {
  outline: 2px solid var(--gt-primary-500);
  outline-offset: 2px;
}

/* Ícone do botão de fechar */

.gt-modal__close-icon {
  width: 20px;
  height: 20px;
}

/* Corpo do modal */

.gt-modal__body {
  /* Espaçamento */
  padding: var(--gt-space-5);
  
  /* Overflow */
  overflow-y: auto;
  max-height: calc(90vh - 140px); /* Ajustar baseado no header e footer */
}

/* Conteúdo do corpo */

.gt-modal__content {
  /* Tipografia */
  color: var(--gt-text-primary);
  line-height: var(--gt-leading-relaxed);
}

/* Rodapé do modal */

.gt-modal__footer {
  /* Layout */
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--gt-space-3);
  
  /* Espaçamento */
  padding: var(--gt-space-4) var(--gt-space-5);
  
  /* Aparência */
  border-top: 1px solid var(--gt-border-light);
  background-color: var(--gt-bg-tertiary);
}

/* Ações do rodapé */

.gt-modal__actions {
  /* Layout */
  display: flex;
  align-items: center;
  gap: var(--gt-space-2);
}

/* Texto de ajuda no rodapé */

.gt-modal__help {
  /* Layout */
  flex: 1;
  
  /* Tipografia */
  font-size: var(--gt-text-sm);
  color: var(--gt-text-muted);
}

/* Overlay de fundo */

.gt-modal__backdrop {
  /* Posicionamento */
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  
  /* Aparência */
  background-color: rgba(0, 0, 0, 0.5);
  
  /* Cursor */
  cursor: pointer;
}

/* ==========================================================================
   MODIFICADORES DE TAMANHO: gt-modal--*
   ========================================================================== */

/* Modal pequeno */

.gt-modal--sm .gt-modal__container {
  max-width: 400px;
}

/* Modal médio (padrão) */

.gt-modal--md .gt-modal__container {
  max-width: 500px;
}

/* Modal grande */

.gt-modal--lg .gt-modal__container {
  max-width: 700px;
}

/* Modal extra grande */

.gt-modal--xl .gt-modal__container {
  max-width: 900px;
}

/* Modal de largura total */

.gt-modal--full .gt-modal__container {
  max-width: 95vw;
  max-height: 95vh;
}

/* Modal de tela cheia */

.gt-modal--fullscreen {
  padding: 0;
}

.gt-modal--fullscreen .gt-modal__container {
  max-width: 100vw;
  max-height: 100vh;
  border-radius: 0;
}

/* ==========================================================================
   MODIFICADORES DE POSIÇÃO: gt-modal--*
   ========================================================================== */

/* Modal no topo */

.gt-modal--top {
  align-items: flex-start;
  padding-top: var(--gt-space-8);
}

/* Modal na base */

.gt-modal--bottom {
  align-items: flex-end;
  padding-bottom: var(--gt-space-8);
}

/* Modal à esquerda */

.gt-modal--left {
  justify-content: flex-start;
  padding-left: var(--gt-space-8);
}

/* Modal à direita */

.gt-modal--right {
  justify-content: flex-end;
  padding-right: var(--gt-space-8);
}

/* ==========================================================================
   MODIFICADORES DE APARÊNCIA: gt-modal--*
   ========================================================================== */

/* Modal sem fundo */

.gt-modal--no-backdrop {
  background-color: transparent;
  backdrop-filter: none;
}

/* Modal sem sombra */

.gt-modal--no-shadow .gt-modal__container {
  box-shadow: none;
}

/* Modal com borda */

.gt-modal--bordered .gt-modal__container {
  border: 2px solid var(--gt-border-base);
}

/* Modal transparente */

.gt-modal--transparent .gt-modal__container {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

/* ==========================================================================
   MODIFICADORES DE COMPORTAMENTO: gt-modal--*
   ========================================================================== */

/* Modal não pode ser fechado clicando fora */

.gt-modal--no-close-on-backdrop .gt-modal__backdrop {
  cursor: default;
  pointer-events: none;
}

/* Modal sem botão de fechar */

.gt-modal--no-close .gt-modal__close {
  display: none;
}

/* Modal com scroll no corpo */

.gt-modal--scrollable .gt-modal__body {
  max-height: 400px;
  overflow-y: auto;
}

/* Modal com conteúdo fixo */

.gt-modal--fixed-content .gt-modal__container {
  height: auto;
  max-height: none;
}

.gt-modal--fixed-content .gt-modal__body {
  max-height: none;
  overflow: visible;
}

/* ==========================================================================
   MODIFICADORES DE ESTADO: gt-modal--*
   ========================================================================== */

/* Modal carregando */

.gt-modal--loading {
  cursor: wait;
}

.gt-modal--loading .gt-modal__container {
  position: relative;
  overflow: hidden;
}

.gt-modal--loading .gt-modal__container::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 4px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--gt-primary-500),
    transparent
  );
  animation: gt-modal-loading 1.5s infinite;
  z-index: var(--gt-z-10);
}

@keyframes gt-modal-loading {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Modal com erro */

.gt-modal--error .gt-modal__header {
  background-color: var(--gt-error-50);
  border-bottom-color: var(--gt-error-200);
}

.gt-modal--error .gt-modal__title {
  color: var(--gt-error-700);
}

/* Modal de sucesso */

.gt-modal--success .gt-modal__header {
  background-color: var(--gt-success-50);
  border-bottom-color: var(--gt-success-200);
}

.gt-modal--success .gt-modal__title {
  color: var(--gt-success-700);
}

/* Modal de aviso */

.gt-modal--warning .gt-modal__header {
  background-color: var(--gt-warning-50);
  border-bottom-color: var(--gt-warning-200);
}

.gt-modal--warning .gt-modal__title {
  color: var(--gt-warning-700);
}

/* ==========================================================================
   TIPOS ESPECÍFICOS DE MODAL
   ========================================================================== */

/* Modal de confirmação */

.gt-modal--confirm .gt-modal__container {
  max-width: 400px;
}

.gt-modal--confirm .gt-modal__body {
  text-align: center;
  padding: var(--gt-space-6) var(--gt-space-5);
}

.gt-modal--confirm .gt-modal__footer {
  justify-content: center;
  gap: var(--gt-space-3);
}

/* Modal de alerta */

.gt-modal--alert .gt-modal__container {
  max-width: 450px;
}

.gt-modal--alert .gt-modal__body {
  padding: var(--gt-space-6) var(--gt-space-5);
}

.gt-modal--alert .gt-modal__footer {
  justify-content: center;
}

/* Modal de formulário */

.gt-modal--form .gt-modal__container {
  max-width: 600px;
}

.gt-modal--form .gt-modal__body {
  padding: var(--gt-space-4) var(--gt-space-5);
}

/* Modal de galeria */

.gt-modal--gallery {
  padding: var(--gt-space-2);
}

.gt-modal--gallery .gt-modal__container {
  max-width: 90vw;
  max-height: 90vh;
  background-color: transparent;
  box-shadow: none;
}

.gt-modal--gallery .gt-modal__body {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   ANIMAÇÕES DE ENTRADA/SAÍDA
   ========================================================================== */

/* Animação de fade */

.gt-modal--fade-enter {
  opacity: 0;
}

.gt-modal--fade-enter-active {
  opacity: 1;
  transition: opacity var(--gt-transition-base);
}

.gt-modal--fade-exit {
  opacity: 1;
}

.gt-modal--fade-exit-active {
  opacity: 0;
  transition: opacity var(--gt-transition-base);
}

/* Animação de slide do topo */

.gt-modal--slide-down-enter .gt-modal__container {
  transform: translateY(-100px) scale(0.95);
}

.gt-modal--slide-down-enter-active .gt-modal__container {
  transform: translateY(0) scale(1);
  transition: transform var(--gt-transition-base);
}

/* Animação de slide da base */

.gt-modal--slide-up-enter .gt-modal__container {
  transform: translateY(100px) scale(0.95);
}

.gt-modal--slide-up-enter-active .gt-modal__container {
  transform: translateY(0) scale(1);
  transition: transform var(--gt-transition-base);
}

/* Animação de zoom */

.gt-modal--zoom-enter .gt-modal__container {
  transform: scale(0.8);
}

.gt-modal--zoom-enter-active .gt-modal__container {
  transform: scale(1);
  transition: transform var(--gt-transition-base);
}

/* ==========================================================================
   RESPONSIVIDADE
   ========================================================================== */

@media (max-width: 768px) {
  /* Modais em tablet */
  .gt-modal {
    padding: var(--gt-space-3);
  }
  
  .gt-modal__container {
    max-width: 95vw;
    max-height: 95vh;
  }
  
  /* Todos os tamanhos ficam responsivos */
  .gt-modal--sm .gt-modal__container,
  .gt-modal--md .gt-modal__container,
  .gt-modal--lg .gt-modal__container,
  .gt-modal--xl .gt-modal__container {
    max-width: 95vw;
  }
  
  /* Reduzir padding */
  .gt-modal__header,
  .gt-modal__footer {
    padding-left: var(--gt-space-4);
    padding-right: var(--gt-space-4);
  }
  
  .gt-modal__body {
    padding: var(--gt-space-4);
  }
}

@media (max-width: 480px) {
  /* Modais em mobile */
  .gt-modal {
    padding: var(--gt-space-2);
  }
  
  .gt-modal__container {
    max-width: 98vw;
    max-height: 98vh;
  }
  
  /* Modal ocupa quase toda a tela */
  .gt-modal--sm .gt-modal__container,
  .gt-modal--md .gt-modal__container,
  .gt-modal--lg .gt-modal__container,
  .gt-modal--xl .gt-modal__container {
    max-width: 98vw;
  }
  
  /* Reduzir ainda mais o padding */
  .gt-modal__header,
  .gt-modal__footer {
    padding: var(--gt-space-3);
  }
  
  .gt-modal__body {
    padding: var(--gt-space-3);
  }
  
  /* Footer em coluna em mobile */
  .gt-modal__footer {
    flex-direction: column;
    gap: var(--gt-space-2);
  }
  
  .gt-modal__actions {
    width: 100%;
    justify-content: stretch;
  }
  
  .gt-modal__actions .gt-btn {
    flex: 1;
  }
}

/* ==========================================================================
   ACESSIBILIDADE
   ========================================================================== */

/* Focus trap */

.gt-modal[aria-hidden="false"] {
  /* Modal visível para screen readers */
}

.gt-modal[aria-hidden="true"] {
  /* Modal oculto para screen readers */
  display: none;
}

/* Focus no primeiro elemento focável */

.gt-modal--open .gt-modal__close:focus {
  outline: 2px solid var(--gt-primary-500);
  outline-offset: 2px;
}

/* Redução de movimento */

@media (prefers-reduced-motion: reduce) {
  .gt-modal,
  .gt-modal__container {
    transition: none;
  }
  
  .gt-modal--loading .gt-modal__container::before {
    animation: none;
  }
  
  /* Remover todas as animações de entrada */
  .gt-modal--fade-enter-active,
  .gt-modal--fade-exit-active,
  .gt-modal--slide-down-enter-active,
  .gt-modal--slide-up-enter-active,
  .gt-modal--zoom-enter-active {
    transition: none;
  }
}

/* Alto contraste */

@media (prefers-contrast: high) {
  .gt-modal__container {
    border: 2px solid var(--gt-text-primary);
  }
  
  .gt-modal__header {
    border-bottom-width: 2px;
  }
  
  .gt-modal__footer {
    border-top-width: 2px;
  }
  
  .gt-modal__close {
    border: 1px solid var(--gt-text-secondary);
  }
}

/* ==========================================================================
   UTILITÁRIOS ESPECÍFICOS
   ========================================================================== */

/* Modal sem header */

.gt-modal--no-header .gt-modal__header {
  display: none;
}

/* Modal sem footer */

.gt-modal--no-footer .gt-modal__footer {
  display: none;
}

/* Modal sem padding no corpo */

.gt-modal--no-padding .gt-modal__body {
  padding: 0;
}

/* Modal com padding mínimo */

.gt-modal--minimal-padding .gt-modal__body {
  padding: var(--gt-space-2);
}

/* Modal com altura fixa */

.gt-modal--fixed-height .gt-modal__container {
  height: 500px;
}

.gt-modal--fixed-height .gt-modal__body {
  flex: 1;
  overflow-y: auto;
}

/* ==========================================================================
   CLASSES DE COMPATIBILIDADE (temporárias)
   ========================================================================== */

/* Mapeamento de classes antigas */

.modal {
  @apply gt-modal;
}

.modal-dialog {
  @apply gt-modal__container;
}

.modal-content {
  /* Já incluído no container */
}

.modal-header {
  @apply gt-modal__header;
}

.modal-title {
  @apply gt-modal__title;
}

.modal-body {
  @apply gt-modal__body;
}

.modal-footer {
  @apply gt-modal__footer;
}

.modal-backdrop {
  @apply gt-modal__backdrop;
}

/* Variantes antigas */

.modal-sm {
  @apply gt-modal--sm;
}

.modal-lg {
  @apply gt-modal--lg;
}

.modal-xl {
  @apply gt-modal--xl;
}

.modal-fullscreen {
  @apply gt-modal--fullscreen;
}

/* Estados antigos */

.show {
  @apply gt-modal--open;
}

.fade {
  /* Incluído no comportamento padrão */
}

/* Navegação (será criado) */

/* @import './components/navigation.css'; */

/* Tabelas (será criado) */

/* @import './components/tables.css'; */

/* Alertas e notificações (será criado) */

/* @import './components/alerts.css'; */

/* ==========================================================================
   IMPORTAÇÕES DE LAYOUT
   Estruturas de página e layout
   ========================================================================== */

/* Layout principal (será criado) */

/* @import './layout/main.css'; */

/* Header (será criado) */

/* @import './layout/header.css'; */

/* Sidebar (será criado) */

/* @import './layout/sidebar.css'; */

/* Footer (será criado) */

/* @import './layout/footer.css'; */

/* ==========================================================================
   IMPORTAÇÕES DE PÁGINAS
   Estilos específicos de páginas
   ========================================================================== */

/* Login (será migrado) */

/* @import './pages/login.css'; */

/* Dashboard (será criado) */

/* @import './pages/dashboard.css'; */

/* Tickets (será migrado) */

/* @import './pages/tickets.css'; */

/* Chat (será migrado) */

/* @import './pages/chat.css'; */

/* ==========================================================================
   IMPORTAÇÕES DE UTILITÁRIOS
   Classes utilitárias e helpers
   ========================================================================== */

/* Utilitários de espaçamento (será criado) */

/* @import './utilities/spacing.css'; */

/* Utilitários de display (será criado) */

/* @import './utilities/display.css'; */

/* Utilitários de flexbox (será criado) */

/* @import './utilities/flexbox.css'; */

/* Utilitários de grid (será criado) */

/* @import './utilities/grid.css'; */

/* Utilitários de cores (será criado) */

/* @import './utilities/colors.css'; */

/* ==========================================================================
   CLASSES GLOBAIS TEMPORÁRIAS
   Classes para compatibilidade durante a migração
   ========================================================================== */

/* Container principal da aplicação */

.gt-app {
  min-height: 100vh;
  background-color: var(--gt-bg-primary);
  color: var(--gt-text-primary);
  font-family: var(--gt-font-primary);
}

/* Container de conteúdo */

.gt-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gt-space-4);
}

.gt-container--fluid {
  max-width: none;
}

.gt-container--narrow {
  max-width: 800px;
}

.gt-container--wide {
  max-width: 1400px;
}

/* Seções principais */

.gt-main {
  flex: 1;
  padding: var(--gt-space-6) 0;
}

.gt-section {
  margin-bottom: var(--gt-space-8);
}

.gt-section:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   CLASSES DE COMPATIBILIDADE
   Mapeamento de classes antigas para novas (temporário)
   ========================================================================== */

/* Mapeamento de botões antigos */

.btn {
  @apply gt-btn;
}

.btn-primary {
  @apply gt-btn gt-btn--primary;
}

.btn-secondary {
  @apply gt-btn gt-btn--secondary;
}

.btn-success {
  @apply gt-btn gt-btn--success;
}

.btn-warning {
  @apply gt-btn gt-btn--warning;
}

.btn-danger {
  @apply gt-btn gt-btn--error;
}

.btn-info {
  @apply gt-btn gt-btn--info;
}

.btn-sm {
  @apply gt-btn--sm;
}

.btn-lg {
  @apply gt-btn--lg;
}

/* Mapeamento de formulários antigos */

.form-control {
  @apply gt-input;
}

.form-group {
  @apply gt-form-group;
}

.form-label {
  @apply gt-label;
}

.form-text {
  @apply gt-form-help;
}

/* Mapeamento de texto antigo */

.text-primary {
  @apply gt-text--primary;
}

.text-secondary {
  @apply gt-text--secondary;
}

.text-muted {
  @apply gt-text--muted;
}

.text-success {
  @apply gt-text--success;
}

.text-warning {
  @apply gt-text--warning;
}

.text-danger {
  @apply gt-text--error;
}

.text-info {
  @apply gt-text--info;
}

/* ==========================================================================
   CLASSES UTILITÁRIAS BÁSICAS
   Utilitários essenciais para o funcionamento
   ========================================================================== */

/* Display */

.gt-hidden {
  display: none !important;
}

.gt-block {
  display: block !important;
}

.gt-inline {
  display: inline !important;
}

.gt-inline-block {
  display: inline-block !important;
}

.gt-flex {
  display: flex !important;
}

.gt-inline-flex {
  display: inline-flex !important;
}

.gt-grid {
  display: grid !important;
}

/* Flexbox */

.gt-flex-col {
  flex-direction: column !important;
}

.gt-flex-row {
  flex-direction: row !important;
}

.gt-items-center {
  align-items: center !important;
}

.gt-items-start {
  align-items: flex-start !important;
}

.gt-items-end {
  align-items: flex-end !important;
}

.gt-justify-center {
  justify-content: center !important;
}

.gt-justify-start {
  justify-content: flex-start !important;
}

.gt-justify-end {
  justify-content: flex-end !important;
}

.gt-justify-between {
  justify-content: space-between !important;
}

.gt-justify-around {
  justify-content: space-around !important;
}

.gt-flex-1 {
  flex: 1 1 0% !important;
}

.gt-flex-auto {
  flex: 1 1 auto !important;
}

.gt-flex-none {
  flex: none !important;
}

/* Espaçamento */

.gt-m-0 { margin: 0 !important; }

.gt-m-1 { margin: var(--gt-space-1) !important; }

.gt-m-2 { margin: var(--gt-space-2) !important; }

.gt-m-3 { margin: var(--gt-space-3) !important; }

.gt-m-4 { margin: var(--gt-space-4) !important; }

.gt-m-5 { margin: var(--gt-space-5) !important; }

.gt-m-6 { margin: var(--gt-space-6) !important; }

.gt-m-8 { margin: var(--gt-space-8) !important; }

.gt-mt-0 { margin-top: 0 !important; }

.gt-mt-1 { margin-top: var(--gt-space-1) !important; }

.gt-mt-2 { margin-top: var(--gt-space-2) !important; }

.gt-mt-3 { margin-top: var(--gt-space-3) !important; }

.gt-mt-4 { margin-top: var(--gt-space-4) !important; }

.gt-mt-5 { margin-top: var(--gt-space-5) !important; }

.gt-mt-6 { margin-top: var(--gt-space-6) !important; }

.gt-mt-8 { margin-top: var(--gt-space-8) !important; }

.gt-mb-0 { margin-bottom: 0 !important; }

.gt-mb-1 { margin-bottom: var(--gt-space-1) !important; }

.gt-mb-2 { margin-bottom: var(--gt-space-2) !important; }

.gt-mb-3 { margin-bottom: var(--gt-space-3) !important; }

.gt-mb-4 { margin-bottom: var(--gt-space-4) !important; }

.gt-mb-5 { margin-bottom: var(--gt-space-5) !important; }

.gt-mb-6 { margin-bottom: var(--gt-space-6) !important; }

.gt-mb-8 { margin-bottom: var(--gt-space-8) !important; }

.gt-ml-0 { margin-left: 0 !important; }

.gt-ml-1 { margin-left: var(--gt-space-1) !important; }

.gt-ml-2 { margin-left: var(--gt-space-2) !important; }

.gt-ml-3 { margin-left: var(--gt-space-3) !important; }

.gt-ml-4 { margin-left: var(--gt-space-4) !important; }

.gt-mr-0 { margin-right: 0 !important; }

.gt-mr-1 { margin-right: var(--gt-space-1) !important; }

.gt-mr-2 { margin-right: var(--gt-space-2) !important; }

.gt-mr-3 { margin-right: var(--gt-space-3) !important; }

.gt-mr-4 { margin-right: var(--gt-space-4) !important; }

.gt-p-0 { padding: 0 !important; }

.gt-p-1 { padding: var(--gt-space-1) !important; }

.gt-p-2 { padding: var(--gt-space-2) !important; }

.gt-p-3 { padding: var(--gt-space-3) !important; }

.gt-p-4 { padding: var(--gt-space-4) !important; }

.gt-p-5 { padding: var(--gt-space-5) !important; }

.gt-p-6 { padding: var(--gt-space-6) !important; }

.gt-p-8 { padding: var(--gt-space-8) !important; }

.gt-pt-0 { padding-top: 0 !important; }

.gt-pt-1 { padding-top: var(--gt-space-1) !important; }

.gt-pt-2 { padding-top: var(--gt-space-2) !important; }

.gt-pt-3 { padding-top: var(--gt-space-3) !important; }

.gt-pt-4 { padding-top: var(--gt-space-4) !important; }

.gt-pb-0 { padding-bottom: 0 !important; }

.gt-pb-1 { padding-bottom: var(--gt-space-1) !important; }

.gt-pb-2 { padding-bottom: var(--gt-space-2) !important; }

.gt-pb-3 { padding-bottom: var(--gt-space-3) !important; }

.gt-pb-4 { padding-bottom: var(--gt-space-4) !important; }

.gt-pl-0 { padding-left: 0 !important; }

.gt-pl-1 { padding-left: var(--gt-space-1) !important; }

.gt-pl-2 { padding-left: var(--gt-space-2) !important; }

.gt-pl-3 { padding-left: var(--gt-space-3) !important; }

.gt-pl-4 { padding-left: var(--gt-space-4) !important; }

.gt-pr-0 { padding-right: 0 !important; }

.gt-pr-1 { padding-right: var(--gt-space-1) !important; }

.gt-pr-2 { padding-right: var(--gt-space-2) !important; }

.gt-pr-3 { padding-right: var(--gt-space-3) !important; }

.gt-pr-4 { padding-right: var(--gt-space-4) !important; }

/* Largura e altura */

.gt-w-full { width: 100% !important; }

.gt-w-auto { width: auto !important; }

.gt-h-full { height: 100% !important; }

.gt-h-auto { height: auto !important; }

/* Posicionamento */

.gt-relative { position: relative !important; }

.gt-absolute { position: absolute !important; }

.gt-fixed { position: fixed !important; }

.gt-sticky { position: sticky !important; }

/* Overflow */

.gt-overflow-hidden { overflow: hidden !important; }

.gt-overflow-auto { overflow: auto !important; }

.gt-overflow-scroll { overflow: scroll !important; }

/* Cursor */

.gt-cursor-pointer { cursor: pointer !important; }

.gt-cursor-not-allowed { cursor: not-allowed !important; }

.gt-cursor-default { cursor: default !important; }

/* Sombras */

.gt-shadow-none { box-shadow: none !important; }

.gt-shadow-sm { box-shadow: var(--gt-shadow-sm) !important; }

.gt-shadow { box-shadow: var(--gt-shadow-base) !important; }

.gt-shadow-md { box-shadow: var(--gt-shadow-md) !important; }

.gt-shadow-lg { box-shadow: var(--gt-shadow-lg) !important; }

/* Bordas */

.gt-border { border: 1px solid var(--gt-border-light) !important; }

.gt-border-0 { border: 0 !important; }

.gt-border-t { border-top: 1px solid var(--gt-border-light) !important; }

.gt-border-b { border-bottom: 1px solid var(--gt-border-light) !important; }

.gt-border-l { border-left: 1px solid var(--gt-border-light) !important; }

.gt-border-r { border-right: 1px solid var(--gt-border-light) !important; }

/* Raios de borda */

.gt-rounded-none { border-radius: 0 !important; }

.gt-rounded-sm { border-radius: var(--gt-radius-sm) !important; }

.gt-rounded { border-radius: var(--gt-radius-base) !important; }

.gt-rounded-md { border-radius: var(--gt-radius-md) !important; }

.gt-rounded-lg { border-radius: var(--gt-radius-lg) !important; }

.gt-rounded-full { border-radius: var(--gt-radius-full) !important; }

/* ==========================================================================
   RESPONSIVIDADE GLOBAL
   ========================================================================== */

@media (max-width: 768px) {
  .gt-container {
    padding: 0 var(--gt-space-3);
  }
  
  .gt-main {
    padding: var(--gt-space-4) 0;
  }
  
  .gt-section {
    margin-bottom: var(--gt-space-6);
  }
}

@media (max-width: 480px) {
  .gt-container {
    padding: 0 var(--gt-space-2);
  }
  
  .gt-main {
    padding: var(--gt-space-3) 0;
  }
  
  .gt-section {
    margin-bottom: var(--gt-space-4);
  }
}

/* ==========================================================================
   MODO ESCURO (preparação para implementação futura)
   ========================================================================== */

@media (prefers-color-scheme: dark) {
  /* Será implementado numa fase posterior */
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
  .gt-no-print {
    display: none !important;
  }
  
  .gt-print-only {
    display: block !important;
  }
  
  .gt-btn {
    border: 1px solid #000 !important;
    background: transparent !important;
    color: #000 !important;
  }
}/**
 * Estilos personalizados para React-toastify
 * 
 * Este ficheiro contém estilos personalizados para os toasts,
 * incluindo toasts de confirmação e outras customizações
 * 
 * @author GenTICKETS Team
 * @version 1.0
 * @date 16/06/2025
 */

/* ==========================================================================
   Toast de Confirmação
   ========================================================================== */

.toast-confirm {
  padding: 1rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.toast-confirm p {
  margin: 0 0 1rem 0;
  font-size: 0.95rem;
  color: #333;
  line-height: 1.4;
}

.toast-confirm__buttons {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.toast-confirm__button {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 80px;
}

.toast-confirm__button:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toast-confirm__button:active {
  transform: translateY(0);
}

.toast-confirm__button--confirm {
  background-color: #dc3545;
  color: white;
}

.toast-confirm__button--confirm:hover {
  background-color: #c82333;
}

.toast-confirm__button--cancel {
  background-color: #6c757d;
  color: white;
}

.toast-confirm__button--cancel:hover {
  background-color: #5a6268;
}

/* ==========================================================================
   Customizações do ToastContainer
   ========================================================================== */

/* Ajustar posição para não sobrepor elementos da interface */
.Toastify__toast-container {
  z-index: 9999;
  margin-bottom: 1rem;
  margin-right: 1rem;
}

/* Estilo base para todos os toasts - fundo branco */
.Toastify__toast {
  background: white !important;
  color: #333 !important;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  pointer-events: auto !important;
  position: relative !important;
  cursor: pointer !important;
}

/* Estilo para a barra de progresso */
.Toastify__progress-bar {
  background: linear-gradient(90deg, #007bff, #0056b3) !important;
  height: 4px !important;
}

/* Barra de progresso para diferentes tipos */
.Toastify__progress-bar--success {
  background: linear-gradient(90deg, #28a745, #1e7e34) !important;
}

.Toastify__progress-bar--error {
  background: linear-gradient(90deg, #dc3545, #c82333) !important;
}

.Toastify__progress-bar--warning {
  background: linear-gradient(90deg, #ffc107, #e0a800) !important;
}

.Toastify__progress-bar--info {
  background: linear-gradient(90deg, #17a2b8, #138496) !important;
}

/* Estilo personalizado para toasts de sucesso */
.Toastify__toast--success {
  background: white !important;
  color: #333 !important;
  border-left: 5px solid #28a745;
}

/* Estilo personalizado para toasts de erro */
.Toastify__toast--error {
  background: white !important;
  color: #333 !important;
  border-left: 5px solid #dc3545;
}

/* Estilo personalizado para toasts de aviso */
.Toastify__toast--warning {
  background: white !important;
  color: #333 !important;
  border-left: 5px solid #ffc107;
}

/* Estilo personalizado para toasts de informação */
.Toastify__toast--info {
  background: white !important;
  color: #333 !important;
  border-left: 5px solid #17a2b8;
}

/* Estilo personalizado para toasts informativos */
.Toastify__toast--info {
  background: linear-gradient(135deg, #17a2b8 0%, #007bff 100%);
  color: white;
}

/* Estilo para toast de loading */
.Toastify__toast--loading {
  background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
  color: white;
}

/* Customizar barra de progresso */
.Toastify__progress-bar {
  height: 3px;
}

.Toastify__progress-bar--success {
  background: rgba(255, 255, 255, 0.8);
}

.Toastify__progress-bar--error {
  background: rgba(255, 255, 255, 0.8);
}

.Toastify__progress-bar--warning {
  background: rgba(33, 37, 41, 0.8);
}

.Toastify__progress-bar--info {
  background: rgba(255, 255, 255, 0.8);
}

/* Customizar botão de fechar */
.Toastify__close-button {
  color: #333 !important;
  opacity: 0.8;
  transition: opacity 0.2s ease;
  background: none !important;
  border: none !important;
  cursor: pointer !important;
  z-index: 10001 !important;
  pointer-events: auto !important;
  position: relative !important;
  width: 20px !important;
  height: 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.Toastify__close-button:hover {
  opacity: 1;
  background-color: rgba(0, 0, 0, 0.1) !important;
  border-radius: 50% !important;
}

.Toastify__close-button:focus {
  outline: 2px solid #007bff !important;
  outline-offset: 2px !important;
}

/* ==========================================================================
   Animações personalizadas
   ========================================================================== */

/* Animação de entrada suave */
@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Adicionar estilos para ícones */
.Toastify__toast-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 20px !important;
  height: 20px !important;
  margin-right: 10px !important;
}

.Toastify__toast--success .Toastify__toast-icon {
  color: #28a745 !important;
}

.Toastify__toast--error .Toastify__toast-icon {
  color: #dc3545 !important;
}

.Toastify__toast--warning .Toastify__toast-icon {
  color: #ffc107 !important;
}

.Toastify__toast--info .Toastify__toast-icon {
  color: #17a2b8 !important;
}

/* Animação de saída suave */
@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* Aplicar animações aos toasts */
.Toastify__toast {
  animation: slideInRight 0.3s ease-out;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 0.9rem;
  line-height: 1.4;
}

.Toastify__toast--rtl {
  animation: slideInRight 0.3s ease-out;
}

/* ==========================================================================
   Responsividade
   ========================================================================== */

/* Ajustes para dispositivos móveis */
@media (max-width: 768px) {
  .Toastify__toast-container {
    margin: 0;
    padding: 0.5rem;
    width: 100vw;
    left: 0;
    right: 0;
  }
  
  .Toastify__toast {
    margin-bottom: 0.5rem;
    border-radius: 6px;
  }
  
  .toast-confirm__buttons {
    flex-direction: column;
    gap: 0.25rem;
  }
  
  .toast-confirm__button {
    width: 100%;
    min-width: auto;
  }
}

/* Ajustes para tablets */
@media (max-width: 1024px) and (min-width: 769px) {
  .Toastify__toast-container {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
  }
}

/* ==========================================================================
   Temas escuro/claro (preparação para futuro)
   ========================================================================== */

/* Variáveis CSS para facilitar mudanças de tema */
:root {
  --toast-bg-success: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  --toast-bg-error: linear-gradient(135deg, #dc3545 0%, #e74c3c 100%);
  --toast-bg-warning: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
  --toast-bg-info: linear-gradient(135deg, #17a2b8 0%, #007bff 100%);
  --toast-text-light: #ffffff;
  --toast-text-dark: #212529;
  --toast-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Preparação para tema escuro */
[data-theme="dark"] {
  --toast-bg-success: linear-gradient(135deg, #198754 0%, #20c997 100%);
  --toast-bg-error: linear-gradient(135deg, #dc3545 0%, #e74c3c 100%);
  --toast-bg-warning: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
  --toast-bg-info: linear-gradient(135deg, #0dcaf0 0%, #0d6efd 100%);
  --toast-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   Utilitários
   ========================================================================== */

/* Classe para ocultar toasts temporariamente */
.toast-hidden {
  display: none !important;
}

/* Classe para toasts com prioridade alta */
.toast-priority-high {
  z-index: 10000 !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25) !important;
}

/* Classe para toasts compactos */
.toast-compact {
  padding: 0.5rem 1rem !important;
  font-size: 0.8rem !important;
}

/* Classe para toasts expandidos */
.toast-expanded {
  padding: 1.5rem !important;
  font-size: 1rem !important;
  line-height: 1.6 !important;
}

/* Corrigir barra de progresso para ser visível */
.Toastify__progress-bar--success {
  background: #28a745 !important;
}

.Toastify__progress-bar--error {
  background: #dc3545 !important;
}

.Toastify__progress-bar--warning {
  background: #ffc107 !important;
}

.Toastify__progress-bar--info {
  background: #17a2b8 !important;
}

/* Aplicar animação de saída */
.Toastify__bounceOut {
  animation: slideOutRight 0.3s ease-in !important;
}

/* ==========================================================================
   Responsividade
   ========================================================================== */

/* Ajustes para dispositivos móveis */
@media (max-width: 768px) {
  .Toastify__toast-container {
    margin: 0;
    padding: 0.5rem;
    width: 100vw;
    left: 0;
    right: 0;
  }
  
  .Toastify__toast {
    margin-bottom: 0.5rem;
    border-radius: 6px;
  }
  
  .toast-confirm__buttons {
    flex-direction: column;
    gap: 0.25rem;
  }
  
  .toast-confirm__button {
    width: 100%;
    min-width: auto;
  }
}

/* Ajustes para tablets */
@media (max-width: 1024px) and (min-width: 769px) {
  .Toastify__toast-container {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
  }
}

/* ==========================================================================
   Temas escuro/claro (preparação para futuro)
   ========================================================================== */

/* Variáveis CSS para facilitar mudanças de tema */
:root {
  --toast-bg-success: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  --toast-bg-error: linear-gradient(135deg, #dc3545 0%, #e74c3c 100%);
  --toast-bg-warning: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
  --toast-bg-info: linear-gradient(135deg, #17a2b8 0%, #007bff 100%);
  --toast-text-light: #ffffff;
  --toast-text-dark: #212529;
  --toast-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Preparação para tema escuro */
[data-theme="dark"] {
  --toast-bg-success: linear-gradient(135deg, #198754 0%, #20c997 100%);
  --toast-bg-error: linear-gradient(135deg, #dc3545 0%, #e74c3c 100%);
  --toast-bg-warning: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
  --toast-bg-info: linear-gradient(135deg, #0dcaf0 0%, #0d6efd 100%);
  --toast-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   Utilitários
   ========================================================================== */

/* Classe para ocultar toasts temporariamente */
.toast-hidden {
  display: none !important;
}

/* Classe para toasts com prioridade alta */
.toast-priority-high {
  z-index: 10000 !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25) !important;
}

/* Classe para toasts compactos */
.toast-compact {
  padding: 0.5rem 1rem !important;
  font-size: 0.8rem !important;
}

/* Classe para toasts expandidos */
.toast-expanded {
  padding: 1.5rem !important;
  font-size: 1rem !important;
  line-height: 1.6 !important;
}.tecnico-photo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 80px;
  height: 80px;
}

.tecnico-photo-placeholder {
  width: 80px;
  height: 80px;
  object-fit: cover;
  background-color: transparent;
}

.tecnico-photo-placeholder.no-photo {
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--primary-color);
  background-color: #e0e0e0;
}

.tecnico-photo-img {
  width: 80px;
  aspect-ratio: 96/96;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-color);
}
.tecnico-photo-img:hover {
  transform: scale(1.1);
}.genchat-container {
  width: 100%;
  height: 100%;
  display: flex;
  padding: 20px;
  flex-direction: column;
}

.genchat-window {
  width: 100%;
  height: 100%;
  background-color: white;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.3s ease;
}

.genchat-header {
  background-color: #005a4f;
  color: white;
  padding: 10px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.genchat-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
}

.genchat-controls {
  display: flex;
  align-items: center;
}

.call-button {
  background-color: #00a99d;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 5px 10px;
  margin-right: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  font-size: 14px;
}

/* Classes para substituir estilos inline */
.typing-indicator--animated {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.call-button span {
  margin-left: 5px;
}

.call-controls {
  display: flex;
  align-items: center;
  margin-right: 10px;
}

.control-button {
  background-color: #333;
  color: white;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  margin: 0 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.control-button.active {
  background-color: #00a99d;
}

.control-button.end-call {
  background-color: #e74c3c;
}

.close-button {
  background-color: transparent;
  color: white;
  border: none;
  font-size: 16px;
  cursor: pointer;
  margin-right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.close-button:hover {
  color: #ff6b6b;
}

.video-container {
  position: relative;
  width: 100%;
  height: 200px;
  background-color: #f0f0f0;
  overflow: hidden;
}

.remote-video {
  width: 100%;
  height: 100%;
}

.remote-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.local-video {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 80px;
  height: 60px;
  border-radius: 4px;
  overflow: hidden;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.local-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.genchat-messages {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  background-color: #f5f5f5;
}

.message {
  margin-bottom: 10px;
  max-width: 80%;
  clear: both;
}

.message.sent {
  float: right;
}

.message.received {
  float: left;
}

.message-content {
  padding: 8px 12px;
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  word-break: break-word;
  background-color: var(--primary-color-light);
}

.message.sent .message-content {
  background-color: #005a4f;
  color: white;
  border-bottom-right-radius: 4px;
}

.message.received .message-content {
  background-color: white;
  color: #333;
  border-bottom-left-radius: 4px;
}

.message-meta {
  font-size: 11px;
  margin-top: 2px;
  color: #888;
  clear: both;
}

.message.sent .message-meta {
  text-align: right;
}

.file-message {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.file-info {
  display: flex;
  flex-direction: column;
}

.file-name {
  font-weight: 500;
  word-break: break-all;
}

.file-size {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
}

.message.received .file-size {
  color: #666;
}

.download-button {
  background-color: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 4px;
  padding: 5px 8px;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  font-size: 12px;
  margin-top: 5px;
}

.message.received .download-button {
  background-color: #eaeaea;
  color: #333;
}

.download-button span {
  margin-left: 5px;
}

.loading-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  color: #888;
  clear: both;
}

.loading-indicator span {
  margin-left: 8px;
}

.error-message {
  background-color: #ffebee;
  color: #e53935;
  padding: 8px 12px;
  border-radius: 4px;
  margin: 10px 0;
  display: flex;
  align-items: center;
  clear: both;
}

.error-message span {
  margin-left: 8px;
}

.genchat-input {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;

  padding: 10px;
  background-color: #f5f5f5;
  z-index: 1000;
}

.genchat-input-container {
  display: flex;
  align-items: center;
  background-color: #f5f5f5;
  border-radius: 24px;
  padding: 5px 10px;
}

.genchat-input-container input[type="text"] {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px;
  outline: none;
  font-size: 14px;
}

.input-actions {
  display: flex;
  align-items: center;
}

.file-upload {
  color: #888;
  cursor: pointer;
  margin-right: 10px;
  font-size: 16px;
}

.genchat-input button {
  background-color: #005a4f;
  color: white;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 5px;
}

.genchat-input button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

/* Indicador de digitação */
.typing-indicator {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 10px 0;
  padding: 5px 10px;
  background-color: #f0f0f0;
  border-radius: 18px;
  width: fit-content;
  max-width: 100px;
}

.typing-indicator span {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin: 0 2px;
  background-color: #888;
  border-radius: 50%;
  opacity: 0.6;
  animation: typing-animation 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) {
  animation-delay: 0s;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing-animation {
  0%, 100% {
    transform: scale(0.6);
    opacity: 0.6;
  }
  50% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Responsividade */
@media (max-width: 768px) {
  .genchat-window {
    width: 300px;
    height: 450px;
  }
}

@media (max-width: 480px) {
  .genchat-window {
    width: 280px;
    height: 400px;
    right: -10px;
  }
}.genchat-notification-container {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 300px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  overflow: hidden;
  transition: height 0.3s ease;
  border: 1px solid #1a7f72;
}

.genchat-notification-container.expanded {
  height: auto;
  max-height: 400px;
}

.genchat-notification-header {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  background-color: #1a7f72;
  color: white;
  cursor: pointer;
  font-weight: bold;
}

.genchat-notification-header svg {
  margin-right: 10px;
}

.notification-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ff5252;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 12px;
  margin-left: auto;
}

.genchat-notification-list {
  max-height: 350px;
  overflow-y: auto;
  padding: 10px;
}

.notification-item {
  background-color: #f9f9f9;
  border-radius: 6px;
  padding: 10px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  border-left: 3px solid #1a7f72;
}

.notification-item:hover {
  background-color: #f0f0f0;
}

.notification-item.new {
  border-left: 3px solid #ff5252;
}

.notification-header {
  display: flex;
  align-items: center;
  font-weight: bold;
  margin-bottom: 5px;
}

.notification-header svg {
  margin-right: 8px;
  color: #1a7f72;
}

.notification-content {
  margin-bottom: 5px;
}

.notification-content p {
  margin: 0;
  font-size: 14px;
}

.notification-footer {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #666;
}

.no-notifications {
  text-align: center;
  padding: 20px;
  color: #666;
}

/* Estilos para as janelas de chat arrastáveis */
.draggable-chat-window {
  position: fixed;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transition: height 0.3s ease, width 0.3s ease;
  border: 1px solid #1a7f72;
  display: flex;
  flex-direction: column;
}

.draggable-chat-window.minimized {
  height: 40px !important;
  overflow: hidden;
}

.chat-window-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 15px;
  background-color: #1a7f72;
  color: white;
  cursor: move;
  user-select: none;
}

.chat-window-title {
  display: flex;
  align-items: center;
  font-weight: bold;
}

.chat-window-title svg {
  margin-right: 8px;
}

.chat-window-controls {
  display: flex;
  align-items: center;
}

.chat-window-controls button {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  margin-left: 5px;
  padding: 2px 5px;
  border-radius: 3px;
  transition: background-color 0.2s ease;
}

.chat-window-controls button:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.chat-window-content {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Ajustes para o componente GenChat dentro da janela arrastável */
.chat-window-content .genchat-container {
  position: relative !important;
  top: 0 !important;
  right: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Ajustes para a hero-section */
.hero-section {
  position: relative;
}

/* Estilos para o painel de notificações no header */
.tickets-user-controls .genchat-notification-container {
  position: relative;
  top: auto;
  right: auto;
  margin: 0 10px;
  width: auto;
  min-width: 200px;
  z-index: 100;
}

.tickets-user-controls .genchat-notification-header {
  padding: 6px 12px;
  border-radius: 4px;
}

.tickets-user-controls .genchat-notification-list {
  position: absolute;
  width: 280px;
  right: 0;
  top: 100%;
  border-top-right-radius: 0;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Responsividade */
@media (max-width: 768px) {
  .genchat-notification-container {
    width: 250px;
  }
  
  .draggable-chat-window {
    width: 300px !important;
  }
  
  .tickets-user-controls .genchat-notification-container {
    min-width: 150px;
  }
  
  .tickets-user-controls .genchat-notification-list {
    width: 250px;
  }
}/* ============================================================================
   TCKLAYOUT CSS - STYLING UNIFORME GENAPPS
   ============================================================================ */

/* CSS Variables - GenApps Theme */
:root {
  --color-primary: #008066;
  --color-primary-hover: #006b56;
  --color-primary-active: #005a48;
  --color-text-primary: #111827;
  --color-text-secondary: #6b7280;
  --color-text-muted: #9ca3af;
  --color-bg-primary: #ffffff;
  --color-bg-secondary: #f9fafb;
  --color-border-light: #e5e7eb;
  --color-border-medium: #d1d5db;
  --font-family-primary: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --spacing-xs: 8px;
  --spacing-sm: 12px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --radius-base: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-base: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --transition-base: all 0.2s ease-in-out;
}

/* Layout Container */
.tck-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--color-bg-primary);
}

/* Header - GenADM Style */
.tck-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100px;
  padding: 0 var(--spacing-lg);
  background-color: white;
  color: var(--color-primary);
  border-bottom: 1px solid var(--color-border-light);
  flex-shrink: 0;
}

.tck-header__logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  text-decoration: none;
}

.tck-header__logo-img {
  height: 75px;
  max-height: 75px;
  width: auto;
}

.tck-header__logo:hover {
  filter: drop-shadow(0 0 2rem var(--color-primary));
}

.tck-header__brand {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-primary);
}

/* User Section */
.tck-header__user {
  display: flex;
  align-items: center;
}

.tck-header__user-container {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.tck-header__logout-btn {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  background: transparent;
  border: 1px solid var(--color-border-medium);
  border-radius: var(--radius-md);
  padding: var(--spacing-sm) var(--spacing-md);
  cursor: pointer;
  transition: var(--transition-base);
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
}

.tck-header__logout-btn:hover {
  background: var(--color-bg-secondary);
  color: var(--color-text-primary);
  border-color: var(--color-primary);
}

/* Navigation - Nav Tabs */
.tck-nav {
  background-color: var(--color-bg-primary);
  border-bottom: 1px solid var(--color-border-light);
  height: 56px;
}

.tck-nav__container {
  display: flex;
  gap: 0;
  justify-content: flex-start;
  max-width: 1200px;
}

.tck-nav__item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-lg);
  text-decoration: none;
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: var(--transition-base);
  position: relative;
}

.tck-nav__item:hover {
  background-color: var(--color-bg-secondary);
  color: var(--color-text-primary);
}

.tck-nav__item.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  background-color: var(--color-bg-secondary);
}

.tck-nav__item svg {
  font-size: 1rem;
}

/* Main Content */
.tck-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: var(--spacing-xl);
  height: 100vh;
  max-height: calc(100vh - 200px);
  width: 100%;
}

/* Footer - GenADM Style */
.tck-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 40px;
  padding: 0 var(--spacing-lg);
  background-color: white;
  color: var(--color-primary);
  border-top: 1px solid var(--color-border-light);
  flex-shrink: 0;
}

.tck-footer__copyright {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.tck-footer__poweredby {
  display: flex;
  align-items: center;
  font-size: 0.85rem;
  color: var(--color-primary);
  font-weight: bold;
  font-style: italic;
}

.tck-footer__logo {
  width: 30px;
  aspect-ratio: 1/1;
  margin-right: 15px;
  object-fit: contain;
}

/* Responsive Design */
@media (max-width: 768px) {
  .tck-header {
    height: 80px;
    padding: 0 var(--spacing-md);
  }

  .tck-header__logo-img {
    max-height: 50px;
  }

  .tck-header__brand {
    font-size: 1rem;
  }

  .tck-header__logout-btn span {
    display: none;
  }

  .tck-nav {
    padding: 0 var(--spacing-md);
  }

  .tck-nav__container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .tck-nav__item {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 0.8rem;
  }

  .tck-nav__item span {
    display: none;
  }

  .tck-nav__item svg {
    font-size: 1.25rem;
  }

  .tck-main {
    padding: var(--spacing-md);
  }

  .tck-footer {
    height: 35px;
    padding: 0 var(--spacing-md);
  }

  .tck-footer__copyright {
    font-size: 0.75rem;
  }

  .tck-footer__poweredby {
    font-size: 0.75rem;
  }

  .tck-footer__logo {
    width: 25px;
    margin-right: 10px;
  }
}

@media (max-width: 480px) {
  .tck-header {
    height: 70px;
    padding: 0 var(--spacing-sm);
  }

  .tck-header__logo-img {
    max-height: 40px;
  }

  .tck-header__brand {
    display: none;
  }

  .tck-nav__item svg {
    font-size: 1.5rem;
  }

  .tck-main {
    padding: var(--spacing-sm);
  }

  .tck-footer {
    padding: 0 var(--spacing-sm);
  }

  .tck-footer__logo {
    width: 20px;
    margin-right: 8px;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .tck-header__logout-btn,
  .tck-nav__item {
    transition: none;
  }
}
.ticket-item--dragging {
  opacity: 0.5;
}

.ticket-item--normal {
  opacity: 1;
}

/* ESTILOS PAPER FLIGHT STRIP - CONTROLE AÉREO */
.ticket-item {
  background: white;
  border-radius: 6px;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
  margin: 10px;
  padding: 8px;
  user-select: none;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.ticket-item:hover {
  transform: translate(-6px);
  transition: transform 0.2s ease-in-out;
  box-shadow: 6px 6px 10px rgba(0, 0, 0, 0.5);
}

/* Borda esquerda colorida por prioridade */
.priority-high {
  border-left: 3px solid var(--danger-color);
}

.priority-medium {
  border-left: 3px solid var(--warning-color);
}

.priority-low {
  border-left: 3px solid var(--success-color);
}

/* Ticket selecionado */
.selected-ticket {
  border-left: 4px solid var(--primary-color) !important;
  background-color: rgba(26, 127, 114, 0.15) !important;
  box-shadow: 0 2px 8px rgba(26, 127, 114, 0.2) !important;
  position: relative;
  transform: translateX(2px);
  transition: all 0.3s ease;
}

.selected-ticket::after {
  content: 'SELECIONADO';
  position: absolute;
  top: -8px;
  right: 10px;
  background: var(--primary-color);
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: bold;
  z-index: 10;
  letter-spacing: 0.5px;
}

.ticket-item-padding-bottom {
  padding-bottom: 12px;
}

/* Header do ticket - SEM FOTO DO TÉCNICO (apenas no painel central) */
.ticket-item-header-flex {
  display: flex;
  align-items: center;
  padding-left: 4px;
  padding-top: 4px;
  position: relative;
  justify-content: flex-start;
  gap: 8px;
}

.ticket-id-bold {
  font-weight: 700;
  margin-right: 4px;
  color: var(--text-secondary);
  min-width: 50px;
  font-size: 0.9rem;
}

.ticket-title-bold {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  font-size: 0.95rem;
}

.ticket-header-photo-container {
  position: absolute;
  right: 8px;
  top: 6px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 32px;
  width: 32px;
}

.ticket-header-photo-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--primary-color-light);
}

/* Detalhes do ticket */
.ticket-item-details-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: 4px;
  padding-right: 4px;
  margin-top: 4px;
  font-size: 0.85rem;
}

.ticket-author-display {
  font-size: 0.85rem;
  color: #555;
  flex: 1;
}

.ticket-created-at {
  font-size: 0.8rem;
  color: #888;
  margin-left: 8px;
}

/* Badges */
.ticket-badges-flex {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-left: 4px;
  padding-bottom: 4px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.ticket-category-badge {
  color: white;
  border-radius: 10px;
  padding: 3px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  background-color: var(--primary-color);
  transition: all 0.2s ease;
}

.ticket-priority-badge {
  color: white;
  border-radius: 10px;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  background-color: #6b7280;
}

/* Cores de fundo para badges de prioridade baseadas na classe pai */
.priority-high .ticket-priority-badge {
  background-color: var(--danger-color);
}

.priority-medium .ticket-priority-badge {
  background-color: var(--warning-color);
}

.priority-low .ticket-priority-badge {
  background-color: var(--success-color);
}

/* Cores de fundo para badge de categoria baseadas na classe pai */
.priority-high .ticket-category-badge {
  background-color: var(--danger-color);
}

.priority-medium .ticket-category-badge {
  background-color: var(--warning-color);
}

.priority-low .ticket-category-badge {
  background-color: var(--success-color);
}

/* Status badge - COM TEXTO BRANCO E BACKGROUND DE COR */
.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #fff;
  transition: all 0.2s ease;
  margin-left: auto;
}

.status-open {
  background-color: var(--primary-color);
}

.status-em-andamento {
  background-color: var(--warning-color);
}

.status-resolvido {
  background-color: var(--success-color);
}

.status-fechado {
  background-color: #6b7280;
}

/* Efeito de papel perfurado */
.ticket-item::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 20px;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 8px,
    rgba(0, 0, 0, 0.03) 8px,
    rgba(0, 0, 0, 0.03) 10px
  );
  border-radius: 0 6px 6px 0;
  pointer-events: none;
}

/* Status footer da lista de pendentes */
.status-pendentes {
  height: 40px;
  max-height: 40px;
  background: white;
  border-top: 1px solid #A5A7Ab;
  margin-top: 5px;
  padding: 10px 18px;
  font-size: 12px;
  color: var(--primary-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  font-weight: 600;
  border-radius: 0 0 8px 8px;
}

.status-pendentes span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.historic-content {
  width: 100%;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
  padding: 20px;
  background: var(--bg-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
  background-color: white;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  border-left: 1px solid var(--primary-color);
  border-right: 1px solid var(--primary-color);
  border-bottom: 1px solid var(--primary-color);

}

.timeline {
  position: relative;
  padding: 1rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 2px;
  background: var(--primary-color);
  opacity: 0.3;
}

.historic-card {
  position: relative;
  margin-left: 20px;
  padding: 1rem;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--primary-color);
  transition: all 0.3s ease;
}

.historic-card:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-md);
}

.historic-card::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background: var(--primary-color);
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 4px rgba(26,127,114,0.2);
}

.ticket-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.ticket-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ticket-id {
  font-size: 0.85rem;
  color: var(--primary-color);
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  background: rgba(26,127,114,0.1);
  border-radius: var(--radius-sm);
}

.ticket-title {
  font-size: 1rem;
  color: var(--text-color);
  margin: 0;
}

.ticket-details {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

.ticket-author,
.ticket-category,
.ticket-priority {
  color:var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.priority-alta {
  color: #dc3545;
}

.priority-media {
  color: #ffc107;
}

.priority-baixa {
  color: #28a745;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-fechado {
  background-color: #28a745;
  color: white;
}

.status-resolvido {
  background-color: #17a2b8;
  color: white;
}

.status-pendente {
  background-color: #ffc107;
  color: #000;
}

.status-cancelado {
  background-color: #dc3545;
  color: white;
}

.ticket-status {
  margin: 0.5rem 0;
}

.ticket-resolution {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-color);
  margin: 0.5rem 0;
}

.closed-at {
  font-size: 0.8rem;
  color:var(--text-muted);
  margin-top: 0.5rem;
  text-align: right;
}

.historic-empty {
  text-align: center;
  padding: 2rem;
  color:var(--text-muted);
  font-style: italic;
}

.technician-photo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-color);
}

@media (max-width: 768px) {
  .timeline-date {
    position: relative;
    left: 0;
    top: 0;
    transform: none;
    margin-bottom: 0.5rem;
  }
  
  .historic-card {
    margin-left: 15px;
  }
  
  .historic-card::before {
    left: -19px;
  }
}.author-photo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto;
  margin-right: 12px;
  transition: transform 0.2s ease-in-out;
}

.author-photo-container:hover {
  transform: scale(1.1);
}
.author-photo-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--primary-color);
  margin-left: 12px;
  object-fit: cover;
  background-color: #f5f5f5;
}

.author-photo-placeholder.no-photo {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary-color);
  background-color: #e0e0e0;
}

.author-photo-img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-color-light);
}
.author-photo-img:hover {
  transform: scale(1.1);
}
.author-separator {
  width: 2px;
  height: 80%;
  background-color: var(--primary-color);
  margin-right: 16px;
}.utilizador-container {
  display: flex;
  align-items: baseline;
  gap: 8px;
  width: 40px;
  height: 40px;
}

.manager-photo-placeholder::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  height: 60%;
  background-color:var(--text-muted);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E");
  mask-size: contain;
  mask-position: center;
  mask-repeat: no-repeat;
}

.manager-photo-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--primary-color);
  background-color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  position: relative;
}
.manager-photo-img {
  transition: transform 0.2s ease-in-out;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-color)
}
.manager-photo-img:hover {
  transform: scale(1.1);
}
.manager-info-container {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
}
.field-manager {
  width: 100%;
  align-items: flex-start;
  justify-content: space-between  ;
  margin-left: 10px ;
}

.manager-row {
  display: flex;
  align-items: center;
  margin-bottom: 6px; /* Espaçamento entre linhas */
  font-size: 0.85rem;
  position: relative;
  z-index: 1; /* Valor menor que o z-index da foto do manager */
}

/* Outlook Email Chat - Design Moderno e Responsivo */
/* Fontes */
:root {
    --outlook-primary: #0078d4;
    --outlook-primary-dark: #005fa3;
    --outlook-secondary: #f3f2f1;
    --outlook-border: #e1e1e1;
    --outlook-text: #252423;
    --outlook-text-light: #605e5c;
    --outlook-hover: #f5f5f5;
    --outlook-focus: #edebe9;
    --alta-color: #d13438;
    --alta-bg: #ffeaea;
    --media-color: #b8860b;
    --media-bg: #fffbe6;
    --baixa-color: #228b22;
    --baixa-bg: #eaffea;
    /* Cores para IA */
    --ai-primary: #6e48aa;
    --ai-secondary: #f0ebff;
    --ai-accent: #9c6ade;
    --ai-border: #d4c6f3;
    --ai-text: #4a2b8c;
    --ai-positive: #107c10;
    --ai-neutral: #797775;
    --ai-negative: #a4262c;
    --ai-info: #0078d4;
    --ai-warning: #d83b01;
    --ai-active: #39ff14;
    --font-family: 'Robot', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --transition: all 0.2s ease;
}
/* Modal Backdrop */
.outlook-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}
/* Classes para substituir estilos inline */
.outlook-loading-container {
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(2px);
    z-index: 999;
}
/* Janela Principal */
.outlook-chat-window {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90vw;
    max-width: 1200px;
    height: 85vh;
    max-height: 800px;
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    font-family: var(--font-family);
    transition: var(--transition);
}
/* Cabeçalho */
.outlook-chat-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 20px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: #fff;
    font-weight: 600;
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
    user-select: none;
    cursor: move;
    -webkit-user-drag: element;
    touch-action: none;
}
/* Classes para substituir CSS inline */
.outlook-email-list-header--sticky {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: #fff;
}
.outlook-ai-panel-actions {
    display: flex;
    gap: 8px;
}
.outlook-icon-btn--close {
    color: #252423;
}
.outlook-mood-loading {
    display: flex;
    align-items: center;
    gap: 8px;
}
.outlook-suggestions-loading {
    display: flex;
    align-items: center;
    gap: 8px;
}
.outlook-attachment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.outlook-attachment-title {
    margin: 0;
}
.outlook-attachment-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--outlook-text);
    padding: 4px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.outlook-attachment-close:hover {
    background-color: var(--outlook-hover);
}
.outlook-attachment-center {
    text-align: center;
}
.outlook-attachment-image {
    max-width: 100%;
    max-height: 500px;
}
.outlook-attachment-placeholder {
    padding: 40px;
    background-color: var(--outlook-secondary);
    border-radius: var(--radius-sm);
}
.outlook-attachment-icon {
    font-size: 48px;
    margin-bottom: 16px;
    color: var(--outlook-primary);
}
.outlook-attachment-download {
    display: inline-block;
    margin-top: 16px;
}
.outlook-email-content--preformatted {
    white-space: pre-line;
}
.outlook-ai-suggestion-label {
    font-weight: 500;
    margin-bottom: 4px;
}
.outlook-ai-suggestion-hint {
    font-size: 12px;
    margin-top: 4px;
    font-style: italic;
}
.outlook-ai-correction-label {
    font-weight: 500;
    margin-bottom: 4px;
}
.outlook-ai-correction-hint {
    font-size: 12px;
    margin-top: 4px;
    font-style: italic;
}
.outlook-ai-assistant-icon {
    color: var(--outlook-text);
}
.outlook-ai-assistant-icon--active {
    color: #32CD32;
}
.outlook-attachment-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 1100;
    max-width: 80%;
    max-height: 80%;
    overflow: auto;
}
.outlook-chat-header .outlook-title {
    font-size: 18px;
    margin-left: 12px;
    flex-grow: 1;
}
.outlook-header-actions {
    display: flex;
    gap: 12px;
}
.outlook-icon-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.outlook-icon-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}
.outlook-icon-btn-dark {
    color: #252423;
}
/* Layout Principal - Duas Colunas */
.outlook-main {
    display: flex;
    flex: 1;
    overflow: hidden;
}
/* Lista de Emails */
.outlook-email-list {
    width: 350px;
    border-right: 1px solid var(--outlook-border);
    overflow-y: auto;
    background: var(--outlook-secondary);
}
.outlook-email-list-header {
    padding: 12px 16px;
    background: #fff;
    border-bottom: 1px solid var(--outlook-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 10;
}
.outlook-email-list-title {
    font-weight: 600;
    font-size: 16px;
    color: var(--outlook-text);
}
.outlook-email-item {
    padding: 14px 16px;
    border-bottom: 1px solid var(--primary-hover);
    cursor: pointer;
    background: #fff;
    transition: all 0.3s ease;
    margin-bottom: 5px;
    margin-left: 10px;
    position: relative;
    max-width: 90%;
    border-left: 2px solid transparent;
}
.outlook-email-item[title] {
    position: relative;
}
/* Tooltip removido */
.outlook-email-item:hover {
    background: var(--outlook-hover);
}
.outlook-email-item.active {
    background: var(--outlook-focus);
    border-left: 4px solid var(--outlook-primary);
    box-shadow: 0 0 8px rgba(0, 120, 212, 0.2);
    position: relative;
    font-weight: 600;
    transform: translateX(2px);
}
.outlook-email-item.active::after {
    content: "Selecionado";
    position: absolute;
    top: -8px;
    right: 10px;
    background: var(--outlook-primary);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
}
.outlook-email-item-highlight {
    background: var(--outlook-secondary);
    border-left: 4px solid var(--outlook-primary) !important;
    position: relative;
}
.outlook-email-item-highlight::after {
    content: "Email do Ticket";
    position: absolute;
    top: -8px;
    right: 10px;
    background: var(--outlook-primary);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: bold;
}
.outlook-email-item.unread {
    font-weight: 700;
}
.outlook-email-item.unread .outlook-email-item-from,
.outlook-email-item.unread .outlook-email-item-subject {
    font-weight: 700;
    color: var(--outlook-primary-dark);
}
.outlook-email-item-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}
.outlook-email-item-from {
    font-weight: 600;
    font-size: 14px;
    color: var(--outlook-text);
}
.outlook-email-item-date {
    font-size: 12px;
    color: var(--outlook-text-light);
}
.outlook-email-item-subject {
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 6px;
    color: #008066;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.outlook-email-item-preview {
    font-size: 13px;
    color: var(--outlook-text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.outlook-email-item-attachment {
    margin-right: 5px;
}
.outlook-email-item-metadata {
    display: flex;
    margin-top: 6px;
    gap: 8px;
}
/* Área de Conteúdo do Email */
.outlook-email-content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
/* Barra de Ferramentas */
.outlook-chat-toolbar {
    display: flex;
    justify-content: space-between;
    padding: 12px 20px;
    background: #fff;
    border-bottom: 1px solid var(--outlook-border);
    align-items: center;
}
.outlook-toolbar-group {
    display: flex;
    align-items: center;
    gap: 12px;
}
.outlook-search-input {
    border: 1px solid var(--outlook-border);
    border-radius: var(--radius-sm);
    padding: 8px 12px 8px 32px;
    font-size: 14px;
    background: #fff url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%23605e5c" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"/><line x1="21" y1="21" x2="16.65" y2="16.65"/></svg>') no-repeat 8px center;
    width: 200px;
    outline: none;
    transition: var(--transition);
}
.outlook-search-input:focus {
    border-color: var(--outlook-primary);
    box-shadow: 0 0 0 2px rgba(0, 120, 212, 0.1);
}
.outlook-select-input {
    border: 1px solid var(--outlook-border);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-size: 14px;
    background: #fff;
    outline: none;
    transition: var(--transition);
}
.outlook-select-input:focus {
    border-color: var(--outlook-primary);
    box-shadow: 0 0 0 2px rgba(0, 120, 212, 0.1);
}
/* Área de Visualização do Email */
.outlook-email-thread {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    background: #f9f9f9;
}
.outlook-email-thread-focus {
    background: #fffbe6;
}
.outlook-email-message {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.outlook-email-message:hover {
    box-shadow: var(--shadow-md);
}
.outlook-email-message.original {
    border-left: 4px solid var(--outlook-primary);
    position: relative;
}
.outlook-email-message.original::after {
    content: "Email do Ticket Atual";
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--outlook-primary);
    color: white;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: bold;
}
.outlook-email-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--outlook-text);
}
.outlook-email-from, .outlook-email-to, .outlook-email-subject {
    margin-bottom: 4px;
}
.outlook-email-from {
    font-weight: 600;
}
.outlook-email-date {
    font-size: 13px;
    color: var(--outlook-text-light);
    margin-left: auto;
}
.outlook-email-priority {
    padding: 2px 10px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.outlook-priority-alta {
    background: var(--alta-bg);
    color: var(--alta-color);
    border: 1px solid var(--alta-color);
}
.outlook-priority-media {
    background: var(--media-bg);
    color: var(--media-color);
    border: 1px solid var(--media-color);
}
.outlook-priority-baixa {
    background: var(--baixa-bg);
    color: var(--baixa-color);
    border: 1px solid var(--baixa-color);
}
.outlook-email-category {
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    background: #e0f7fa;
    color: #00796b;
    border: 1px solid #4dd0e1;
    font-weight: 500;
}
.outlook-email-content {
    white-space: pre-wrap;
    line-height: 1.6;
    font-size: 15px;
    color: var(--outlook-text);
}
.outlook-email-subject-large {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}
.outlook-email-attachments {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--outlook-border);
}
.outlook-attachment-title {
    font-weight: 500;
    margin-bottom: 8px;
}
.outlook-attachment-link {
    display: inline-flex;
    align-items: center;
    margin-right: 12px;
    margin-top: 8px;
    padding: 6px 12px;
    background: var(--outlook-secondary);
    border-radius: var(--radius-sm);
    color: var(--outlook-text);
    text-decoration: none;
    font-size: 13px;
    transition: var(--transition);
}
.outlook-attachment-link:hover {
    background: var(--outlook-focus);
}
.outlook-attachment-link svg {
    margin-right: 6px;
}
/* Área de Resposta */
.outlook-reply-area {
    padding: 16px 24px;
    background: #fff;
    border-top: 1px solid var(--outlook-border);
    border-bottom-left-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
}
.outlook-email-reply-form {
    padding: 16px 24px;
    border-top: 1px solid var(--outlook-border);
    background: #fff;
    border-bottom-left-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
}
.outlook-email-reply-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--outlook-border);
    border-radius: var(--radius-md);
    resize: none;
    font-family: var(--font-family);
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 12px;
    outline: none;
    transition: var(--transition);
}
.outlook-reply-input:focus {
    border-color: var(--outlook-primary);
    box-shadow: 0 0 0 2px rgba(0, 120, 212, 0.1);
}
.outloook-email-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    
}
.outlook-ollama-suggestion {
    background: var(--ai-secondary);
    border-left: 3px solid var(--ai-primary);
    padding: 10px 16px;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--outlook-text);
    display: flex;
    align-items: center;
}
.ollama-suggestion svg {
    margin-right: 8px;
    color: var(--ai-primary);
}
/* Componentes de IA */
.outlook-ai-panel {
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 16px;
    overflow: hidden;
    border: 1px solid var(--ai-border);
}
.outlook-ai-panel-header {
    background: whitesmoke;
    color: #fff;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--ai-border);
}
.outlook-ai-panel-title {
    font-weight: 600;
    color: var(--ai-text);
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}
.outlook-ai-panel-content {
    padding: 16px;
    font-size: 14px;
    color: var(--ai-text);
}
.outlook-ai-panel-title svg {
    color: var(--ai-primary);
}
/* Botões do Assistente IA */
.outlook-ai-buttons {
    display: flex;
    justify-content: space-between;
    padding: 16px;
    border-top: 1px solid var(--ai-border);
    margin-top: 16px;
}
.outlook-ai-button {
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 0 16px 16px;
}
/* Resumo da Thread */
.outlook-thread-summary {
    line-height: 1.5;
    color: var(--outlook-text);
    font-size: 14px;
}
.outlook-mood-analysis {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}
.outlook-mood-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
}
.outlook-mood-positive {
    background: rgba(16, 124, 16, 0.1);
    color: var(--ai-positive);
}
.outlook-mood-neutral {
    background: rgba(121, 119, 117, 0.1);
    color: var(--ai-neutral);
}
.outlook-mood-negative {
    background: rgba(164, 38, 44, 0.1);
    color: var(--ai-negative);
}
.outlook-response-suggestions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.outlook-response-suggestion-item {
    background: var(--ai-secondary);
    border: 1px solid var(--ai-border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    color: var(--outlook-text);
}
.response-suggestion-item:hover {
    background: #e6deff;
    border-color: var(--ai-primary);
}
.outlook-troubleshooting-checklist {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.outlook-checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--outlook-border);
}
.outlook.checklist-item:last-child {
    border-bottom: none;
}
.outlook.checklist-checkbox {
    width: 18px;
    height: 18px;
    margin-top: 2px;
}
.outlook-checklist-label {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
}
.outlook-checklist-item-status {
    font-size: 18px;
}
/* Correção Ortográfica */
.outlook-spell-check-result {
    background: var(--outlook-secondary);
    border: 1px solid var(--outlook-border);
    border-radius: var(--radius-sm);
    padding: 12px;
    margin-bottom: 12px;
}
.outlook-spell-check-title {
    font-weight: 500;
    margin-bottom: 4px;
}
.outlook-spell-check-text {
    font-style: italic;
    font-size: 12px;
    margin-top: 4px;
}
/* Visualização de Anexos */
.outlook-attachment-preview {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.outlook-attachment-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    width: 80%;
    max-width: 1000px;
}
.outlook-attachment-preview-title {
    color: #fff;
    margin: 0;
}
.outlook-attachment-preview-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}
.outlook-attachment-preview-content {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 24px;
    width: 80%;
    max-width: 1000px;
    max-height: 80vh;
    overflow: auto;
}
.outlook-attachment-preview-image {
    max-width: 100%;
    max-height: 500px;
}
.outlook-attachment-preview-fallback {
    padding: 40px;
    background-color: var(--outlook-secondary);
    border-radius: var(--radius-sm);
    text-align: center;
}
.outlook-attachment-preview-icon {
    font-size: 48px;
    margin-bottom: 16px;
    color: var(--outlook-primary);
}
.outlook-attachment-preview-download {
    background: var(--outlook-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 8px 16px;
    cursor: pointer;
    display: inline-block;
    margin-top: 16px;
    text-decoration: none;
}
.outlook-attachment-preview-download:hover {
    background: var(--outlook-primary-dark);
}
/* Estados de Carregamento */
.outlook-loading-emails {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: var(--outlook-text-light);
}
.outlook-loading-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}
.outlook-loading-spinner {
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* Indicador de Ticket */
.outlook-email-ticket-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    background: var(--outlook-primary);
    color: white;
    font-weight: 500;
}
/* Sugestão de Ollama */
.outlook-ollama-suggestion {
    background: var(--ai-secondary);
    border: 1px solid var(--ai-border);
    border-radius: var(--radius-sm);
    padding: 12px;
    margin-bottom: 12px;
}
.outlook-ollama-suggestion-title {
    font-weight: 500;
    margin-bottom: 4px;
}
.outlook-ollama-suggestion-text {
    font-style: italic;
    font-size: 12px;
    margin-top: 4px;
}
/* Estilos para os botões do Assistente IA */
.assistente-ia-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 1001;
    animation: slideIn 0.3s ease-out;
}
.assistente-ia-header {
    display: flex;
    align-items: center;
    padding: 16px;
    background: var(--outlook-primary, #0078d4);
    color: white;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}
.assistente-ia-tabs {
    display: flex;
    border-bottom: 1px solid #e1e1e1;
    margin-bottom: 16px;
}
.assistente-ia-tab {
    padding: 8px 16px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    font-weight: 500;
    transition: all 0.2s;
}
.assistente-ia-tab.active {
    border-bottom-color: var(--outlook-primary, #0078d4);
    color: var(--outlook-primary, #0078d4);
}
.assistente-ia-buttons {
    display: flex;
    justify-content: space-between;
    padding: 16px;
    border-top: 1px solid #e1e1e1;
}
.assistente-ia-button {
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    gap: 6px;
}
.assistente-ia-button-primary {
    background-color: var(--outlook-primary, #0078d4);
    color: white;
}
.assistente-ia-button-primary:hover {
    background-color: var(--outlook-primary-dark, #005fa3);
}
.assistente-ia-button-secondary {
    background-color: #e5e7eb;
    color: #374151;
}
.assistente-ia-button-secondary:hover {
    background-color: #d1d5db;
}
.assistente-ia-button-outline {
    border: 1px solid var(--outlook-primary, #0078d4);
    color: var(--outlook-primary, #0078d4);
    background-color: transparent;
}
.assistente-ia-button-outline:hover {
    background-color: rgba(0, 120, 212, 0.1);
}
/* Estilo para destacar o email relacionado ao ticket atual */
.outlook-email-item-highlight {
    border-left: 4px solid var(--outlook-primary);
    background-color: rgba(0, 120, 212, 0.1);
    box-shadow: 0 0 8px rgba(0, 120, 212, 0.4);
    position: relative;
}
.outlook-email-item-highlight::before {
    content: "Ticket Atual";
    position: absolute;
    top: -8px;
    right: 10px;
    background: var(--outlook-primary);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
}
.outlook-reply-options {
    display: flex;
    gap:12px;
}
.outlook-reply-option-btn {
    background: none;
    border: 1px solid var(--outlook-border);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    color: var(--outlook-text);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}
.outlook-reply-option-btn:hover {
    background: var(--outlook-hover);
}
.outlook-reply-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}
.outlook-reply-button {
    background: var(--primary-hover);
    color: white;
    border: none;
    border-radius: var (--radius-sm);
    padding:10px 16px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}
.outlook-reply-option-btn.active {
    background: var(--ai-secondary);
    border-color: var(--ai-primary);
    color: var(--ai-text);
    font-weight: 500;
}
.outlook-reply-options {
    display: flex;
    gap: 12px;
}
.outlook-email-actions{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.outlook-ai-panel-actions{
    display:flex;
    justify-content: left;
    align-items:initial;
    gap: 12px;
    padding: 12px;
    
}
/* Responsividade */
@media (max-width: 768px) {
    .outlook-chat-window {
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        border-radius: 0;
    }
    
    .outlook-main {
        flex-direction: column;
    }
    
    .outlook-email-list {
        width: 100%;
        height: 40%;
        border-right: none;
        border-bottom: 1px solid var(--outlook-border);
    }
    
    .outlook-chat-toolbar {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .outlook-toolbar-group {
        flex-direction: column;
    }
    
    .outlook-search-input {
        width: 100%;
    }
    
    .outlook-ai-panel-header {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
}.message-box-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(2px);
}

.message-box {
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 90%;
  max-width: 500px;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.message-box-header {
  display: flex;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #eee;
  position: relative;
}

.message-box-header h2 {
  margin: 0;
  margin-left: 12px;
  font-size: 1.2rem;
  font-weight: 600;
  flex-grow: 1;
}

.message-icon {
  font-size: 1.5rem;
}

.message-icon.error { color: #dc2626; }
.message-icon.info { color: #2563eb; }
.message-icon.success { color: #16a34a; }
.message-icon.warning { color: #d97706; }

.close-button {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 4px;
  font-size: 1.2rem;
  transition: color 0.2s;
}

.close-button:hover {
  color: #374151;
}

.message-box-content {
  padding: 16px;
  color: #374151;
  font-size: 1rem;
  line-height: 1.5;
}

.message-box-buttons {
  display: flex;
  justify-content: flex-end;
  padding: 16px;
  gap: 8px;
  border-top: 1px solid #eee;
}

.message-box-button {
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.message-box-button.default {
  background-color: #e5e7eb;
  color: #374151;
}

.message-box-button.default:hover {
  background-color: #d1d5db;
}

.message-box-button.primary {
  background-color: #2563eb;
  color: white;
}

.message-box-button.primary:hover {
  background-color: #1d4ed8;
}

.message-box-button.danger {
  background-color: #dc2626;
  color: white;
}

.message-box-button.danger:hover {
  background-color: #b91c1c;
}.historic-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 10px 0;
  color: linear-gradient(to bottom, #00fa69, #a5a5a5);
  overflow-y: auto;
}

.timeline-line {
  position: absolute;
  left: 41px; /* Mantendo a posição consistente */
  top: 0;
  bottom: 0;
  width: 3px;
  height: 98%;
  background: linear-gradient(to bottom, #00fa69, #a5a5a5);
  z-index: 10;
}

.timeline-item {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  position: relative;
  cursor: pointer;
  z-index: 20;
  width: 98%;
  padding-left: 0px; /* Adicionando padding consistente à esquerda */
}

.timeline-date {
  text-align: center;
  font-size: 10px;
  font-weight: bold;
  color: #777;
  width: 30px; /* Largura fixa */
  min-width: 30px; /* Largura mínima fixa */
  margin-right: 5px; /* Margem direita consistente */
}

.timeline-node {
  min-width: 15px;
  min-height: 15px;
  max-width: 15px;
  max-height: 15px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid var(--primary-color);
  margin-right: 10px;
  position: relative;
  z-index: 30;
}

.timeline-card {
  flex: 1;
  background-color: white;
  border-radius: 4px;
  padding: 8px;
  margin: 0px 20px 8px 0px;
  border: 1px solid var(--primary-color);
  box-shadow: 2px 1px 3px rgba(0, 0, 0, 0.8);
  transition: transform 0.3s ease-in-out;
  transform: translateX(3px);
  border-left: 5px solid var(--primary-color);
  min-width: 300px;
}

.timeline-card:hover {
  transform: translatey(-6px);
  transition: transform 0.3s ease-in-out;
  box-shadow: 8px 6px 20px rgba(0,0,0,0.6);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.card-title {
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 80%;
}

.card-tech-photo {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--primary-color);
}

.tech-small-photo {
  width: 24px;
  height: 24px;
  object-fit: cover;
}

.card-footer {
  display: flex;
  justify-content: flex-end;
  font-size: 10px;
  color: #666;
}

.card-date {
  font-size: 10px;
}

.empty-timeline {
  cursor: default;
}

.empty-card {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 40px;
  border-color: #d5d5d5;
}

.card-content {
  font-size: 14px;
  color: #666;
}

.end-timeline {
  margin-top: auto;
}.ollama-chat-window {
    position: fixed;
    bottom: calc(20px + 40px);
    right: 320px;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    z-index: 1002;
    cursor: grab;
    user-select: none;
    transform: translate(var(--x, 0), var(--y, 0));
    overflow: hidden;
}
.chat-header {
    background-color: #008066;
    color: white;
    padding: 10px 15px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.comm-button {
    background: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    color: white;
    padding: 5px 8px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.comm-button:hover {
    background: var(--primary-color-hover, #005a4f);
}

.comm-button.active {
    background: var(--primary-color-hover, #005a4f);
    border-color: var(--primary-color);
}

.chat-messages {
  flex: 1 1 auto;
  padding: 15px;
  overflow-y: auto;
  background: #f9f9f9;
  height: 100%;
  max-height: 334px;
  border-bottom: 1px solid #828282;
}

.message {
  margin-bottom: 10px;
  padding: 10px 15px;
  border-radius: 18px;
  max-width: 80%;
  word-wrap: break-word;
  overflow-y: auto;
}

.message.user {
  background-color: #008066;
  color: white;
  margin-left: auto;
  border-bottom-right-radius: 5px;
}

.message.assistant {
  background-color: #e0e0e0;
  color: #333;
  margin-right: auto;
  border-bottom-left-radius: 5px;
}

.message.loading {
  color: #666;
  font-style: italic;
}

.chat-input {
    display: flex;
    flex-direction: row;
    padding: 10px;
    border-top: 1px solid #ddd;
    background-color: #fff;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1002;

 
}

.chat-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
    width: 70%;
  }


.chat-input button {
    background: #008066;
    color: white;
    border: none;
    border-radius: 50%;
    padding: 4px;
    width: 40px;
    height: 40px;
    margin-left: 10px;
    cursor: pointer;
}

.chat-input button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.close-chat-btn {
    margin-left: auto;
    margin-right: 0;
    font-size: 2.2rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    color: #fff;
    transition: color 0.2s;
}
.close-chat-btn:hover {
    color: #ff5252;
}

.comm-button svg,
.comm-button i,
.comm-button span[class*="fa"] {
  color: white !important;
}:root {
  --text-muted: #6b7280;
}

/* ========================================
   GENAD SEGOE FONT FACES
   ======================================== */

@font-face {
  font-family: GenAD Segoe;
  src: url(/genad-segoe-regular.woff2) format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: GenAD Segoe;
  src: url(/genad-segoe-semibold.woff2) format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: GenAD Segoe;
  src: url(/genad-segoe-bold.woff2) format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: GenAD Segoe;
  src: url(/genad-segoe-italic.woff2) format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: GenAD Segoe;
  src: url(/genad-segoe-black.woff2) format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: GenAD Segoe;
  src: url(/genad-segoe-blackitalic.woff2) format("woff2");
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

/* ========================================
   RESET E VARIÁVEIS CSS
   ======================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Variáveis de cor primárias - valor único */
  --primary-color: #1a7f72;
  --primary-color-light: #bfe4df;
  --primary-hover: #0f6458;
  --app-name: 'GenTICKETS - Gestão de HelpDesk';
  --backg-color: #f8fafc;
  --secondary-color: #6b7280;
  --secondary-hover: #4b5563;
  --accent-color: #3b82f6;
  --success-color: #22c55e;
  --warning-color: #eab308;
  --danger-color: #dc2626;
  --danger-hover: #b91c1c;
  --text-color: #1f2937;
  --bg-color: #f9fafb;
  --border-color: #e5e7eb;
  --border-color-light: #e5e7eb;
  --text-muted: #6b7280;
  --text-secondary: #4b5563;
  --grey-light: #d1d5db;
  --genad-font-family: "GenAD Segoe", "Segoe UI", -apple-system, BlinkMacSystemFont, "Roboto", "Helvetica Neue", Arial, sans-serif;
  --font-family: 'Segoe UI', system-ui, sans-serif;
  --font-size-base: 0.875rem;
  --line-height-base: 1.5;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --transition-default: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --header-height: 135px;
  --footer-height: 40px;
  --hero-section-height: 220px;
  --tecnico-photo-size: 96px;
  --main-content-height: calc(100vh - var(--header-height) - 40px);
  --tickets-layout-height: calc(100vh - var(--header-height) - var(--hero-section-height) - var(--footer-height) - 80px);
  --autor-info-height: calc(var(--tickets-layout-height) * 0.344);
  --autor-histo-height: calc(var(--tickets-layout-height) * 0.656);
  --col-lat-width: calc((100vw) * 0.195);
  --col-center-width: calc((100vw) * 0.568);
  --primary-color-dark: #0f6458;
}

/* ========================================
   ESTILOS BASE
   ======================================== */

body {
  font-family: var(--font-family);
  color: var(--text-color);
  background: transparent;
  overflow: hidden;
  min-height: 1080px;
  min-width: 1920px;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

h1 {
  font-size: 2.25rem;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

h2 {
  font-size: 1.875rem;
  margin-bottom: 1.5rem;
}

p {
  color: var(--text-muted);
  max-width: 65ch;
}

/* ========================================
   LAYOUT PRINCIPAL
   ======================================== */

.tck-container {
  max-width: 100vw;
  min-width: 1920px;
  max-height: 100vh;
  width: 100%;
  height: 100%;
  padding: 0;
  position: relative;
  background: var(--backg-color);
  margin: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  z-index: 1;
}

#static-content {
  position: relative;
  z-index: 5;
  width: 100%;
  height: 100%;
}

/* ========================================
   HEADER
   ======================================== */

.tickets-app-header-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  z-index: 1000;
  width: 100%;
  margin-bottom: 20px;
}

.tickets-app-header {
  width: 100%;
  margin: 0 auto;
  padding: 16px 12px 16px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  background-color: white;
  color: var(--primary-color);
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  margin-bottom: 10px;
  height: var(--header-height);
  max-width: 100vw;
}

.Header-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-height: 75px;
  justify-self: start;
}

.logo {
  width: auto;
  height: 75px;
  margin-right: 12px;
  border-radius: 8px;
  object-fit: cover;
  background: white;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: -0.02em;
}

.tickets-main-nav {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  justify-self: center;
}

.tickets-nav-link {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
  padding-bottom: 0.25rem;
}

.tickets-nav-link:hover {
  color: var(--primary-hover);
}

.tickets-nav-link:hover::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-hover);
  transform: scaleX(1);
  transition: transform 0.3s ease;
}

.tickets-nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
  transform: scaleX(1);
}

.tickets-logout-btn {
  font-size: 0.8rem;
  color: var(--primary-color);
  text-decoration: none;
  padding: 2px 8px;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.2);
  border: 1px solid var(--primary-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.main-content {
  max-height: var(--tickets-layout-height);
  max-width: 100vw;
  margin: 20px;
}

/* ========================================
   LAYOUT DE TICKETS (GRID 3 COLUNAS)
   ======================================== */

.tickets-layout {
  display: grid;
  grid-template-columns: 20% 57.9% 20%;
  gap: 20px;
  height: 100%;
  overflow: hidden;
}

.tickets-column {
  border: 1px solid var(--primary-color);
  overflow-y: auto;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  background-color: var(--backg-color);
  overflow: hidden;
  max-height: 100%;
}

.column-header {
  background-color: var(--primary-color);
  color: white;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 1.1rem;
}

.column-content {
  overflow-y: hidden;
  background: white;
  padding: 10px;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  height: calc(var(--tickets-layout-height) - 65px);
  max-width: var(--col-lat-width);
  border-left: 1px solid var(--primary-color);
  border-right: 1px solid var(--primary-color);
  border-bottom: 1px solid var(--primary-color);
}

.left-column-content {
  background-color: whitesmoke;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  align-items: stretch;
  text-align: left;
  min-width: 390px;
  width: calc(var(--col-lat-width) - 1px);
  flex: 1;
}

.column-content-dir {
  background-color: whitesmoke;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
}

.center-column {
  background: white;
  border: 1px solid var(--primary-color);
  border-radius: 8px;
  min-width: 1155px;
  width: var(--col-center-width);
  overflow: auto;
  margin: 0 0 10px 0;
}

.right-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
  background-color: transparent;
  border: 0;
  min-width: 390px;
  height: 100%;
}

.right-top {
  height: 40%;
  border-radius: 8px;
  margin-right: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-color: white;
}

.right-bottom {
  height: 60%;
  border: 1px solid #cce4e1;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background-color: white;
}

/* ========================================
   HEADER RELATIVO COM SORT ARROW
   ======================================== */

.column-header.header-relative {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 0.7rem 1.2rem;
  border-radius: 8px 8px 0 0;
  letter-spacing: 1px;
  min-height: 48px;
  position: relative;
  background: var(--primary-color);
  color: white;
  box-shadow: 0 4px 12px rgba(26,127,114,0.25);
  z-index: 1;
}

/* ========================================
   SORT ARROW & LOCK BUTTON
   ======================================== */

.sort-arrow, .lock-button {
  font-size: 1.3rem;
  cursor: pointer;
  border-radius: 4px;
  background: var(--primary-color);
  color: #fff;
  min-width: 24px;
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  outline: none;
  transition: all 0.3s ease;
}

.sort-arrow {
  margin-left: 10px;
  font-size: 1.3rem;
  cursor: pointer;
  background: none;
  color: var(--primary-color);
  min-width: 36px;
  min-height: 32px;
  box-shadow: none;
}

.sort-arrow:hover {
  background: var(--primary-color-dark);
  color: #fff;
}

.sort-arrow.manual-order,
.sort-arrow.disabled,
.lock-button.locked,
.lock-button.disabled {
  background-color: var(--primary-color);
  color: #ffa5a5;
  pointer-events: none;
  opacity: 0.9;
  cursor: not-allowed;
}

.sort-arrow.asc {
  transform: rotate(0deg);
}

.sort-arrow.desc {
  transform: rotate(180deg);
}

.sort-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.sort-arrow {
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 1.2em;
}

.sort-arrow.locked {
  color: #ffffff;
}

.sort-arrow.unlocked {
  color: #ffa5a5;
  pointer-events: none;
}

.lock-icon {
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 1.2em;
}

.lock-icon.locked {
  color: #ffa5a5;
}

.lock-icon.unlocked {
  color: #ffffff;
}

/* ========================================
   RESOLUCAO HEADER ROW
   ======================================== */

.resolucao-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--primary-color-light);
  border-radius: 4px 4px 0 0;
  padding: 10px 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* ========================================
   COMMUNICATION BUTTONS
   ======================================== */

.communication-buttons-container {
  position: absolute;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  max-width: 300px;
  right: 20px;
  top: calc(var(--tickets-layout-height) - 46%);
  margin: 0;
  padding: 0;
}

.communication-button {
  background: var(--primary-color);
  color: #fff;
  border-radius: 8px;
  width: 96px;
  height: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.8rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.communication-button:hover {
  background: var(--primary-hover);
}

.operation-button {
  width: 110px;
}

.buttons-operation-container {
  display: flex;
  flex-direction: row;
  gap: 10px;
  max-width: 240px;
  width: 100%;
  max-height: 33px;
  position: absolute;
  bottom: 20px;
  right: 20px;
}

/* ========================================
   BOTÕES (BTN, ANIMATED-BUTTON, ETC)
   ======================================== */

.btn {
  display: inline-block;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  outline: none;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: var(--primary-color) !important;
  color: white !important;
  border: none !important;
  width: 170px;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(26, 127, 114, 0.2);
}

.btn-secondary {
  background-color: var(--danger-color) !important;
  color: white !important;
  border: none !important;
}

.btn-secondary:hover {
  background-color: var(--danger-hover) !important;
}

.animated-button {
  transition: all 0.2s ease-in-out !important;
  position: relative;
  overflow: hidden;
  padding: 0 15px;
  height: 38px;
  min-width: 100px;
  font-size: 14px;
  cursor: pointer;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.animated-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.animated-button:active {
  transform: translateY(1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ========================================
   TICKET LIST E ITEMS
   ======================================== */

.ticket-list {
  background: #ffffff;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
  height: calc(100% - 25px);
  overflow-y: auto;
  overflow-x: hidden;
  width: 100%;
}

.left-column-content .ticket-list {
  height: auto;
  flex: 1;
  min-height: 0;
}

.ticket-list .ticket-item {
  background: #ffffff;
  border: 1px solid #e8eef0;
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  transition: all 0.2s ease;
  position: relative;
}

.ticket-list .ticket-item:hover {
  box-shadow: 0 4px 12px rgba(0, 128, 114, 0.15);
  transform: translateY(-2px);
  border-color: #008066;
}

.ticket-item h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--text-color);
  font-weight: 600;
  line-height: 1.4;
}

.ticket-item-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.ticket-item-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
  text-align: right;
}

/* ========================================
   PRIORIDADES E BADGES
   ======================================== */

.priority-high {
  border-left-color: var(--danger-color);
  border-left: 3px solid var(--danger-color);
}

.priority-medium {
  border-left-color: var(--warning-color);
  border-left: 3px solid var(--warning-color);
}

.priority-low {
  border-left-color: var(--success-color);
  border-left: 3px solid var(--success-color);
}

.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #fff;
  transition: all 0.2s ease;
}

.status-open {
  background-color: var(--primary-color);
  color: #fff;
}

.status-em-andamento,
.status-in-progress {
  background-color: var(--warning-color);
  color: #fff;
}

.status-resolvido {
  background-color: var(--success-color);
}

.status-fechado {
  background-color: #6b7280;
}

.status-waiting {
  background-color: #a87d7d;
  color: #fff;
}

.ticket-category-badge--dynamic {
  background-color: var(--category-color, var(--grey-light));
}

.ticket-priority-badge--dynamic {
  background-color: var(--priority-color, var(--grey-light));
}

.status-pendentes-alta {
  color: var(--danger-color);
}

.status-pendentes-media {
  color: var(--warning-color);
}

.status-pendentes-baixa {
  color: var(--success-color);
}

/* ========================================
   STATUS PENDENTES
   ======================================== */

.status-pendentes {
  height: 40px;
  max-height: 40px;
  background: white;
  border-top: 1px solid #A5A7Ab;
  margin-top: 5px;
  padding: 10px 18px;
  font-size: 12px;
  color: var(--primary-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  font-weight: 600;
  border-radius: 0 0 8px 8px;
}

.status-pendentes span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.left-column-content .status-pendentes {
  margin-top: auto;
  flex-shrink: 0;
}

/* ========================================
   TICKET ITEM STRUCTURE
   ======================================== */

.ticket-item-padding-bottom {
  padding-bottom: 12px;
}

.ticket-item-header-flex {
  display: flex;
  align-items: center;
  padding-left: 4px;
  padding-top: 4px;
  position: relative;
  justify-content: flex-start;
  gap: 8px;
}

.ticket-id-bold {
  font-weight: 700;
  margin-right: 8px;
  color: var(--text-secondary);
  min-width: 60px;
}

.ticket-title-bold {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  font-size: 0.95rem;
}

.ticket-item-details-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: 4px;
  padding-right: 4px;
  margin-top: 4px;
  font-size: 0.85rem;
}

.ticket-author-display {
  font-size: 0.85rem;
  color: #555;
  flex: 1;
}

.ticket-created-at {
  font-size: 0.8rem;
  color: #888;
  margin-left: 8px;
}

.ticket-badges-flex {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-left: 4px;
  padding-bottom: 4px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.ticket-category-badge {
  color: white;
  border-radius: 10px;
  padding: 3px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  background-color: var(--primary-color);
  transition: all 0.2s ease;
}

.ticket-priority-badge {
  color: white;
  border-radius: 10px;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  background-color: #6b7280;
}

.ticket-status-margin-auto {
  margin-left: auto;
}

/* Prioridade colors para badges */

.priority-high .ticket-priority-badge,
.priority-high .ticket-category-badge {
  background-color: var(--danger-color);
}

.priority-medium .ticket-priority-badge,
.priority-medium .ticket-category-badge {
  background-color: var(--warning-color);
}

.priority-low .ticket-priority-badge,
.priority-low .ticket-category-badge {
  background-color: var(--success-color);
}

/* ========================================
   TICKET HEADER PHOTO
   ======================================== */

.ticket-header-photo-container {
  position: absolute;
  right: 8px;
  top: 6px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 32px;
  width: 32px;
}

.ticket-header-photo-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--primary-color-light);
}

/* ========================================
   SELECTED TICKET
   ======================================== */

.selected-ticket {
  border-left: 4px solid var(--primary-color) !important;
  background-color: rgba(26, 127, 114, 0.15) !important;
  box-shadow: 0 2px 8px rgba(26, 127, 114, 0.2) !important;
  position: relative;
  transform: translateX(2px);
  transition: all 0.3s ease;
}

.selected-ticket::after {
  content: 'SELECIONADO';
  position: absolute;
  top: -8px;
  right: 10px;
  background: var(--primary-color);
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: bold;
  z-index: 10;
  letter-spacing: 0.5px;
}

/* ========================================
   DRAG AND DROP
   ======================================== */

.ticket-item--dragging {
  opacity: 0.5;
}

.ticket-item--normal {
  opacity: 1;
}

.ticket-item.dragging {
  opacity: 0.7;
  cursor: grabbing !important;
  transform: scale(1.02) translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  background-color: #f8f9fa;
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.ticket-item.drag-over {
  border: 2px dashed var(--primary-color);
  position: relative;
  margin-top: 20px;
  background-color: rgba(26, 127, 114, 0.05);
}

.ticket-item.drag-over::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 2px;
  pointer-events: none;
}

.ticket-item.drag-over-top::before {
  top: -2px;
}

.ticket-item.drag-over-bottom::after {
  bottom: -2px;
}

/* ========================================
   TIMELINE E HISTÓRICO
   ======================================== */

.timeline {
  position: relative;
  padding-left: 30px;
  margin-top: 20px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--success-color), var(--primary-color), #d5d5d5);
  border-radius: 2px;
  box-shadow: 0 0 4px rgba(26, 127, 114, 0.2);
}

.historic-card {
  position: relative;
  margin-bottom: 20px;
  padding: 15px;
  background: white;
  border-radius: 8px;
  border: 1px solid var(--primary-color);
  margin-left: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(26, 127, 114, 0.1);
}

.historic-empty {
  position: relative;
  margin-bottom: 20px;
  padding: 15px;
  background: white;
  border-radius: 8px;
  border: 1px solid var(--text-muted);
  margin-left: 15px;
  color: var(--text-muted);
  text-align: center;
  font-style: italic;
}

.historic-card::before,
.historic-empty::before {
  content: '';
  position: absolute;
  left: -34px;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--success-color);
  border: 2px solid white;
  transform: translateY(-50%);
  box-shadow: 0 0 6px rgba(26, 127, 114, 0.3);
  z-index: 1;
  transition: all 0.3s ease;
}

.historic-card:hover {
  transform: translateX(8px);
  box-shadow: 0 4px 12px rgba(26, 127, 114, 0.15);
}

.historic-card:hover::before {
  background: var(--primary-color);
  transform: translateY(-50%) scale(1.2);
  box-shadow: 0 0 8px rgba(26, 127, 114, 0.4);
}

.historic-card .ticket-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.historic-card .ticket-info {
  flex: 1;
}

.historic-card .technician-photo {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--primary-color);
  object-fit: cover;
}

.historic-card .ticket-id {
  font-weight: bold;
  color: var(--text-secondary);
}

.historic-card .ticket-title {
  font-size: 0.9rem;
  color: var(--text-color);
  margin: 4px 0;
}

.historic-card .closed-at {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: right;
}

/* ========================================
   AUTHOR INFO E HISTORY
   ======================================== */

.author-info {
  height: var(--autor-info-height);
  overflow: hidden;
}

.author-history {
  height: var(--autor-histo-height);
  overflow-y: auto;
}

.author-content-wrapper {
  padding: 10px;
  overflow-y: auto;
}

.author-details-flex {
  display: flex;
  align-items: center;
  height: 100%;
}

.author-data {
  flex: 1;
}

.author-row {
  display: flex;
  align-items: baseline;
  margin-bottom: 6px;
  font-size: 0.85rem;
  position: relative;
  z-index: 1;
}

.author-row strong {
  min-width: 70px;
  font-weight: bold;
  margin-right: 8px;
  color: var(--text-secondary);
}

.author-value {
  color: var(--text-color);
  word-break: break-word;
  flex: 1;
  text-align: left;
  font-size: 1em;
}

.manager-value {
  color: var(--text-color);
  margin-left: 15px;
  flex: 1;
  text-align: left;
  font-size: 1em;
  width: 100%;
}

.author-manager-photo {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  margin-left: 8px;
  border: 1px solid var(--primary-color-light);
}

.date-row {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
  font-size: 0.85rem;
}

.date-value {
  padding-left: 8px;
  border-left: 3px solid;
}

.date-value.closed-null {
  border-left-color: #666;
}

.date-value.closed-before {
  border-left-color: var(--success-color);
}

.date-value.closed-equal {
  border-left-color: var(--warning-color);
}

.date-value.closed-after {
  border-left-color: var(--danger-color);
}

/* ========================================
   EASYMDE EDITOR
   ======================================== */

.EasyMDEContainer {
  width: 100%;
  height: 190px;
  max-width: 760px;
  max-height: 270px;
  display: block;
}

.editor-content {
  max-height: 270px;
  height: 100%;
  max-width: 760px;
  width: 100%;
}

.easyMDE-container {
  max-width: 760px;
  max-height: 230px;
  width: 100%;
  height: 100%;
}

.CodeMirror {
  height: 100%;
  max-height: 220px;
  max-width: 760px;
}

.editor-chat-container {
  align-items: flex-start;
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: row;
  gap: 2rem;
  max-width: 760px;
  width: 100%;
  max-height: 270px;
  height: 100%;
}

.editor-wrapper {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  width: 100%;
  gap: 1rem;
  margin-bottom: 0.5rem;
  position: relative;
  flex: 1;
}

.editor-column {
  width: 790px;
  min-height: 150px;
  max-height: 270px;
  margin-left: 0;
  overflow: hidden;
  flex: 2;
  display: flex;
  flex-direction: column;
}

.label-resolucao {
  display: flex;
  align-items: center;
  background: var(--primary-color);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  box-shadow: 0 2px 8px rgba(26,127,114,0.08);
  letter-spacing: 0.5px;
  min-height: 32px;
  padding: 0.4rem 0.6rem;
  box-sizing: border-box;
}

/* ========================================
   UTILITÁRIOS
   ======================================== */

.tickets-flex-container {
  display: flex;
  align-items: flex-start;
  position: relative;
}

.tickets-flex-main {
  flex: 1;
}

.loading-message {
  padding: 15px;
  text-align: center;
}

.error-message {
  padding: 15px;
  text-align: center;
  color: var(--danger-color);
  background-color: rgba(220, 38, 38, 0.1);
  border-radius: 4px;
  margin: 10px 0;
}

.empty-message {
  padding: 15px;
  text-align: center;
}

.tickets-header-controls {
  display: flex;
  align-items: center;
}

.tickets-sort-arrow {
  cursor: pointer;
  margin-left: 8px;
  transition: transform 0.2s ease;
}

.tickets-sort-arrow:hover {
  transform: scale(1.1);
}

.tickets-sort-arrow.asc {
  transform: rotate(0deg);
}

.tickets-sort-arrow.desc {
  transform: rotate(180deg);
  color: var(--text-muted);
  font-style: italic;
}

.tickets-user-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tickets-user-controls img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  border: 2px solid var(--primary-color);
  margin-bottom: 5px;
}

/* ========================================
   POWERED BY FOOTER ELEMENTS
   ======================================== */

.Logo_PoweredBy {
  position: absolute;
  bottom: 0px;
  right: 164px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.Logo_PoweredBy img {
  width: 32px;
  height: auto;
  aspect-ratio: 83/64;
}

.poweredBy {
  position: absolute;
  color: var(--primary-color);
  right: 0px;
  width: 80%;
  height: 40px;
  text-align: center;
  line-height: 40px;
  font-size: 14px;
}

.poweredBy-string {
  position: absolute;
  bottom: 0px;
  right: 20px;
  width: 220px;
  height: 40px;
  color: var(--primary-color);
  font-size: 14px;
}

/* ========================================
   FOOTER
   ======================================== */

.modern-footer {
  position: relative;
  left: 0;
  bottom: 0;
  width: 100%;
  max-width: 100vw;
  max-height: 40px;
  height: 100%;
  font-size: 14px;
  background: white;
  color: #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  padding-left: 40px;
  padding-right: 40px;
  flex-direction: row;
  border-top: 1px solid #c5c5c5;
}

/* ========================================
   USER SECTION
   ======================================== */

.user-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-color);
}

/* ========================================
   RESPONSIVIDADE
   ======================================== */

@media (max-width: 768px) {
  .tck-container,
  .tickets-layout {
    flex-direction: column;
    padding: 0 2vw;
  }

  /* Hero section removido */
  .app-header {
    flex-direction: column;
    padding: 1rem;
    height: auto;
    margin: 0 20px 0 20px;
  }

  .main-nav {
    margin-top: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .sort-arrow {
    min-width: 28px;
    min-height: 28px;
    font-size: 1.1rem;
  }

  .communication-buttons button,
  .communication-buttons .icon-btn {
    font-size: 1.3em;
    min-width: 36px;
    min-height: 36px;
  }

  .resolucao-header-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 8px 6px;
  }
}
/* Estilos para o formulário de resolução de tickets */
.ticket-form-container {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  background-color: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

/* Estilo para quando nenhum ticket está selecionado */
.no-ticket-selected {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 2rem;
  text-align: center;
  color:var(--text-muted);
  font-size: 1.1rem;
  background-color: #f9fafb;
  border-radius: var(--radius-md);
}



.selected-ticket {
  border-left: 4px solid var(--primary-color);
  background-color: rgba(26, 127, 114, 0.05);
  transform: translateX(2px);
}

/* ticketForm.css - Container principal do formulário de tickets */
.ticket-form {
  padding: 1.0rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  height: calc(var(--tickets-layout-height) - 50px);
  max-height: calc(var(--tickets-layout-height) - 50px);
  background: white;
  overflow-y: auto;
  border-radius: 8px;
  position: relative;
}

.ticket-form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.ticket-form-row {
  display: flex;
  gap: 1rem;
  width: 100%;
  position: relative;
}

.half-width {
  width: 50%;
}

.ticket-form-field label,  .label-resolucao{
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--primary-color);
  color: white;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  width: 100%; /* Garante que ocupem a largura do container */
  box-sizing: border-box; /* Inclui padding e border no tamanho total */
  display: flex; /* Alterado para flex para melhor alinhamento vertical */
  align-items: center; /* Centraliza verticalmente */
  min-height: 32px; /* Altura mínima padronizada */
}

/* Ajuste de largura para campos específicos */
.field-ticket-nr {
  max-width: 110px;
  flex: 0 0 110px;
}

.field-ticket-nr input {
  width: 100%;
  min-width: 110px;
}

.input-ticket-nr {
  max-width: 100px;
}

.field-assunto {
  flex: 1;
  margin-left: 12px;
  position: relative;
  /* Calcula a largura: 100% - largura Nr.Ticket - margem - 100px (redução pedida) */
  max-width: calc(100% - 130px - 1rem - 100px);
}

.field-assunto .readonly-field {
  padding-right: 100px; /* Espaço reduzido para a foto */
}


.field-created-at,
.field-due-date,
.field-closed-at {
  max-width: 180px;
  flex: 0 0 180px;
  margin-right: 8px;
}

.field-closed-at .date-value {
  display: flex;
  align-items: center;
  padding-left: 8px;
  border-left: 3px solid;
}

.field-closed-at .date-value input {
  border: none;
  /*background: transparent;*/
  width: 100%;
}

.field-category,
.field-priority,
.field-status {
  flex: 1;
  margin-left: 8px;
}

.readonly-field {
  background-color: whitesmoke  ; /* Fundo whitesmoke */
  border: 1px solid var(--border-color-light); /* Borda mais suave */
  border-radius: var(--radius-sm);
  padding: 0.6rem;
  font-size: 0.9rem;
  color:var(--text-muted); /* Texto mais apagado */
  cursor: not-allowed; /* Cursor indicando não editável */
  width: 100%; /* Garante que ocupem a largura do container */
  box-sizing: border-box; /* Inclui padding e border no tamanho total */
}

.readonly-field:focus {
  outline: none; /* Remove outline no foco */
  box-shadow: none; /* Remove sombra no foco */
  border-color: var(--border-color-light); /* Mantém a borda suave */
}

.editable-field {
  background-color: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-color);
  transition: border-color 0.2s ease;
  width: 100%; /* Garante que ocupem a largura do container */
  box-sizing: border-box; /* Inclui padding e border no tamanho total */
}

.editable-field:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 2px rgba(26, 127, 114, 0.2);
}

/* Aumentar altura dos campos Descrição e Pré-Analise */
.description-field {
  min-height: 200px; /* Altura aumentada conforme solicitado */
  max-height: 200px;
  resize:none; 
  overflow-y: auto;
}

/* ticketForm.css - Campo de resolução com EasyMDE */
.field-resolution {
  width: 100%;
  display: flex;
  flex-direction: column;
  height: 150px;
  min-height: 150px;
  background: #fff !important;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 8px rgba(26,127,114,0.08);
  margin-top: 0.5rem;
  overflow-y: auto;
}

.field-resolution .editor-toolbar {
  background: transparent !important;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  border-bottom: 1px solid var(--border-color-light);
}

.field-resolution .editor-toolbar button {
  color: #1a7f72 !important;
}

/* Permitir customização da cor da fonte do editor */
.field-resolution .CodeMirror {
  color: var(--editor-font-color, #222) !important;
  background: #fff !important;
  height: calc(150px - 40px) !important;
}

/* Exemplo: para mudar a cor da fonte, defina --editor-font-color no elemento pai ou globalmente */
.field-resolution .editor-toolbar button:hover,
.field-resolution .editor-toolbar button.active {
  background: rgba(26, 127, 114, 0.1) !important;
  border-color: transparent !important;
}

.field-resolution .editor-toolbar i.separator {
  border-left: 1px solid rgba(26, 127, 114, 0.2);
}

.field-resolution .CodeMirror-scroll {
  min-height: calc(150px - 40px) !important;
  max-height: calc(150px - 40px) !important;
  background: #fff !important;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  overflow-y: auto;
}

/* Botões GRAVAR e CANCELAR no canto inferior direito */
.resolucao-action-buttons {
  display: flex;
  gap: 12px;
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  margin-top: 1rem;
}
.resolucao-action-buttons button {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1.1rem;
  padding: 8px 18px;
  border-radius: 6px;
  border: none;
  background: var(--primary-color);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(26,127,114,0.08);
  cursor: pointer;
  /*transition: background 0.2s, color 0.2s;*/
}
.resolucao-action-buttons button:disabled {
  background: var(--grey-light);
  color: #aaa;
  cursor: not-allowed;
}
.resolucao-action-buttons .fa {
  font-size: 1.2em;
}

/* Container para os botões de comunicação */
.resolucao-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--primary-color);
  border-radius: 4px 4px 0 0;
  padding: 8px 16px;
  box-shadow: 0 2px 8px rgba(26,127,114,0.08);
  letter-spacing: 0.5px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 48px;
}

.communication-button i, .communication-button svg, .communication-button .fa, .communication-button .fa-solid, .communication-button .fa-comments, .communication-button .fa-envelope {
  color: #fff !important;
  fill: #fff !important;
  font-size: 24px;
  margin-bottom: 2px;
}

.communication-button span {
  font-size: 11px;
  font-weight: 500;
  text-align: center;
  color: #fff;
  margin-top: 2px;
}

@media (max-width: 768px) {
  .communication-buttons {
    flex-direction: row;
    gap: 0.5rem;
    align-items: center;
    justify-content: flex-start;
  }
  .resolucao-header-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 8px 6px;
    min-height: 40px;
  }
}


.communication-button.animated-button {
  animation: pulse 1.2s infinite alternate;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(26,127,114,0.2); }
  100% { box-shadow: 0 0 12px 4px rgba(26,127,114,0.15); }
}
.communication-button:hover {
 background-color: var(--primary-color-hover, #005a4f);
 transform: translateY(-2px);
 box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.communication-button i, .communication-button svg, .communication-button .fa, .communication-button .fa-solid, .communication-button .fa-comments, .communication-button .fa-envelope {
 color: #fff !important;
 fill: #fff !important;
}
.communication-button i {
 font-size: 36px;
 margin-bottom: 8px;
 color: var(--primary-color);
}
.communication-button span {
 font-size: 12px;
 font-weight: 500;
 text-align: center;
}
.status-select {
  /* height: 40px; */ /* Removido para usar padding */
  background-color: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.6rem; /* Mesmo padding dos inputs */
  font-size: 0.9rem;
  color: var(--text-color);
  cursor: pointer;
  width: 100%; /* Garante que ocupem a largura do container */
  box-sizing: border-box; /* Inclui padding e border no tamanho total */
  appearance: none; /* Remove estilo padrão do SO */
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
}
.ticket-form-actions.fixed-actions {
  background-color: transparent;
  position: static;
  width: 100%;
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  padding: 1rem 0 0 0;
  margin-top: auto;
  z-index: 2;
}

/* ticketForm.css - Container do conteúdo da coluna central */
.column-content-center {
  overflow-y: auto;
  background: white;
  padding: 1rem;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  height: 100%;
}
.btn-secondary {
  background-color: var(--secondary-color);
  color: white;
}
.btn-secondary:hover {
  background-color: var(--secondary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(107, 114, 128, 0.2);
}
/* Estilos para campos com prioridade */
.priority-high {
  border-left: 3px solid var(--danger-color);
}
.priority-medium {
  border-left: 3px solid var(--warning-color);
  
}
.priority-low {
  border-left: 3px solid var(--success-color);
}.user-controls {
  display: flex;
  align-items: center;
  margin-left: 20px;
  padding-left: 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.user-info {
  display: flex;
  align-items: center;
  color: white;
  font-size: 0.9rem;
  margin-right: 15px;
}

.user-info svg {
  margin-right: 8px;
  font-size: 1rem;
  color: #00c9a7;
}

.logout-button {
  display: flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.logout-button:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.logout-button svg {
  margin-right: 6px;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .user-controls {
    margin-left: 10px;
    padding-left: 10px;
  }
  
  .user-info {
    font-size: 0.8rem;
  }
  
  .logout-button {
    padding: 4px 8px;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .user-controls {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 10px;
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 10px;
  }
  
  .user-info {
    margin-bottom: 8px;
  }
}.error-boundary-container {
  padding: 32px;
  text-align: center;
  color: #b71c1c;
}

.error-boundary-details {
  white-space: pre-wrap;
  margin-top: 16px;
}/* TeamsChat.css */

:root {
  --teams-primary: #4b53bc; /* Roxo principal do Teams */
  --teams-primary-dark: #3a41a0;
  --teams-secondary: #f3f2f1; /* Cinza claro para fundos secundários */
  --teams-text: #323130; /* Cinza escuro para texto principal */
  --teams-text-light: #605e5c; /* Cinza médio para texto secundário */
  --teams-border: #e1dfdd; /* Cinza claro para bordas */
  --teams-hover: #edebe9;
  --teams-focus: #c7e0f4; /* Azul claro para foco */
  --teams-urgent-bg: #fed9cc; /* Fundo para status urgente */
  --teams-urgent-color: #d83b01; /* Cor do texto para status urgente */
  --ai-primary: #0078d4; /* Azul para sugestões de IA */
  --ai-secondary: #eff6fc;
  --ai-text: #005a9e;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --transition: all 0.2s ease-in-out;
}

.teams-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Fundo escurecido */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000; /* Garante que fique acima de outros elementos */
}

.teams-chat-container {
  display: flex;
  width: 90vw; /* Largura maior para o modal */
  max-width: 1200px;
  height: 80vh;
  max-height: 800px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  position: relative; /* Para o botão de fechar */
}

.teams-close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--teams-text-light);
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    z-index: 10; /* Acima dos painéis */
}

.teams-close-button--positioned {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1000;
}

.teams-close-button:hover {
    color: var(--teams-text);
}


/* Painel Esquerdo: Conversas */
.teams-chat-conversations {
  width: 280px;
  border-right: 1px solid var(--teams-border);
  background: var(--teams-secondary);
  display: flex;
  flex-direction: column;
}

.teams-conversations-header {
  padding: 16px;
  font-weight: 600;
  color: var(--teams-text);
  border-bottom: 1px solid var(--teams-border);
}

.teams-conversations-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

.teams-conversation-item {
  padding: 12px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition);
  border-left: 3px solid transparent; /* Indicador de seleção */
}

.teams-conversation-item:hover {
  background: var(--teams-hover);
}

.teams-conversation-item.active {
  background: white; /* Fundo branco quando ativo */
  border-left-color: var(--teams-primary);
}

.teams-conversation-avatar {
  width: 40px;
  height: 40px;
  background: var(--teams-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  position: relative;
  flex-shrink: 0;
}

.teams-conversation-avatar.priority-high {
    border: 2px solid var(--teams-urgent-color);
}

.teams-unread-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    background-color: var(--teams-urgent-color);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.teams-conversation-info {
  flex: 1;
  min-width: 0; /* Previne que o texto empurre o avatar */
}

.teams-conversation-name {
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--teams-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.teams-conversation-preview {
  font-size: 0.875rem;
  color: var(--teams-text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Painel Central: Chat */
.teams-chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: white;
}

.teams-chat-header {
  padding: 12px 16px;
  background: var(--teams-secondary);
  border-bottom: 1px solid var(--teams-border);
  color: var(--teams-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.teams-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px; /* Espaçamento entre mensagens */
}

.teams-message {
  max-width: 75%;
  padding: 10px 14px;
  border-radius: var(--radius-lg);
  position: relative;
  display: flex;
  flex-direction: column;
}

.teams-message.teams-system {
  align-self: center;
  background: var(--teams-hover);
  color: var(--teams-text-light);
  font-style: italic;
  font-size: 0.85rem;
  max-width: 60%;
  text-align: center;
}

.teams-message.teams-user {
  align-self: flex-end;
  background: var(--teams-primary);
  color: white;
  border-bottom-right-radius: var(--radius-sm); /* Estilo de "balão" */
}

.teams-message.teams-other {
  align-self: flex-start;
  background: var(--teams-secondary);
  color: var(--teams-text);
  border-bottom-left-radius: var(--radius-sm);
}

.teams-message.teams-ai {
  align-self: flex-start;
  background: var(--ai-secondary);
  color: var(--ai-text);
  border-left: 4px solid var(--ai-primary);
  border-radius: var(--radius-sm) var(--radius-lg) var(--radius-lg) var(--radius-sm);
}

.teams-message-content {
    margin-bottom: 4px;
    word-wrap: break-word; /* Quebra palavras longas */
}

.teams-message-attachment {
    margin-top: 8px;
    padding: 8px 12px;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    display: inline-flex; /* Para ajustar ao conteúdo */
    align-items: center;
    gap: 6px;
    cursor: pointer; /* Indica que é clicável */
}

.teams-message-attachment i {
    color: var(--teams-text-light);
}

.teams-message.teams-user .teams-message-attachment {
    background-color: rgba(255, 255, 255, 0.15);
}

.teams-message.teams-user .teams-message-attachment i {
    color: rgba(255, 255, 255, 0.8);
}


.teams-message-time {
  font-size: 0.75rem;
  color: var(--teams-text-light);
  margin-top: 4px;
  align-self: flex-end; /* Alinha hora à direita */
}

.teams-message.teams-user .teams-message-time {
    color: rgba(255, 255, 255, 0.7);
}

/* Área de Input */
.teams-chat-input-container {
  padding: 12px 16px;
  border-top: 1px solid var(--teams-border);
  background: white;
}

.teams-chat-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.teams-chat-action-btn {
  background: none;
  border: none;
  color: var(--teams-text-light);
  padding: 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  font-size: 1.1rem; /* Tamanho dos ícones */
}

.teams-chat-action-btn:hover {
  background: var(--teams-hover);
  color: var(--teams-primary);
}

.teams-chat-input {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--teams-border);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  resize: none;
  outline: none;
  transition: var(--transition);
  margin-bottom: 8px; /* Espaço antes do botão enviar */
}

.teams-chat-input:focus {
  border-color: var(--teams-primary);
  box-shadow: 0 0 0 2px rgba(75, 83, 188, 0.2); /* Foco sutil */
}

.teams-chat-send-btn {
  background: var(--teams-primary);
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  display: flex; /* Para alinhar ícone e texto */
  align-items: center;
  gap: 6px;
  float: right; /* Alinha botão à direita */
}

.teams-chat-send-btn:hover {
  background: var(--teams-primary-dark);
}

.teams-chat-send-btn:disabled {
  background: var(--teams-text-light);
  cursor: not-allowed;
  opacity: 0.7;
}

.teams-chat-send-btn i {
    font-size: 0.9rem;
}

/* Painel Direito: Informações */
.teams-chat-info {
  width: 320px;
  border-left: 1px solid var(--teams-border);
  background: var(--teams-secondary);
  display: flex;
  flex-direction: column;
}

.teams-info-header {
  padding: 16px;
  font-weight: 600;
  color: var(--teams-text);
  border-bottom: 1px solid var(--teams-border);
}

.teams-ticket-info {
  padding: 16px;
  overflow-y: auto;
  flex: 1;
}

.teams-info-section {
  margin-bottom: 24px;
}

.teams-info-section-title {
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--teams-text);
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--teams-text-light);
}

.teams-info-item {
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.teams-info-label {
  color: var(--teams-text-light);
}

.teams-info-value {
  font-weight: 500;
  color: var(--teams-text);
  text-align: right;
}

.teams-status-badge {
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: bold;
  display: inline-flex; /* Para ajustar ao conteúdo */
  align-items: center;
  gap: 4px;
  text-transform: uppercase;
}

.teams-status-badge.high {
  background: var(--teams-urgent-bg);
  color: var(--teams-urgent-color);
}

/* Estilos para a seção de problema */
.teams-info-section p {
    font-size: 0.9rem;
    color: var(--teams-text);
    line-height: 1.5;
}

/* Estilos para a seção de ações */
.teams-actions-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.teams-action-button {
    width: 100%;
    padding: 10px 15px;
    border-radius: var(--radius-md);
    border: 1px solid var(--teams-border);
    background: white;
    color: var(--teams-text);
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    font-weight: 500;
}

.teams-action-button:hover {
    background: var(--teams-hover);
    border-color: #c8c6c4;
}

.teams-action-button.primary {
    background: var(--teams-primary);
    color: white;
    border-color: var(--teams-primary);
}

.teams-action-button.primary:hover {
    background: var(--teams-primary-dark);
    border-color: var(--teams-primary-dark);
}

/* Responsividade */
@media (max-width: 1200px) {
  .teams-chat-container {
    width: 95vw;
    height: 90vh;
  }
}

@media (max-width: 992px) {
  .teams-chat-info {
    display: none; /* Oculta painel direito em telas médias */
  }
}

@media (max-width: 768px) {
  .teams-chat-conversations {
    width: 240px;
  }
  .teams-message {
      max-width: 85%;
  }
}

@media (max-width: 576px) {
  .teams-chat-conversations {
    display: none; /* Oculta painel esquerdo em telas pequenas */
  }
  .teams-message {
      max-width: 90%;
  }
  .teams-chat-send-btn {
      padding: 8px 12px;
  }
}

/* Estilos para a página Userplace */
/* Importar fontes e variáveis globais */
/* Container principal */
.userplace-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 60px); /* Ajustar para o cabeçalho */
  width: 100%;
  background-color: var(--backg-color);
  padding: 1rem;
  overflow: hidden;
}
/* Conteúdo principal com divisão entre painéis */
.userplace-content {
  display: flex;
  height: 100%;
  gap: 1rem;
  overflow: hidden;
}
/* Painel esquerdo - Formulário */
.userplace-left-panel {
  flex: 1;
  background-color: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-width: 50%;
}
/* Painel direito - Comunicação */
.userplace-right-panel {
  flex: 1;
  background-color: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
/* Container do formulário */
.userplace-form-container {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
}
/* Título do formulário */
.userplace-form-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-color);
}
/* Formulário */
.userplace-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
/* Campo do formulário */
.userplace-form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
/* Linha do formulário para campos lado a lado */
.userplace-form-row {
  display: flex;
  gap: 1rem;
  width: 100%;
}
/* Campo com metade da largura */
.userplace-half-width {
  width: 50%;
}
/* Labels do formulário */
.userplace-form-field label {
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--primary-color);
  color: white;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  min-height: 32px;
}
/* Inputs, selects e textareas */
.userplace-form-field input,
.userplace-form-field select,
.userplace-form-field textarea {
  padding: 0.6rem;
  border: 1px solid var(--teams-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-family);
  font-size: 0.9rem;
  transition: border-color 0.2s ease;
}
.userplace-form-field input:focus,
.userplace-form-field select:focus,
.userplace-form-field textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(26, 127, 114, 0.2);
}
/* Container de anexos */
.userplace-attachments-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
/* Botão de anexo */
.userplace-attachment-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: var(--teams-secondary);
  border: 1px solid var(--teams-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.9rem;
  transition: background-color 0.2s ease;
}
.userplace-attachment-button:hover {
  background-color: var(--teams-hover);
}
/* Área de Drag and Drop */
.userplace-dropzone {
  margin-top: 1rem;
  border: 2px dashed var(--teams-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  background-color: var(--teams-secondary);
  transition: all 0.3s ease;
  cursor: pointer;
}
.userplace-dropzone:hover {
  border-color: var(--primary-color);
  background-color: rgba(26, 127, 114, 0.05);
}
.userplace-dropzone-active {
  border-color: var(--primary-color);
  background-color: rgba(26, 127, 114, 0.1);
  box-shadow: 0 0 0 2px rgba(26, 127, 114, 0.2);
}
.userplace-dropzone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.5rem;
  color: var(--text-color);
}
.userplace-dropzone-content p {
  margin: 0.5rem 0 0 0;
  font-weight: 600;
  font-size: 1rem;
}
.userplace-dropzone-content span {
  font-size: 0.85rem;
  color: var(--text-secondary);
}
/* Lista de anexos */
.userplace-attachments-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
/* Item de anexo */
.userplace-attachment-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem;
  background-color: var(--teams-secondary);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}
/* Botão para remover anexo */
.userplace-attachment-remove {
  background: none;
  border: none;
  color: var(--danger-color);
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}
.userplace-attachment-remove:hover {
  background-color: rgba(220, 38, 38, 0.1);
}
/* Ações do formulário */
.userplace-form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.5rem;
}
/* Botão de envio */
.userplace-submit-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.userplace-submit-button:hover {
  background-color: var(--primary-hover);
}
.userplace-submit-button:disabled {
  background-color: var(--secondary-color);
  cursor: not-allowed;
}
/* Feedback de mensagens */
.userplace-feedback {
  position: fixed;
  top: 1rem;
  right: 1rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 400px;
  z-index: 1000;
  animation: slide-in 0.3s ease;
}
@keyframes slide-in {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
.userplace-feedback-success {
  background-color: #ecfdf5;
  border-left: 4px solid var(--success-color);
  color: #065f46;
}
.userplace-feedback-error {
  background-color: #fef2f2;
  border-left: 4px solid var(--danger-color);
  color: #991b1b;
}
.userplace-feedback-icon {
  font-size: 1.25rem;
}
.userplace-feedback-close {
  margin-left: auto;
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: currentColor;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}
.userplace-feedback-close:hover {
  opacity: 1;
}
/* Abas de comunicação */
.userplace-communication-tabs {
  display: flex;
  flex-direction: column;
  height: 100%;
}
/* Botões das abas */
.userplace-tab-buttons {
  display: flex;
  border-bottom: 1px solid var(--teams-border);
}
.userplace-tab-button {
  padding: 0.75rem 1.5rem;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}
.userplace-tab-button.active {
  border-bottom-color: var(--primary-color);
  color: var(--primary-color);
}
.userplace-tab-button:hover:not(.active) {
  background-color: var(--teams-hover);
}
/* Conteúdo das abas */
.userplace-tab-content {
  flex: 1;
  overflow: hidden;
  position: relative;
}
/* Containers dos componentes de comunicação */
.userplace-teams-container,
.userplace-outlook-container {
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
/* Estilos para o cabeçalho do Teams e Outlook */
.userplace-teams-header,
.userplace-outlook-header {
  padding: 1rem;
  background-color: #f5f5f5;
  border-bottom: 1px solid var(--teams-border);
}
.userplace-teams-header h3,
.userplace-outlook-header h3 {
  margin: 0 0 0.5rem 0;
  color: var(--primary-color);
  font-size: 1.2rem;
}
.userplace-teams-header p,
.userplace-outlook-header p {
  margin: 0 0 1rem 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.userplace-teams-actions,
.userplace-outlook-actions {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.5rem;
}
.userplace-teams-action-button,
.userplace-outlook-action-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background-color: white;
  border: 1px solid var(--teams-border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-color);
  cursor: pointer;
  transition: all 0.2s ease;
}
.userplace-teams-action-button:hover,
.userplace-outlook-action-button:hover {
  background-color: var(--teams-hover);
  border-color: var(--primary-color);
}
.userplace-teams-action-button svg,
.userplace-outlook-action-button svg {
  color: var(--primary-color);
}
/* Ajuste para que o componente TeamsChat e OutlookChat ocupem o espaço restante */
.userplace-teams-container > div:nth-child(2),
.userplace-outlook-container > div:nth-child(2) {
  flex: 1;
  overflow: auto;
}
/* Responsividade */
@media (max-width: 1200px) {
  .userplace-content {
    flex-direction: column;
  }
  
  .userplace-left-panel,
  .userplace-right-panel {
    max-width: 100%;
    height: 50%;
  }
}/* Estilos para o novo GenCHAT CommCenter */

/* Variáveis de cores e temas */
:root {
  --commcenter-primary: var(--primary-color, #008066);
  --commcenter-secondary: #96c7c0;
  --commcenter-accent: #4db6ac;
  --commcenter-light: #e0f2f1;
  --commcenter-dark: #004d40;
  --commcenter-text: #212121;
  --commcenter-text-light: #f5f5f5;
  --commcenter-border: #e0e0e0;
  --commcenter-shadow: 4px 4px 15px rgba(0, 0, 0, 0.2);
  --commcenter-radius: 12px;
  --commcenter-radius-sm: 8px;
  --commcenter-transition: all 0.3s ease;
}

/* Container principal */
.userspace-genchat-commcenter {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: #fff;
  border-radius: var(--commcenter-radius);
  overflow: hidden;
  box-shadow: var(--commcenter-shadow);
  animation: fadeIn 0.4s ease-out;
}

/* Header do CommCenter */
.commcenter-header {
  background: var(--commcenter-primary);
  color: var(--commcenter-text-light);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.commcenter-header-title {
  font-size: 1.2rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.commcenter-header-actions {
  display: flex;
  gap: 12px;
}

.commcenter-action-button {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--commcenter-transition);
}

.commcenter-action-button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.commcenter-action-button.active {
  background: var(--commcenter-accent);
  color: var(--commcenter-dark);
}

/* Área principal de conteúdo */
.commcenter-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* Área de mensagens */
.commcenter-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--commcenter-border) transparent;
}

.commcenter-messages::-webkit-scrollbar {
  width: 6px;
}

.commcenter-messages::-webkit-scrollbar-track {
  background: transparent;
}

.commcenter-messages::-webkit-scrollbar-thumb {
  background-color: var(--commcenter-border);
  border-radius: 6px;
}

/* Mensagens */
.message {
  display: flex;
  flex-direction: column;
  max-width: 80%;
  animation: fadeIn 0.3s ease-out;
}

.message-user {
  align-self: flex-end;
}

.message-bot {
  align-self: flex-start;
}

.message-header {
  display: flex;
  align-items: center;
  margin-bottom: 4px;
  font-size: 0.85rem;
  color: var(--commcenter-text);
}

.message-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: 8px;
  object-fit: cover;
  background-color: #e1e1e1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.message-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.message-time {
  font-size: 0.75rem;
  color: #757575;
  margin-left: 8px;
}

.message-bubble {
  padding: 12px 16px;
  border-radius: 18px;
  position: relative;
  word-break: break-word;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.message-user .message-bubble {
  background-color: var(--commcenter-primary);
  color: white;
  border-bottom-right-radius: 4px;
}

.message-bot .message-bubble {
  background-color: #f1f1f1;
  color: var(--commcenter-text);
  border-bottom-left-radius: 4px;
}

/* Indicador de digitação */
.typing-indicator {
  display: flex;
  align-items: center;
  margin: 10px 0;
  padding: 8px 16px;
  background-color: #f1f1f1;
  border-radius: 18px;
  width: fit-content;
  max-width: 100px;
  animation: fadeIn 0.5s ease-in-out;
}

.typing-indicator span {
  height: 8px;
  width: 8px;
  float: left;
  margin: 0 1px;
  background-color: #9E9EA1;
  display: block;
  border-radius: 50%;
  opacity: 0.4;
}

.typing-indicator span:nth-of-type(1) {
  animation: 1s blink infinite 0.3333s;
}

.typing-indicator span:nth-of-type(2) {
  animation: 1s blink infinite 0.6666s;
}

.typing-indicator span:nth-of-type(3) {
  animation: 1s blink infinite 0.9999s;
}

@keyframes blink {
  50% {
    opacity: 1;
  }
}

/* Área de entrada de mensagem fixa no rodapé */
.commcenter-input-area {
  padding: 16px;
  border-top: 1px solid var(--commcenter-border);
  background-color: #fff;
  position: sticky;
  bottom: 0;
  z-index: 10;
  margin-bottom: 20px;
}

.commcenter-input-container {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.commcenter-input {
  flex: 1;
  padding: 14px 18px;
  border: 1px solid var(--commcenter-border);
  border-radius: 24px;
  font-size: 1rem;
  outline: none;
  transition: var(--commcenter-transition);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.commcenter-input:focus {
  border-color: var(--principal-color, var(--commcenter-primary));
  box-shadow: 0 0 0 2px rgba(0, 122, 105, 0.1);
}

.commcenter-input-actions {
  display: flex;
  gap: 10px;
}

.commcenter-input-button {
  background: none;
  border: none;
  color: #757575;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--commcenter-transition);
}

.commcenter-input-button:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: var(--principal-color, var(--commcenter-primary));
}

.commcenter-input-button.send {
  background-color: var(--principal-color, var(--commcenter-primary));
  color: white;
}

.commcenter-input-button.send:hover {
  background-color: var(--commcenter-dark);
  transform: scale(1.05);
}

.commcenter-input-button.send:disabled {
  background-color: #e0e0e0;
  color: #9e9e9e;
  cursor: not-allowed;
  transform: none;
}

.commcenter-error {
  margin-top: 8px;
  color: #d32f2f;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Área de vídeo */
.commcenter-video {
  display: none;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.commcenter-video.active {
  display: flex;
}

.commcenter-video-container {
  flex: 1;
  position: relative;
  background-color: #000;
  overflow: hidden;
}

.commcenter-remote-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.commcenter-local-video-container {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 180px;
  height: 120px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  border: 2px solid white;
  z-index: 10;
}

.commcenter-local-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.commcenter-video-controls {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 16px;
  background-color: rgba(0, 0, 0, 0.8);
}

.commcenter-video-button {
  background-color: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--commcenter-transition);
}

.commcenter-video-button:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.commcenter-video-button.active {
  background-color: var(--commcenter-accent);
}

.commcenter-video-button.end-call {
  background-color: #e53935;
}

.commcenter-video-button.end-call:hover {
  background-color: #c62828;
}

/* Animações */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(10px); }
}



/* Responsividade */
@media (max-width: 768px) {
  .message {
    max-width: 90%;
  }
  
  .commcenter-local-video-container {
    width: 120px;
    height: 80px;
  }
}/* Animações para o GenChat e feedback */

/* Animações de fade */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(20px); }
}

/* Animações de slide para feedback */
@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutFade {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(100%); opacity: 0; }
}

/* Indicador de digitação com animação de fade-in */
.typing-indicator {
  display: flex;
  align-items: center;
  margin: 10px 0;
  padding: 8px 16px;
  background-color: #f1f1f1;
  border-radius: 18px;
  width: fit-content;
  max-width: 100px;
  animation: fadeIn 0.5s ease-in-out;
  opacity: 0;
  animation: fadeIn 0.5s ease-in-out forwards;
}

.typing-indicator span {
  height: 8px;
  width: 8px;
  float: left;
  margin: 0 1px;
  background-color: #9E9EA1;
  display: block;
  border-radius: 50%;
  opacity: 0.4;
}

.typing-indicator span:nth-of-type(1) {
  animation: 1s blink infinite 0.3333s;
}

.typing-indicator span:nth-of-type(2) {
  animation: 1s blink infinite 0.6666s;
}

.typing-indicator span:nth-of-type(3) {
  animation: 1s blink infinite 0.9999s;
}

@keyframes blink {
  50% {
    opacity: 1;
  }
}

/* Classe de fade-out para animação de desaparecimento */
.fade-out {
  animation: fadeOut 0.5s ease-in-out forwards;
}/* Estilos para o novo GenCHAT CommCenter */

/* Variáveis de cores e temas */
:root {
  --commcenter-primary: #008066;
  --commcenter-secondary: #96c7c0;
  --commcenter-accent: #4db6ac;
  --commcenter-light: #e0f2f1;
  --commcenter-dark: #004d40;
  --commcenter-text: #212121;
  --commcenter-text-light: #f5f5f5;
  --commcenter-border: #e0e0e0;
  --commcenter-shadow: 4px 4px 15px rgba(0, 0, 0, 0.2);
  --commcenter-radius: 12px;
  --commcenter-radius-sm: 8px;
  --commcenter-transition: all 0.3s ease;
}

/* Container principal */
.userspace-genchat-commcenter {
  display: none; /* Inicialmente oculto, só será exibido quando o botão PEDIDO DE AJUDA for clicado */
  flex-direction: column;
  height: 100%;
  background-color: #fff;
  border-radius: var(--commcenter-radius);
  overflow: hidden;
  box-shadow: var(--commcenter-shadow);
  animation: fadeIn 0.4s ease-out;
}

/* Header do CommCenter */
.commcenter-header {
  background: linear-gradient(175deg, var(--commcenter-primary) 0%, var(--commcenter-secondary) 100%);
  color: var(--commcenter-text-light);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.commcenter-header-title {
  font-size: 1.2rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.commcenter-header-actions {
  display: flex;
  gap: 12px;
}

.commcenter-action-button {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--commcenter-transition);
}

.commcenter-action-button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.commcenter-action-button.active {
  background: var(--commcenter-accent);
  color: var(--commcenter-dark);
}

/* Área principal de conteúdo */
.commcenter-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* Área de mensagens */
.commcenter-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--commcenter-border) transparent;
}

.commcenter-messages::-webkit-scrollbar {
  width: 6px;
}

.commcenter-messages::-webkit-scrollbar-thumb {
  background-color: var(--commcenter-border);
  border-radius: 6px;
}

/* Mensagens */
.commcenter-message {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: var(--commcenter-radius-sm);
  position: relative;
  animation: messageSlideIn 0.3s ease-out;
}

@keyframes messageSlideIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.commcenter-message-user {
  align-self: flex-end;
  background-color: var(--commcenter-primary);
  color: white;
  border-bottom-right-radius: 4px;
}

.commcenter-message-bot {
  align-self: flex-start;
  background-color: var(--commcenter-light);
  color: var(--commcenter-text);
  border-bottom-left-radius: 4px;
}

.commcenter-message-meta {
  font-size: 0.75rem;
  margin-top: 6px;
  opacity: 0.8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.commcenter-message-time {
  font-size: 0.7rem;
}

/* Área de vídeo */
.commcenter-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  display: flex;
  flex-direction: column;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: var(--commcenter-transition);
}

.commcenter-video-container.active {
  opacity: 1;
  pointer-events: all;
}

.commcenter-video-main {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.commcenter-video-remote {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.commcenter-video-local {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 150px;
  height: 100px;
  object-fit: cover;
  border-radius: var(--commcenter-radius-sm);
  border: 2px solid white;
  box-shadow: var(--commcenter-shadow);
}

.commcenter-video-controls {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.5);
}

/* Indicador de digitação */
.commcenter-typing {
  display: flex;
  align-items: center;
  margin: 10px 20px;
  padding: 8px 16px;
  background-color: var(--commcenter-light);
  border-radius: 18px;
  width: fit-content;
  max-width: 120px;
}

.commcenter-typing span {
  height: 8px;
  width: 8px;
  margin: 0 2px;
  background-color: var(--commcenter-secondary);
  display: block;
  border-radius: 50%;
  opacity: 0.6;
  animation: typingBlink 1s infinite ease-in-out both;
}

.commcenter-typing span:nth-of-type(1) {
  animation-delay: 0.2s;
}

.commcenter-typing span:nth-of-type(2) {
  animation-delay: 0.4s;
}

.commcenter-typing span:nth-of-type(3) {
  animation-delay: 0.6s;
}

@keyframes typingBlink {
  0%, 100% { opacity: 0.4; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1); }
}

/* Rodapé com input */
.commcenter-footer {
  padding: 16px;
  border-top: 1px solid var(--commcenter-border);
  background-color: #fff;
}

.commcenter-input-container {
  display: flex;
  align-items: center;
  background-color: var(--commcenter-light);
  border-radius: 24px;
  padding: 6px 8px 6px 16px;
  transition: var(--commcenter-transition);
  border: 1px solid transparent;
}

.commcenter-input-container:focus-within {
  border-color: var(--commcenter-accent);
  box-shadow: 0 0 0 2px rgba(77, 182, 172, 0.2);
}

.commcenter-input {
  flex: 1;
  border: none;
  background: white;
  padding: 8px 0 0 8;
  outline: none;
  font-size: 14px;
  color: var(--commcenter-text);
  box-shadow: 0px 0px 15px 1px rgba(0,0, 0, 0.2);
}

.commcenter-input-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.commcenter-input-action {
  background: none;
  border: none;
  color: var(--commcenter-secondary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--commcenter-transition);
}

.commcenter-input-action:hover {
  background-color: rgba(0, 121, 107, 0.1);
  color: var(--commcenter-primary);
}

.commcenter-send-button {
  background-color: var(--commcenter-primary);
  color: white;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--commcenter-transition);
}

.commcenter-send-button:hover {
  background-color: var(--commcenter-secondary);
  transform: scale(1.05);
}

.commcenter-send-button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  transform: none;
}

/* Animações adicionais */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.pulse-animation {
  animation: pulse 1.5s infinite;
}

/* Responsividade */
@media (max-width: 768px) {
  .commcenter-header {
    padding: 12px 16px;
  }
  
  .commcenter-header-title {
    font-size: 1rem;
  }
  
  .commcenter-action-button {
    width: 32px;
    height: 32px;
  }
  
  .commcenter-message {
    max-width: 90%;
  }
  
  .commcenter-video-local {
    width: 100px;
    height: 70px;
    bottom: 10px;
    right: 10px;
  }
}/* Animações para o GenChat e feedback */

/* Animações de fade */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(20px); }
}

/* Indicador de digitação */
.typing-indicator {
  display: flex;
  align-items: center;
  margin: 10px 0;
  padding: 8px 16px;
  background-color: #f1f1f1;
  border-radius: 18px;
  width: fit-content;
  max-width: 100px;
}

.typing-indicator span {
  height: 8px;
  width: 8px;
  float: left;
  margin: 0 1px;
  background-color: #9E9EA1;
  display: block;
  border-radius: 50%;
  opacity: 0.4;
}

.typing-indicator span:nth-of-type(1) {
  animation: 1s blink infinite 0.3333s;
}

.typing-indicator span:nth-of-type(2) {
  animation: 1s blink infinite 0.6666s;
}

.typing-indicator span:nth-of-type(3) {
  animation: 1s blink infinite 0.9999s;
}

@keyframes blink {
  50% {
    opacity: 1;
  }
}

/* Estilos para o feedback com animação *//* Animações adicionais para o CommCenter */

/* Animação de entrada para o CommCenter */
@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInLeft {
  from { transform: translateX(-100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes zoomIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Animações para notificações e alertas */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-20px); }
  60% { transform: translateY(-10px); }
}

/* Animações para botões e controles */
@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 90, 79, 0.4); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(0, 90, 79, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 90, 79, 0); }
}

@keyframes ripple {
  0% { box-shadow: 0 0 0 0 rgba(0, 90, 79, 0.3); }
  100% { box-shadow: 0 0 0 20px rgba(0, 90, 79, 0); }
}

/* Animações para transições de estado */
@keyframes fadeInOut {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

/* Classes de utilidade para aplicar animações */
.slide-in-right {
  animation: slideInRight 0.5s ease-out forwards;
}

.slide-in-left {
  animation: slideInLeft 0.5s ease-out forwards;
}

.slide-in-up {
  animation: slideInUp 0.5s ease-out forwards;
}

.zoom-in {
  animation: zoomIn 0.4s ease-out forwards;
}

.shake {
  animation: shake 0.5s ease-in-out;
}

.bounce {
  animation: bounce 1s ease;
}

.pulse {
  animation: pulse 1.5s infinite;
}

.ripple {
  animation: ripple 1s linear infinite;
}

.fade-in-out {
  animation: fadeInOut 2s ease infinite;
}

/* Animações específicas para elementos do CommCenter */
.commcenter-header {
  animation: slideInDown 0.5s ease-out;
}

@keyframes slideInDown {
  from { transform: translateY(-50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.commcenter-footer {
  animation: slideInUp 0.5s ease-out;
}

/* Animação para notificação de nova mensagem */
.commcenter-new-message-alert {
  background-color: rgba(0, 90, 79, 0.9);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  position: absolute;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 100;
  animation: fadeInOut 3s ease-in-out;
}

/* Animação para status de conexão */
.commcenter-connection-status {
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 0.8rem;
  z-index: 100;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.commcenter-connection-status.show {
  opacity: 1;
}

.commcenter-connection-status.connected {
  background-color: rgba(76, 175, 80, 0.9);
  color: white;
}

.commcenter-connection-status.disconnected {
  background-color: rgba(244, 67, 54, 0.9);
  color: white;
  animation: pulse 1.5s infinite;
}

/* Animação para indicador de gravação */
.commcenter-recording-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(244, 67, 54, 0.9);
  color: white;
  padding: 6px 12px;
  border-radius: 16px;
  position: absolute;
  top: 60px;
  right: 20px;
  z-index: 100;
}

.commcenter-recording-indicator::before {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: white;
  animation: fadeInOut 1s infinite;
}

/* Outlook Mail Center - Estilo moderno e corporativo */
/* Importação de fontes */
:root {
  /* Cores principais (usando as variáveis CSS existentes) */
  --primary-color: #005a4f;
  --primary-hover: #007a6a;
  --secondary-color: #f3f2f1;
  --border-color: #e1e1e1;
  --text-color: #252423;
  --text-light: #605e5c;
  --hover-color: #f5f5f5;
  --focus-color: #edebe9;
  
  /* Cores de status */
  --success-color: #107c10;
  --warning-color: #d83b01;
  --error-color: #d13438;
  --info-color: #0078d4;
  
  /* Sombras e arredondamentos */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 8px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  
  /* Transições */
  --transition: all 0.2s ease;
}
/* Container principal */
.userspace-outlook-mailcenter {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  z-index: 1;
  overflow: hidden;
  border-radius: var(--radius-md);
}
/* Header */
.outlook-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  color: var(--commcenter-text-light);
  animation: slideInDownOutlook 0.4s ease-out;
  background: linear-gradient(175deg, var(--commcenter-primary) 0%, var(--commcenter-secondary) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.outlook-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
}
.outlook-header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.outlook-close-btn {
  background: transparent;
  border: none;
  color: white;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.outlook-close-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}
/* Corpo principal - Layout 30/70 */
.outlook-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}
/* Coluna da esquerda - Caixa de entrada (30%) */
.outlook-inbox {
  width: 30%;
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  background-color: #f8f8f8;
}
.outlook-inbox-header {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  background-color: #f0f0f0;
  display: flex;
  flex-direction: column;
}
.outlook-inbox-header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-color);
}
/* Indicadores de cache e retry */
.outlook-cache-indicator,
.outlook-retry-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: normal;
}
.outlook-cache-indicator {
  background-color: #e6f7ff;
  color: #0066cc;
  border: 1px solid #91d5ff;
}
.outlook-retry-indicator {
  background-color: #fff7e6;
  color: #d46b08;
  border: 1px solid #ffd591;
}
.outlook-email-list {
  flex: 1;
  overflow-y: auto;
}
.outlook-email-item {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition);
}
.outlook-email-item:hover {
  background-color: var(--hover-color);
}
.outlook-email-item.selected {
  background-color: #e6f2ff;
  border-left: 3px solid var(--primary-color);
}
.outlook-email-item.unread {
  font-weight: 600;
  background-color: rgba(0, 90, 79, 0.05);
}
.email-sender {
  font-weight: 500;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.email-subject {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.email-date {
  font-size: 0.8rem;
  color: var(--text-light);
}
.email-attachment {
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: var(--text-light);
}
/* Coluna da direita - Visualização do email (70%) */
.outlook-content {
  width: 70%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.outlook-loading,
.outlook-error,
.outlook-empty,
.outlook-loading-content,
.outlook-no-selection {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  gap: 1rem;
  color: var(--text-light);
  height: 100%;
  text-align: center;
}
.outlook-email-view {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}
.email-view-header {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  background-color: #ffffff;
}
.email-view-header h2 {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-color);
}
.email-view-info {
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.email-view-sender,
.email-view-recipients,
.email-view-date {
  margin-bottom: 0.25rem;
}
.email-view-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.reply-btn,
.attach-btn,
.send-btn,
.cancel-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}
.reply-btn {
  background-color: var(--primary-color);
  color: white;
}
.reply-btn:hover {
  background-color: var(--primary-hover);
}
.email-view-body {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  background-color: #ffffff;
}
.email-content {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-color);
}
.email-view-attachments {
  padding: 1rem;
  border-top: 1px solid var(--border-color);
  background-color: #f9f9f9;
}
.email-view-attachments h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color);
}
.attachment-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.attachment-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background-color: #f0f0f0;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}
/* Área de resposta */
.email-reply-area {
  padding: 1rem;
  border-top: 1px solid var(--border-color);
  background-color: #f9f9f9;
}
.email-reply-area h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color);
}
/* Estilos para o editor Quill */
.quill {
  background-color: #ffffff;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}
.ql-toolbar {
  border-top-left-radius: var(--radius-sm);
  border-top-right-radius: var(--radius-sm);
  border-color: var(--border-color) !important;
  background-color: #f5f5f5;
}
.ql-container {
  border-bottom-left-radius: var(--radius-sm);
  border-bottom-right-radius: var(--radius-sm);
  border-color: var(--border-color) !important;
  min-height: 150px;
  max-height: 300px;
}
.ql-editor {
  min-height: 150px;
  max-height: 300px;
  font-size: 0.95rem;
  line-height: 1.5;
}
/* Anexos da resposta */
.reply-attachments {
  margin-bottom: 1rem;
}
.reply-attachments h4 {
  margin: 0 0 0.5rem 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-color);
}
.remove-attachment {
  background: transparent;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 0.25rem;
  margin-left: 0.25rem;
  border-radius: 50%;
  transition: var(--transition);
}
.remove-attachment:hover {
  background-color: rgba(0, 0, 0, 0.1);
  color: var(--error-color);
}
/* Botões de ação da resposta */
.reply-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}
.attach-btn {
  background-color: #f0f0f0;
  color: var(--text-color);
}
.attach-btn:hover {
  background-color: #e0e0e0;
}
.cancel-btn {
  background-color: #f0f0f0;
  color: var(--text-color);
}
.cancel-btn:hover {
  background-color: #e0e0e0;
}
.send-btn {
  background-color: var(--primary-color);
  color: white;
}
.send-btn:hover:not(:disabled) {
  background-color: var(--primary-hover);
}
.send-btn:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}
/* Animações */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-out {
  animation: fadeOut 0.5s ease-in-out forwards;
}
@keyframes fadeOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(20px); }
}
/* Responsividade */
@media (max-width: 768px) {
  .outlook-body {
    flex-direction: column;
  }
  
  .outlook-inbox,
  .outlook-content {
    width: 100%;
    height: 50%;
  }
  
  .outlook-inbox {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
}
@keyframes slideInDownOutlook {
  from { transform: translateY(-50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}.userspace-ticket-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(3px);
}

.userspace-ticket-modal {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  width: 80%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  animation: modal-appear 0.3s ease-out;
  transition: box-shadow 0.2s ease;
}

.userspace-ticket-modal.dragging {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  z-index: 1001;
}

@keyframes modal-appear {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.userspace-ticket-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background-color: #008066;
  color: white;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  user-select: none;
  position: relative;
}

.userspace-ticket-modal-header::after {
  content: '';
  position: absolute;
  right: 50px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 12px;
  background-image: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, 1) 2px,
    rgba(255, 255, 255, 1) 4px
  );
  border-radius: 2px;
}

.userspace-ticket-modal-header h3 {
  margin: 0;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
}

.userspace-ticket-modal-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  border-radius: 50%;
}

.userspace-ticket-modal-close:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.userspace-ticket-modal-content {
  padding: 20px;
}

.userspace-ticket-modal-section {
  margin-bottom: 24px;
}

.userspace-ticket-modal-section:last-child {
  margin-bottom: 0;
}

.userspace-ticket-modal-section h4 {
  margin: 0 0 12px 0;
  font-size: 1.1rem;
  color: #008066;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 8px;
}

.userspace-ticket-modal-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.userspace-ticket-modal-row {
  display: flex;
  flex-direction: column;
}

.userspace-ticket-modal-row strong {
  font-weight: 600;
  margin-bottom: 4px;
  color: #555;
}

.userspace-ticket-modal-row span {
  color: #333;
}

.userspace-ticket-modal-description,
.userspace-ticket-modal-resolution {
  background-color: #f9f9f9;
  padding: 12px;
  border-radius: 4px;
  border-left: 3px solid #008066;
  white-space: pre-line;
  line-height: 1.5;
}

.userspace-ticket-modal-resolution {
  border-left-color: #0066cc;
}

@media (min-width: 768px) {
  .userspace-ticket-modal-row {
    flex-direction: row;
    align-items: flex-start;
  }
  
  .userspace-ticket-modal-row strong {
    width: 180px;
    margin-bottom: 0;
    padding-top: 2px;
  }
  
  .userspace-ticket-modal-row span {
    flex: 1;
  }
  
  .userspace-ticket-modal-description,
  .userspace-ticket-modal-resolution {
    flex: 1;
  }
}

/* Estilos para a página Userspace */
/* Importar fontes e variáveis globais */
:root {
  /* Variáveis GenChat (substituindo Teams) */
  --genchat-primary: #4b53bc;
  --genchat-primary-dark: #3a41a0;
  --genchat-secondary: #f3f2f1;
  --genchat-text: #323130;
  --genchat-text-light: #605e5c;
  --genchat-border: #e1dfdd;
  --genchat-hover: #edebe9;
  --genchat-focus: #c7e0f4;
  --genchat-urgent-bg: #fed9cc;
  --genchat-urgent-color: #d83b01;
}
/* Container principal */
.userspace-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  background-color: var(--backg-color);
  padding: 1rem 1rem 0 1rem;
  overflow: hidden;
}
/* Conteúdo principal com sistema de abas */
.userspace-content {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 60px);
  overflow: hidden;
}
/* Painel único com sistema de abas */
.userspace-tab-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  background-color: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--primary-color);
  overflow: hidden;
}
/* Botões das abas principais */
.userspace-main-tab-buttons {
  display: flex;
  border-bottom: 1px solid var(--genchat-border);
  background-color: var(--genchat-secondary);
}
/* Conteúdo das abas */
.userspace-tab-panel .userspace-tab-content {
  flex: 1;
  overflow-y: auto;
  position: relative;
}
/* Abas específicas */
.userspace-ticket-tab,
.userspace-genchat-tab,
.userspace-outlook-tab {
  height: 100%;
  display: flex;
  flex-direction: column;
}
/* Painel esquerdo - Formulário (mantido para compatibilidade) */
.userspace-left-panel {
  flex: 1;
  background-color: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-width: 49.8%;
  max-height: 99%;;
  border: 1px solid var(--primary-color);
}
/* Classes para substituir estilos inline */
.userspace-genchat-container--hidden {
  display: none;
}
.userspace-genchat-container--visible {
  display: block;
  box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.3);
}
/* Painel direito - Comunicação (mantido para compatibilidade) */
.userspace-right-panel {
  flex: 1;
  background-color: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  max-height: 99%;
  max-width: 49.8%;
  margin-right: 10px;
  flex-direction: column;
  border: 1px solid var(--primary-color);
  box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.3);
}
/* Container do formulário */
.userspace-form-container {
  padding: 1.5rem 1.5rem 0.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
}
/* Título do formulário */
.userspace-form-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-color);
}
/* Formulário */
.userspace-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
/* Campo do formulário */
.userspace-form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
/* Linha do formulário para campos lado a lado */
.userspace-form-row {
  display: flex;
  gap: 1rem;
  width: 100%;
}
.userspace-form-row-anexos{
    display: flex;
    flex-direction: row ;
    gap: 1rem;
    width: 100%;
    max-height: 290px;
    height: 100%;
}
/* Campo com metade da largura */
.userspace-half-width {
  width: 50%;
  
}
/* Labels do formulário */
.userspace-form-field label {
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--primary-color);
  color: white;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  min-height: 32px;
}
textarea {
  resize: none;
  min-height: 125px;
  max-height: 125px;
  overflow-y: auto;
}
/* Inputs, selects e textareas */
.userspace-form-field input,
.userspace-form-field select,
.userspace-form-field textarea {
  padding: 0.6rem;
  border: 1px solid var(--genchat-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-family);
  font-size: 0.9rem;
  transition: border-color 0.2s ease;
}
.userspace-form-field input:focus,
.userspace-form-field select:focus,
.userspace-form-field textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(26, 127, 114, 0.2);
}
.userspace-genchat-embedded {
  width: 100%;
  height: 100%;
  border: none;
}
/* Container da aba Outlook */
.userspace-outlook-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}
/* Área de Drag and Drop */
.userspace-dropzone {
  margin-top: 1px;
  border: 2px dashed var(--genchat-border);
  border-radius: var(--radius-md);
  width: 100%;
  padding: 1.5rem;
  background-color: var(--genchat-secondary);
  transition: all 0.3s ease;
  cursor: pointer;
  height: 100%;
}
.userspace-dropzone:hover {
  border-color: var(--primary-color);
  background-color: rgba(26, 127, 114, 0.05);
}
.userspace-dropzone-active {
  border-color: var(--primary-color);
  background-color: rgba(26, 127, 114, 0.1);
  box-shadow: 0 0 0 2px rgba(26, 127, 114, 0.2);
}
.userspace-dropzone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.5rem;
  color: var(--text-color);
}
.userspace-dropzone-content p {
  margin: 0.5rem 0 0 0;
  font-weight: 600;
  font-size: 1rem;
}
.userspace-dropzone-content span {
  font-size: 0.85rem;
  color: var(--text-secondary);
}
/* Lista de anexos */
.userspace-attachments-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
  max-height: 200px;
  overflow-y: auto;
  padding: 0.5rem;
  border: 1px solid var(--genchat-border);
  border-radius: var(--radius-sm);
  background-color: var(--genchat-secondary);
}
/* Estilos para data de vencimento */
.userspace-due-date {
  background-color: var(--genchat-secondary);
  padding: 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--genchat-border);
  font-weight: 600;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
/* Estilos para sugestão do chatbot */
.userspace-chatbot-suggestion {
  background-color: #f0f7ff;
  border: 1px solid #91caff;
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin: 1rem 0;
  box-shadow: var(--shadow-sm);
}
.userspace-chatbot-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
  color: var(--primary-color);
  border-bottom: 1px solid #d4e6f9;
  padding-bottom: 0.5rem;
}
.userspace-chatbot-header h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}
.userspace-chatbot-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.userspace-chatbot-field {
  background-color: white;
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  border: 1px solid var(--genchat-border);
}
.userspace-chatbot-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}
.userspace-chatbot-apply {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.2s ease;
}
.userspace-chatbot-apply:hover {
  background-color: var(--primary-dark);
}
.userspace-chatbot-reject {
  background-color: var(--genchat-secondary);
  color: var(--text-color);
  border: 1px solid var(--genchat-border);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.userspace-chatbot-reject:hover {
  background-color: #e0e0e0;
}
.userspace-attachment-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem;
  background-color: white;
  border-radius: var(--radius-sm);
  border: 1px solid var(--teams-border);
}
.userspace-attachment-remove {
  background: none;
  border: none;
  color: var(--danger-color);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}
.userspace-attachment-remove:hover {
  background-color: rgba(220, 53, 69, 0.1);
}
/* Botões de ação do formulário */
.userspace-form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}
.userspace-submit-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.userspace-submit-button:hover {
  background: var(--primary-color)!important;
  background-color: #3e8e41;
  transform: translate(-3px, -3px);
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);

}
.userspace-submit-button:disabled {
  background-color: var(--grey-light);
  cursor: not-allowed;
}
.ksQhh,
.hsrFJz {
  will-change: filter;
  transition: filter 200ms;

}
.bkfwgV.active {
  background-color: var(--primary-color);
  color: white;
}
.ksQhh:hover,
.hsrFJz:hover  {
  filter:drop-shadow(0 0 0.5rem var(--primary-color));
}
/* Animações para o feedback */
@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
@keyframes slideOutFade {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}
@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
/* Abas de comunicação */
.userspace-communication-tabs {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.userspace-tab-buttons {
  display: flex;
  border-bottom: 1px solid var(--genchat-border);
}
.userspace-tab-button {
  flex: 1;
  padding: 1rem;
  background: none;
  border: none;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.userspace-tab-button:hover {
  background-color: var(--genchat-secondary);
}
.userspace-tab-button.active {
  color: var(--primary-color);
  border-bottom: 3px solid var(--primary-color);
}
.userspace-tab-content {
  flex: 1;
  overflow: hidden;
  position: relative;
}
/* Estilos para o GenChat */
.userspace-genchat-container {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 1rem;
 
}
/* Substituído pelo novo CommCenter */
.userspace-genchat-commcenter {
  height: calc(100% - 180px);
  display: flex;
  flex-direction: column;
}
.userspace-genchat-header {
  padding: 1rem;
  border-bottom: 1px solid var(--genchat-border);
}
.userspace-genchat-header h3 {
  margin: 0;
  color: var(--primary-color);
  font-size: 1.2rem;
}
.userspace-genchat-header p {
  margin: 0.5rem 0 1rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.userspace-genchat-actions {
  display: flex;
  gap: 0.5rem;
}
.userspace-genchat-action-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: var(--genchat-secondary);
  border: 1px solid var(--genchat-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.9rem;
  transition: background-color 0.2s ease;
}
.userspace-genchat-action-button:hover {
  background-color: var(--genchat-hover);
}
/* Estilos para o Outlook */
.userspace-outlook-container {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 1rem;
}
.userspace-outlook-header {
  padding: 1rem;
  border-bottom: 1px solid var(--genchat-border);

}
.userspace-outlook-header h3 {
  margin: 0;
  color: var(--primary-color);
  font-size: 1.2rem;
}
.userspace-outlook-header p {
  margin: 0.5rem 0 1rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.userspace-outlook-actions {
  display: flex;
  gap: 0.5rem;
}
.userspace-outlook-action-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: var(--genchat-secondary);
  border: 1px solid var(--genchat-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.9rem;
  transition: background-color 0.2s ease;
}
.userspace-outlook-action-button:hover {
  background-color: var(--genchat-hover);
}
.userspace-modern-footer {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  max-width: 100vw;
  max-height: 40px;
  height: 100%;
  font-size: 14px;
  background:white;
  color: #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  padding-left: 40px;
  padding-right: 40px;
  flex-direction: row;
  border-top: 1px solid #c5c5c5;
}
.userspace-poweredBy-string{
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: absolute;
  bottom: 0px;
  right: 20px;
  width: 220px;
  color: var(--primary-color);
  font-size: 14px;
}
.userspace-logo-poweredBy{
  position: relative;
  bottom: 0px;
  right:0px;
  width: 40px;;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.userspace-logo-PoweredBy img{
  position: relative;
  bottom: 0px;
  right: 0px;
  width: 32px;
  height: auto;
  aspect-ratio: 83/64;
}
.userspace-poweredBy{
  position: relative;
  color: var(--primary-color);
  right: 0px;
  height: 30px;
  line-height: 30px;
  font-size: 1rem;
}
/* Estilos para informações do autor */
.userspace-author-info {
  display: flex;
  background-color: var(--genchat-secondary);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-top: 1px;
  width: 100%;
  max-height: 200px;
  height: 100%;
}
.userspace-details-flex {
  align-items: center;
  display: flex;
  background: var(--genchat-secondary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--primary-color) ;
  padding: 1rem;
  width: 100%;
  max-height: 200px;
  height: 100%;
}
.userspace-autor-photo-container {
  display:flex; 
  justify-content: center;
  align-items: center;
  width: 72px;
  max-height: 72px;
  margin: 0 auto;
  margin-right: 12px;
  transition: transform 0.2s ease-in-out;
}
.userspace-field-manager{
  width: 100%;
  align-items: flex-start;
  justify-content: space-between;
  margin-left: 10px;

}
.userspace-manager-photo{
  display:flex;
  align-items: baseline;
  gap: 8px;
  width: 40px;
  height: 40px;
}
.userspace-manager-value{
  color: var(--text-color);
  margin-left: 15px;
  flex: 1;
  text-align: left;
  font-size: 1em;
  width: 100%;
}
.userspace-manager-info-container{
  display: flex;
  flex-direction:row;
  align-items: center;
  width: 100%;
}
.userspace-manager-row{
  display: flex;
  align-items: center;
  margin-bottom: 6px;
  font-size: 0.85rem;
  position: relative;
  z-index: 1; /* Valor para garantir que o pseudo-elemento fique acima dos elementos filhos */
}
.userspace-author-photo {
  display:flex; 
  justify-content: center;
  align-items: center;
  width: 72px;
  max-height: 72px;
  margin: 0 auto;
  margin-right: 12px;
  transition: transform 0.2s ease-in-out;
}
.userspace-author-separator{
  width: 2px;
  height: 90%;
  background: var(--primary-color);
  margin-right: 16px;
}
.userspace-author-details {
  flex: 1;
}
.userspace-author-row {
    display: flex;
    align-items: baseline;
    margin-bottom: 6px; /* Espaçamento entre linhas */
    font-size: 0.85rem;
    position: relative;
    z-index: 1; /* Valor menor que o z-index da foto do manager */
  }
.userspace-manager-field{
  width: 100%;
  align-items: flex-start;
  justify-content: space-between;
  margin-left: 10px;
}
.userspace-author-row strong{
  min-width: 70px;
  font-weight: bold;
  margin-right: 8px;
  color:var(--text-secondary);
  }
.userspace-author-value{
  color: black;
  word-break: break-word;
  flex: 1;
  text-align: left;
  font-size: 1em;
}
/* Responsividade */
@media (max-width: 768px) {
  .userspace-content {
    flex-direction: column;
  }
  
  .userspace-left-panel,
  .userspace-right-panel {
    max-width: 100%;
  }
  
  .userspace-form-row {
    flex-direction: column;
    gap: 1rem;
  }
  
  .userspace-half-width {
    width: 100%;
  }
  
  .userspace-main-tab-buttons {
    flex-wrap: wrap;
  }
  
  .userspace-tab-button {
    flex: 1;
    min-width: 120px;
  }
}
/* Media query para resolução 1366x768 */
@media (max-width: 1366px) {
  .userspace-content {
    height: calc(100vh - 50px);
  }
  
  .userspace-tab-panel {
    height: 100%;
  }
  
  .userspace-form-row-anexos {
    flex-direction: column;
    height: auto;
    max-height: none;
  }
  
  .userspace-form-row-anexos .userspace-form-field {
    width: 100%;
    max-width: 100%;
  }
  
  .userspace-dropzone {
    min-height: 120px;
  }
  
  .userspace-details-flex {
    flex-direction: column;
    height: auto;
    max-height: none;
    gap: 1rem;
  }
  
  .userspace-author-photo {
    margin: 0 auto;
  }
  
  .userspace-author-separator {
    display: none;
  }
  
  textarea {
    min-height: 80px;
    max-height: 120px;
  }
  
  .app-timeline-placeholder {
    max-height: 200px;
    overflow-y: auto;
  }
}/* Estilos para o componente react-chrono na página Userspace */

.userspace-chrono-container {
  margin-top: 15px;
  padding: 20px;
  background-color: #ffffff;
  border-radius: 8px;
  height: calc(100% - 73px);
  border: 1px solid #e0e0e0;
}
.userspace-chrono-title {
  color: #005a4f;
  font-size: 1.2rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.userspace-section-icon {
  margin-right: 10px;
  color: #005a4f;
}

.userspace-no-data {
  text-align: center;
  color: #666;
  padding: 20px;
  font-style: italic;
}

.caffee {
    margin: 0.5rem!important;
}
.dStLjG {
    min-width: 350px;
}
.ExtraControls-sc-cif21b-7 {
    display: none!important;
}
.NQBcv.horizontal {
    max-height: 90px!important;
    min-height: 80px!important;
}
.fwRzpx {    /* Botões de navagação no timeline */
    margin: 0 0 10px 0;
}
.layHnF{
    max-width: 300px;
    min-height: 130px!important;
    height: 100%;
}
.hDYzXK {
    max-height: 78px!important;
    width: 150px!important;
}
.cMkOFQ {
    max-height: 80px!important;
    min-height: 80px!important;
}
.diUBdo {
    margin:0px!important;
    padding: 0px!important;
    padding-left: 0.5rem!important;
}
.kjNnLd {   /* Linha do Timeline */
    max-height: 30px;
}
.bwecLs.active {
    background-color: #008066!important;
    color: white!important;
}
.fhpXRr {
  min-height: 158px!important;
}
.TimelineContentDetailsWrapper {
    max-height: 80px!important;
    min-height: 80px!important;
}
.layHnF{
    border-top: 5px solid #008066!important;
    max-height: 110px;
}
.PuHbT {
  margin: 0!important;
  margin-top: 0!important;
  margin-bottom: 0!important;
  padding: 0!important;
  left: 8px;
  font-weight: bold!important;
  overflow: hidden;
}
.hMBUyZ {
  margin: 0!important;
  margin-top: 1rem!important;
  max-height: 170px!important;
}
.gmoxYR.horizontal {    /* timeline container*/
    max-height: 90px;
    min-height: 90px!important;
}
.dSpZvA {
    max-height: 80px!important;
    min-height: 80px!important;
    display: flex!important;
    align-items: center!important;
    justify-content: center!important;
    height: 80px!important;
    flex-direction: column!important;
}
.bUTGgW.horizontal {  /* Chrono wrapper */
    max-height: 350px!important;
}

.Selecter-sc-168kw5q-2 {
    display:hidden!important ;
}
/* Estilos para os cards da timeline */
.userspace-chrono-card {
  border-radius: 6px !important;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4) !important;
  transition: transform 0.2s ease-in-out !important;
  border-top: 6px solid #008066!important;
  /*max-height: 110px!important;*/
  max-height: 140px!important;
  min-height: 90px!important;
  min-width: 300px!important;
}

.cApaMp.active {  /* caixa da data activa */
    background-color: #008066!important;
    color: white!important;
}
.userspace-chrono-card:hover {
  transform: translate(-5px,-5px) !important;
  box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.4) !important;
}

.userspace-chrono-card-title {
  font-weight: bold !important;
  color: #005a4f !important;
}

/* Estilos para os controles da timeline */
.userspace-chrono-controls button {
  background-color: #005a4f !important;
  color: white !important;
  border-radius: 50% !important;
  width: 30px !important;
  height: 30px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}


/* Responsividade */
@media (max-width: 768px) {
  .userspace-chrono-container {
    padding: 15px 15px 0 15px;
  }
  

}/* Estilos para o GenChat integrado na aba */

.userspace-genchat-integrated {
  width: 100%;
  height: calc(100% - 140px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.userspace-genchat-commcenter {
  width: 100%;
  height: calc(100% - 140px);
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: none;
  border: none;
}

/* Garantir que o componente GenChatCommCenter ocupe todo o espaço disponível */
.userspace-genchat-integrated > div {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Remover margens e paddings desnecessários */
.userspace-genchat-integrated * {
  box-sizing: border-box;
}

/* Estilos removidos: os componentes commcenter-error e commcenter-error-container foram substituídos pelo sistema userspace-feedback */
/* Agora todos os feedbacks de erro são exibidos através do sistema unificado */.app-timeline-horizontal {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 24px 0 16px 0;
  background: #f9f9fb;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}



/* .timeline-nav-btn {
  background: #fff;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border 0.2s;
  box-shadow: 0 1px 4px rgba(43,124,255,0.07);
}
.timeline-nav-btn:disabled {
  background: #f0f4fa;
  color: #b0b0b0;
  border: 1.5px solid #e3e8f0;
  cursor: not-allowed;
} */
.timeline-nav-indicator {
  font-weight: 600;
  color: #2b7cff;
  font-size: 1.08rem;
  margin: 0 8px;
}

.app-timeline-track {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 36px;
  width: 100%;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) #e3e8f0;
}
.app-timeline-track::-webkit-scrollbar {
  height: 8px;
}
.app-timeline-track::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}
.app-timeline-track::-webkit-scrollbar-track {
  background: #e3e8f0;
  border-radius: 4px;
}

/* .app-timeline-item:focus {
  /* box-shadow: 0 6px 20px rgba(43,124,255,0.18);
  transform: translateY(-3px) scale(1.04);
  border: 2px solid #008066;
  outline: 2px solid var(--primary-color); 
  animation: pulse 0.2s ease-in ;
  outline: 2px solid transparent);
} */



.app-timeline-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.app-timeline-desc {
  font-size: 0.97rem;
  color: #444;
  margin-bottom: 0;
  font-weight: 400;
}

.app-timeline-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #b0b0b0;
  font-size: 1.1rem;
  padding: 32px 0;
  gap: 10px;
}

.app-timeline-container {
  background: white;
  border-radius: 8px;
  border: 1.5px solid whitesmoke;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  padding: 1.2rem;
  max-width: 100%;
  min-width: 940px;
  min-height: 380px;
  max-height: 380px;
  margin: 0 auto 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.app-timeline-header {
  color: #005a4f;
  font-size: 1.2rem;
  padding-bottom: 10px;
  display: flex;
  align-items: center;
}

.app-timeline-header h2 {
  color: var(--primary-color);
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0;
}

.app-timeline-dot-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  min-height: 18px;
}

.app-timeline-dots-wrapper {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  position: relative;
  z-index: 1;
  width: 100%;
  transition: transform 0.5s ease-in-out;
}

.app-timeline-dot-container {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  width: 100%;
  position: relative;
  min-height: 90px;
  margin-bottom: 1.3rem;
  overflow: hidden;
  padding: 0 20px;
}
.app-timeline-horizontal-line {
  position: absolute;
  left: 20px;
  right: 20px;
  top: 78%;
  height: 4px;
  background: var(--primary-color);
  border-radius: 2px;
  z-index: 0;
  transform: translateY(-50%);
}
.app-timeline-dot-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  width: 150px;
  height: 80px;
  position: relative;
  z-index: 1;
  background: transparent;
}
.app-timeline-dot-date {
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 8px;
  color: var(--primary-color);
  background: transparent;
  border-radius: 6px 6px 0 0;
  padding: 2px 8px 2px 8px;
  transition: background 0.2s, color 0.2s;
  min-height: 27px;
}
.app-timeline-dot-date.selected {
  background: var(--primary-color);

  font-weight: 700;
  color: #fff;
}
.app-timeline-dot {
  width: 22px;
  height: 22px;
  background: var(--primary-color);
  border-radius: 50%;
  border: 4px solid var(--primary-color);
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  
  cursor: pointer;
  transition: background 0.2s, border 0.2s;
  margin-bottom: 10px;
  z-index: 2;
}

.app-timeline-dot.selected {
  background: linear-gradient(135deg, var(--primary-color) 60%, #008066 100%);
  border: 4px solid #fff;
  box-shadow: 0 0 8px 3px #007a69, 0 2px 8px var(--primary-color);
}
.app-timeline-dot.selected:hover  {
  box-shadow: 0 0 20px 3px #007a69, 0 2px 8px var(--primary-color);
}

.app-timeline-nav {
  list-style: none;
  margin: 0 ;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  background: whitesmoke;
  border: 1px solid var(--border-color);
  border-bottom: 2px solid darkgrey;
  padding: 0.7rem 0.5rem 0.7rem 0.5rem;
  /* margin-bottom: 1.5rem; */
  border-radius: 6px;
  
  gap: 0.7rem;
}

.timeline-nav-btn {
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 50%;
  padding: 0;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  outline: none;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  height: 30px;
  width: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-nav-btn:hover:not(:disabled) {
  background: var(--primary-color);
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.timeline-nav-btn:disabled {
  padding: 0;
  display: flex;
  pointer-events: none;
  background-color: #005a4f!important;
  height: 30px;
  width: 30px;
  color: white;
  filter: opacity(0.5) grayscale(95%);
  font-size: 0.8rem;
}
.timeline-nav-buttons {
  display:flex;
  flex-direction: row;
  align-items: center;
  margin: 0.5rem 0;
  justify-content: left;
  gap: 0.2rem;
  background: white;
  border-radius: 25px;
  list-style: none;
  padding: 0.25rem 0.25rem;
  box-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

.timeline-nav-indicator {
  font-size: 0.8rem;
  color: var(--primary-color);
  font-weight: 800;
  margin: 0 0.7rem;
}

.app-timeline-card-row {
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
  position: relative;
  width: 100%;
  overflow: hidden;
}

.app-timeline-item {
  display: flex;
  align-items: flex-start;
  border: 1.5px solid var(--border-color);
  background: white;
  border-radius: 8px;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.4)!important;
  transition: transform 0.2s ease-in-out !important;
  border-top: 6px solid var(--primary-color);
  flex-direction: column;
  justify-content: flex-start;
  line-height: 1.5em;
  max-width: 300px;
  min-width: 300px;
  min-height: 90px;
  max-height: 140px;
  text-align: left;
  z-index: 0;
  position: absolute;
  left: 0;
  transition: transform 0.3s ease-in-out;
}
.app-timeline-item:hover {
  transform: translate(-5px, -5px);
  box-shadow: 4px 4px 15px rgba(0,0,0,0.4)!important;
}
.app-timeline-content {
  width: 100%;
  padding: 0.75rem;
}
.app-timeline-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  text-align: left;
  letter-spacing: 0.01em;
  width: 95%;
  margin: 0.25rem 0 0.5rem 0;
}

.app-timeline-date {
  display: flex;
  flex-direction: column;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  position: relative;
  overflow-y: auto;
  text-align: left;
  padding: 0.25rem 0rem;
  width: 95%;
  font-size: 0.85rem;
  font-weight: 400;
  width: 95%;
  margin: 0;
  color: black;
}

.app-timeline-dot-date:hover {
  translate: (-2px, -2px);
  box-shadow: 0 0 3px 1px #007a69, 0 2px 8px var(--primary-color);
}

.app-timeline-desc {
  color:black;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0;
  text-align: left;
  width: 95%;
  word-wrap: break-word;
}
.app-timeline-status {
  font-size: 0.92rem;
  color: var(--primary-color);
  font-weight: 600;
  margin-top: 0.2rem;
}

.app-timeline-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
  color: #aaa;
  font-size: 1.1rem;
}

:root {
  --primary-color: #005a4f;
}

@keyframes pulse {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity:1;
  }
}.video-conference {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  background-color: #f0f0f0;
  border-radius: 8px;
}

.video-conference__video {
  width: 100%;
  max-width: 640px;
  height: auto;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-bottom: 10px;
}

.video-conference__button {
  padding: 10px 20px;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin: 5px;
}

.video-conference__button:hover {
  background-color: #218838;
}

.video-conference__error {
  color: red;
  margin-top: 10px;
}.screen-share {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  background-color: #f0f0f0;
  border-radius: 8px;
}

.screen-share__video {
  width: 100%;
  max-width: 640px;
  height: auto;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-bottom: 10px;
}

.screen-share__button {
  padding: 10px 20px;
  background-color: #ffc107;
  color: black;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin: 5px;
}

.screen-share__button:hover {
  background-color: #e0a800;
}

.screen-share__error {
  color: red;
  margin-top: 10px;
}.ollama-integration {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  background-color: #f0f0f0;
  border-radius: 8px;
}

.ollama-integration__input {
  width: 100%;
  max-width: 400px;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.ollama-integration__button {
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.ollama-integration__button:hover {
  background-color: #0056b3;
}

.ollama-integration__response {
  margin-top: 20px;
  padding: 10px;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  white-space: pre-wrap;
}.gen-chat-dialog__container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border: 1px solid #ccc;
  padding: 20px;
  z-index: 1000;
  width: 400px;
  max-height: 600px;
  overflow-y: auto;
}

.gen-chat-dialog__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.gen-chat-dialog__messages {
  margin-bottom: 10px;
}

.gen-chat-dialog__message {
  margin: 5px 0;
  padding: 10px;
  border-radius: 5px;
}

.gen-chat-dialog__message--user {
  background: #e6f7ff;
  text-align: right;
}

.gen-chat-dialog__message--bot {
  background: #f0f0f0;
  text-align: left;
}

.gen-chat-dialog__input {
  display: flex;
}

.gen-chat-dialog__input input {
  flex: 1;
  margin-right: 10px;
}.landing-container {
  width: 100%;
  height: 100vh;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  font-family: var(--genad-font-family);
}

.landing-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: blur(8px);
  transform: scale(1.1);
  z-index: 1;
}

.landing-background--dynamic {
  background-image: var(--wallpaper-url);
}

.landing-content {
  position: relative;
  z-index: 2;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.85);
  padding: 3rem 4rem 0.5rem 4rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  max-width: 90%;
  width: 500px;
  backdrop-filter: blur(5px);
  animation: fadeIn 0.8s ease-in-out;
}

.landing-logo {
  margin-bottom: 2.5rem;
}



/* .landing-logo h1 {
  font-size: 3rem;
  margin: 0;
  color: #008066;
  font-weight: 900;
  letter-spacing: -1px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
} */

.landing-logo p {
  font-size: 1.6rem;
  color: #555;
  margin-top: 0.5rem;
}

.landing-logo p2 {
  font-size: 0.9rem;
  color: #555;
  margin-top: 0.5rem;
}
.landing-logo h1 {
  font-size: 3.8rem;
  color: var(--primary-color);
  margin-block: 0;
  margin-inline: 0;
  font-style: italic;
  font-weight: 900;
  text-shadow: 3px 3px 10px rgba(2,70,11,0.6);
  font-family: var(--genad-font-family);
}

.landing-buttons {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.landing-button {
  padding: 1.2rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.tickets-button {
  background-color: #005a4f;
}

.tickets-button:hover {
  background-color: #00483f;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 90, 79, 0.3);
}

.workspace-button {
  background-color: #2c3e50;
}

.workspace-button:hover {
  background-color: #1a2530;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(44, 62, 80, 0.3);
}

.landing-button svg {
  font-size: 1.4rem;
}

.landing-footer{
    margin-top: 10px;
}
.landing-poweredBy-container  {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content:right;
    

  }
  
  .landing-logo-poweredBy img{
    position: relative;
    ;
    bottom: 0px;
    right: 0px;
    width: 32px;
    height: auto;
    aspect-ratio: 83/64;
  }
  
  .landing-poweredBy {
    position: relative;
    color: var(--primary-color);
    right: 0px;
    height: 30px;
    line-height: 30px;
    font-size: 1rem;
  }
  .landing-poweredBy-string{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: absolute;
    bottom: 0px;
    right: 20px;
    width: 220px;
    height: 40px;
    color: var(--primary-color);
    font-size: 14px;
  }
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsividade */
@media (max-width: 768px) {
  .landing-content {
    padding: 2rem;
    width: 85%;
  }
  
  .landing-button {
    padding: 1rem 1.5rem;
  }
}

@media (max-width: 520px) {
  .landing-logo h1 {
    font-size: 2.4rem;
  }
}

@media (max-width: 480px) {
  .landing-content {
    padding: 1.5rem;
    width: 90%;
  }
  
  .landing-logo p {
    font-size: 1rem;
  }
  
  .landing-button {
    padding: 0.8rem 1.2rem;
    font-size: 1rem;
  }
}
/* Settings Page Styles */
.settings-container {
  max-width: 100vw;
  width: 100%;
  padding: 20px;
  background-color: #f8f9fa;
  min-height: 100vh;
}

/* Header */
.settings-header {
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid #e9ecef;
}

.settings-header h1 {
  color: #2c3e50;
  font-size: 2.5rem;
  font-weight: 600;
  margin: 0;
  text-align: center;
}

/* Navigation Tabs */
.settings-tabs {
  display: flex;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  overflow: hidden;
}

.settings-tabs button {
  flex: 1;
  padding: 15px 20px;
  border: none;
  background-color: #ffffff;
  color: #6c757d;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
}

.settings-tabs button:hover {
  background-color: #f8f9fa;
  color: #495057;
}

.settings-tabs button.active {
  background-color: #008066;
  color: #ffffff;
  border-bottom-color: #007A69;
}

.settings-tabs button:first-child {
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

.settings-tabs button:last-child {
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}

/* Content Area */
.settings-content {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.tab-content {
  padding: 30px;
}

.tab-content h2 {
  color: #2c3e50;
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tab-content h2 svg {
  color: #008066;
}

/* Setting Groups */
.setting-group {
  margin-bottom: 25px;
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 6px;
  border-left: 4px solid #008066;
}

.setting-group label {
  display: block;
  font-weight: 500;
  color: #495057;
  margin-bottom: 8px;
  cursor: pointer;
}

.setting-group input[type="checkbox"] {
  margin-right: 10px;
  transform: scale(1.2);
}

.setting-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 1rem;
  background-color: #ffffff;
  transition: border-color 0.3s ease;
}

.setting-group select:focus {
  outline: none;
  border-color: #008066;
  box-shadow: 0 0 0 2px rgba(0, 128, 102, 0.25);
}

.setting-group select:disabled {
  background-color: #e9ecef;
  color: #6c757d;
  cursor: not-allowed;
}

/* Buttons */
.cleanup-button {
  background-color: #dc3545;
  color: #ffffff;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cleanup-button:hover:not(:disabled) {
  background-color: #c82333;
  transform: translateY(-1px);
}

.cleanup-button:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
  transform: none;
}

.recheck-button {
  background-color: #28a745;
  color: #ffffff;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  font-size: 0.9rem;
  cursor: pointer;
  margin-left: 15px;
  transition: background-color 0.3s ease;
}

.recheck-button:hover:not(:disabled) {
  background-color: #218838;
}

.recheck-button:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
}

/* Status Indicators */
.ollama-status {
  padding: 15px;
  background-color: #e9ecef;
  border-radius: 6px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  font-weight: 500;
}

.ollama-status .checking {
  color: #ffc107;
  margin-left: 10px;
}

.ollama-status .available {
  color: #28a745;
  margin-left: 10px;
}

.ollama-status .unavailable {
  color: #dc3545;
  margin-left: 10px;
}

.error-details {
  font-size: 0.9rem;
  color: #6c757d;
  margin-top: 5px;
  font-weight: normal;
}

.last-run-info {
  margin-top: 15px;
  padding: 10px;
  background-color: #d1ecf1;
  border-radius: 4px;
  color: #0c5460;
  font-size: 0.9rem;
}

/* Feedback Messages */
.feedback {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 15px 20px;
  border-radius: 6px;
  color: #ffffff;
  font-weight: 500;
  z-index: 1000;
  animation: slideIn 0.3s ease;
}

.feedback.success {
  background-color: #28a745;
}

.feedback.error {
  background-color: #dc3545;
}

.feedback.info {
  background-color: #17a2b8;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .settings-container {
    padding: 15px;
  }
  
  .settings-tabs {
    flex-direction: column;
  }
  
  .settings-tabs button {
    border-radius: 0;
    border-bottom: 1px solid #e9ecef;
  }
  
  .settings-tabs button:first-child {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom-left-radius: 0;
  }
  
  .settings-tabs button:last-child {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    border-top-right-radius: 0;
    border-bottom: none;
  }
  
  .tab-content {
    padding: 20px;
  }
  
  .settings-header h1 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .settings-container {
    padding: 10px;
  }
  
  .tab-content {
    padding: 15px;
  }
  
  .settings-header h1 {
    font-size: 1.8rem;
  }
  
  .cleanup-button {
    width: 100%;
    justify-content: center;
  }
}/* Knowledge Base Component Styles - BEM Methodology */

/* Estatísticas */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-top: 15px;
}

.stat-item {
  text-align: center;
  padding: 15px;
  background: #ffffff;
  border-radius: 6px;
  border: 1px solid #e9ecef;
}

.stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: #008066;
  margin-bottom: 5px;
}

.stat-label {
  display: block;
  font-size: 0.9rem;
  color: #6c757d;
  font-weight: 500;
}

/* Formulários */
.search-form {
  margin-bottom: 20px;
}

.search-input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ced4da;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
  margin-bottom: 15px;
  transition: border-color 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: #008066;
  box-shadow: 0 0 0 2px rgba(0, 128, 102, 0.25);
}

.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn--primary {
  background-color: #008066;
  color: #ffffff;
}

.btn--primary:hover:not(:disabled) {
  background-color: #007A69;
  transform: translateY(-1px);
}

.btn--primary:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
  transform: none;
}

.btn--secondary {
  background-color: #6c757d;
  color: #ffffff;
}

.btn--secondary:hover:not(:disabled) {
  background-color: #5a6268;
}

/* Abas internas da Knowledge Base */
.knowledge-base__tabs {
  margin-top: 25px;
}

.tabs-nav {
  display: flex;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  overflow: hidden;
}

.tab-btn {
  flex: 1;
  padding: 12px 20px;
  border: none;
  background-color: #ffffff;
  color: #6c757d;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.tab-btn:hover {
  background-color: #f8f9fa;
  color: #495057;
}

.tab-btn--active {
  background-color: #008066;
  color: #ffffff;
  border-bottom-color: #007A69;
}

.tabs-content {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
}

/* Formulários específicos */
.session-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 500;
  color: #495057;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 10px;
  padding-left: 45px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #008066;
  box-shadow: 0 0 0 2px rgba(0, 128, 102, 0.25);
}

.form-actions {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.sessions-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.sessions-header h3 {
  margin: 0;
  color: #2c3e50;
  font-size: 1.2rem;
  font-weight: 600;
}

/* Estatísticas */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.stat-item {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  border: 1px solid #dee2e6;
}

.stat-value {
  font-size: 2rem;
  font-weight: bold;
  color: #008066;
  margin-bottom: 5px;
}

.stat-label {
  color: #6c757d;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Resultados de pesquisa */

/* Search Results */
.search-results {
  margin-top: 2rem;
}

.search-results h4 {
  margin: 0 0 1rem 0;
  color: #2c3e50;
  font-size: 1.2rem;
  font-weight: 600;
}

.result-card {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.result-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.result-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.severity-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.severity--critical {
  background: #dc3545;
  color: white;
}

.severity--high {
  background: #fd7e14;
  color: white;
}

.severity--medium {
  background: #ffc107;
  color: #212529;
}

.severity--low {
  background: #28a745;
  color: white;
}

.error-type {
  font-weight: 600;
  color: #495057;
  background: #e9ecef;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
}

.similarity-score {
  margin-left: auto;
  font-weight: 600;
  color: #667eea;
  background: rgba(102, 126, 234, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
}

.result-content {
  margin-top: 1rem;
}

.error-message {
  font-family: 'Courier New', monospace;
  background: #f1f3f4;
  padding: 1rem;
  border-radius: 4px;
  border-left: 4px solid #667eea;
  margin: 0 0 0.5rem 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

.file-path {
  font-family: 'Courier New', monospace;
  color: #6c757d;
  font-size: 0.9rem;
  margin: 0 0 1rem 0;
}

.solution-preview {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  border-radius: 6px;
  padding: 1rem;
  margin-top: 1rem;
}

.solution-preview h5 {
  margin: 0 0 0.5rem 0;
  color: #155724;
  font-size: 1rem;
}

.solution-preview p {
  margin: 0 0 0.5rem 0;
  color: #155724;
  line-height: 1.4;
}

.solution-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: #155724;
  opacity: 0.8;
  flex-wrap: wrap;
}

/* Listas e cartões */
.sessions-list {
  display: grid;
  gap: 1rem;
}

.session-card {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.session-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
  border-color: #008066;
}

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

.session-header h4 {
  margin: 0;
  color: #495057;
  font-size: 1.2rem;
}

.session-date {
  font-size: 0.9rem;
  color: #6c757d;
  white-space: nowrap;
}

.session-description {
  margin: 0 0 1rem 0;
  color: #6c757d;
  line-height: 1.4;
}

.session-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
  color: #6c757d;
  flex-wrap: wrap;
}

/* Loading State */
.loading {
  text-align: center;
  padding: 2rem;
  color: #6c757d;
  font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .knowledge-base {
    padding: 1rem;
  }
  
  .knowledge-base__header h2 {
    font-size: 2rem;
  }
  
  .tabs-nav {
    flex-direction: column;
  }
  
  .tab-btn {
    text-align: left;
  }
  
  .tabs-content {
    padding: 1rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .result-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .similarity-score {
    margin-left: 0;
  }
  
  .sessions-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .session-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .solution-meta {
    flex-direction: column;
    gap: 0.25rem;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .knowledge-base__header {
    padding: 1rem;
  }
  
  .knowledge-base__header h2 {
    font-size: 1.5rem;
  }
}/* IT Team styles */
.team-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.add-technician-button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
}

.add-technician-button:hover {
  background-color: #0056b3;
}

.add-technician-button svg {
  margin-right: 8px;
}

.add-technician-form {
  background-color: #f0f8ff;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.add-technician-form h3 {
  color: #007bff;
  margin-top: 0;
  margin-bottom: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

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

.form-actions {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.form-actions .save-button,
.form-actions .cancel-button {
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
}

.form-actions .save-button {
  background-color: #28a745;
  color: white;
  border: none;
}

.form-actions .save-button:hover {
  background-color: #218838;
}

.form-actions .cancel-button {
  background-color: #6c757d;
  color: white;
  border: none;
}

.form-actions .cancel-button:hover {
  background-color: #5a6268;
}

.form-actions button svg {
  margin-right: 8px;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background-color: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}

.modal-content h3 {
  margin-top: 0;
  color: #007bff;
  margin-bottom: 20px;
}

.modal-content .search-input {
  width: calc(100% - 20px);
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
}

.ad-members-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border: 1px solid #eee;
  border-radius: 4px;
  max-height: 300px;
  overflow-y: auto;
}

.ad-members-list li {
  display: flex;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.ad-members-list li:last-child {
  border-bottom: none;
}

.ad-members-list li:hover {
  background-color: #f0f0f0;
}

.ad-members-list li .member-photo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 15px;
  object-fit: cover;
  border: 1px solid #ddd;
}

.ad-members-list li div p {
  margin: 0;
  font-size: 14px;
}

.ad-members-list li div p:first-child {
  font-weight: bold;
  color: #333;
}

.loading-ad {
  text-align: center;
  padding: 20px;
  color: #666;
}

.modal-actions {
  margin-top: 20px;
  text-align: right;
}

.modal-actions .cancel-button {
  background-color: #6c757d;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.modal-actions .cancel-button:hover {
  background-color: #5a6268;
}

.technicians-list {
  margin-top: 30px;
}

.technicians-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.technician-card {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.technician-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.technician-header h4 {
  margin: 0;
  color: #007bff;
}

.technician-status .status-active {
  color: #28a745;
  font-weight: bold;
}

.technician-status .status-inactive {
  color: #dc3545;
  font-weight: bold;
}

.technician-status svg {
  margin-right: 5px;
}

.technician-details p {
  margin: 5px 0;
  font-size: 14px;
  color: #555;
}

.technician-actions {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.technician-actions .edit-button,
.technician-actions .delete-button {
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
}

.technician-actions .edit-button {
  background-color: #ffc107;
  color: white;
  border: none;
}

.technician-actions .edit-button:hover {
  background-color: #e0a800;
}

.technician-actions .delete-button {
  background-color: #dc3545;
  color: white;
  border: none;
}

.technician-actions .delete-button:hover {
  background-color: #c82333;
}

.technician-actions button svg {
  margin-right: 5px;
}

.loading {
  text-align: center;
  padding: 50px;
  font-size: 18px;
  color: #666;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .settings-tabs {
    flex-direction: column;
  }

  .tab-button {
    margin-right: 0;
    margin-bottom: 5px;
    border-radius: 5px;
  }

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

  .team-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .add-technician-button {
    width: 100%;
    margin-top: 15px;
    justify-content: center;
  }

  .modal-content {
    width: 95%;
    padding: 20px;
  }
}/* Ollama Integration styles */
.ollama-status {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.ollama-status .checking {
  color: #ffc107;
  margin-left: 10px;
}

.ollama-status .available {
  color: #28a745;
  margin-left: 10px;
}

.ollama-status .unavailable {
  color: #dc3545;
  margin-left: 10px;
}

.ollama-status svg {
  margin-right: 5px;
}

.ollama-status .recheck-button {
  background-color: #007b66;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  margin-left: 20px;
  margin-top: 15px;
  margin-bottom: 15px;
  transition: background-color 0.3s ease;
}

.ollama-status .recheck-button:hover {
  background-color: #006666;
  color: white;
}

.ollama-status .error-details {
  font-size: 12px;
  color: #dc3545;
  margin-top: 5px;
}