:root {
  --sidebar-width: 230px;
  --sidebar-collapsed-width: 75px;
  --bg-light: #f8fafc;
  --border-color: #e2e8f0;

  /* Cores principais do tema — padrão de fábrica Thotus (todo tenant sem
     Tenant.primary_color cai aqui; não é cor exclusiva de nenhum cliente,
     apesar do nome antigo do comentário aqui até 26/07/2026). */
  --pri: #1e4bb6; /* Azul primário do produto */
  --sec: #0d6efd; /* Azul secundário */
  --acc: #00c9a7; /* Cor de destaque (accent) */
  --muted: #64748b; /* Cor de texto atenuado */
  --txt: #0f172a; /* Cor principal de texto */

  --font-family:
    "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --bs-body-font-family: var(--font-family);
  --bs-font-sans-serif: var(--font-family);

  /* Gradiente do Banner */
  --gradient-start: #0052cc;
  --gradient-middle: #002d80;
  --gradient-end: #001a4d;
}
body {
  background-color: var(--bg-light);
  font-family: var(--font-family);
  height: 100vh;
  /* overflow: hidden; */
}
a {
  text-decoration: none;
  color: black;
}
a:hover {
  transform: scale(1.03);
  transition: all 0.3s;
}

/* ── TOPBAR ── */
header {
  background: linear-gradient(
    135deg,
    var(--gradient-start) 0%,
    var(--gradient-middle) 60%,
    var(--gradient-end) 100%
  );
  padding: 12px 30px;
  display: flex;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1030;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  min-height: 70px;
}
.top-info {
  display: flex;
  flex-direction: column;
}
.page-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.page-subtitle {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}
.search-top {
  flex: 1;
  max-width: 450px;
  position: relative;
  margin-left: auto;
  margin-right: 20px;
}
.search-top input {
  width: 100%;
  padding: 8px 16px 8px 38px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  font-size: 0.8125rem;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  outline: none;
  transition: all 0.2s;
}
.search-top input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}
.search-top input:focus {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}
.search-top .si {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}
.top-icons {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-left: auto;
}
.date-chip {
  font-size: 0.75rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  padding: 5px 15px;
  white-space: nowrap;
  font-weight: 500;
}
.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  transition: all 0.2s;
}
.icon-btn:hover {
  background: #e2e8f0;
  color: var(--pri);
}
.icon-btn .dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
  border: 2px solid #fff;
}

/* Sidebar & Layout */
.sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  background: linear-gradient(
    135deg,
    var(--gradient-start) 0%,
    var(--gradient-middle) 60%,
    var(--gradient-end) 100%
  );
  z-index: 1050;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 4px 0 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.sidebar.collapsed {
  width: var(--sidebar-collapsed-width);
}

.sidebar-header {
  padding: 1.5rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  min-height: 80px;
  flex-shrink: 0; /* nao comprime o logo em telas baixas (evita sobrepor o menu) */
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  overflow: hidden;
  filter: brightness(0) invert(1);
}

/* Em telas baixas, o MENU rola internamente em vez de comprimir o header/logo. */
.sidebar {
  /* impede qualquer arrasto lateral do conteudo do menu */
  overflow: visible;
}
.sidebar .nav-pills {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  /* trava o eixo horizontal: so rola de cima p/ baixo (sem "arrastar pro lado").
     Sem isto, definir overflow-y:auto faz o navegador promover overflow-x p/ auto. */
  overflow-x: hidden;
  margin-bottom: 0 !important;
}
.sidebar .nav-pills::-webkit-scrollbar {
  width: 6px;
}
.sidebar .nav-pills::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 3px;
}

.logo-full {
  width: 100px;
  height: auto;
  transition: opacity 0.2s;
  margin: 0 auto;
}

.logo-mini {
  width: 32px;
  height: auto;
}

.sidebar.collapsed .logo-full {
  display: none !important;
}

.sidebar.collapsed .logo-mini {
  display: block !important;
}

.btn-toggle-sidebar {
  position: absolute;
  right: -18px;
  top: 22px;
  background: #0d6efd;
  border: 2px solid var(--bg-light);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 1050;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-toggle-sidebar:hover {
  background: #084298;
  transform: scale(1.1);
}

.sidebar.collapsed .sidebar-header {
  padding: 1.5rem 0;
  justify-content: center;
}

.sidebar.collapsed .btn-toggle-sidebar {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.15) !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15) !important;
}

.sidebar.collapsed .btn-toggle-sidebar i {
  transform: rotate(180deg);
  color: #0d6efd !important;
}


.main-content {
  margin-left: var(--sidebar-width);
  height: 100vh;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  background-color: var(--bg-light);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.main-content.sidebar-collapsed {
  margin-left: var(--sidebar-collapsed-width);
}

.page-content {
  padding: 30px;
  padding-bottom: 100px; /* Espaço para o footer fixo */
  overflow-y: auto;
  flex-grow: 1;
}

.sidebar .nav-link {
  color: rgba(255, 255, 255, 0.75);
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
  transition: all 0.2s;
  font-size: 0.875rem;
}

.sidebar .nav-link:hover {
  color: white;
  background-color: rgba(255, 255, 255, 0.1);
}

.sidebar .nav-link.active {
  color: #ffffff !important;
  background-color: rgba(255, 255, 255, 0.2) !important;
  border-right: 4px solid #0d6efd;
}

.sidebar .nav-link i {
  margin-right: 12px;
  font-size: 1.25rem;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
  font-size: 0.875rem;
}

.sidebar.collapsed .nav-link {
  padding: 0.8rem 0;
  justify-content: center;
}

.sidebar.collapsed .nav-link i {
  margin-right: 0;
}

.sidebar.collapsed .nav-link span,
.sidebar.collapsed .nav-link .badge {
  display: none !important;
}

.user-profile-box {
  overflow: hidden;
  transition: all 0.2s;
}

.sidebar.collapsed .user-profile-box {
  justify-content: center;
  padding: 0 !important;
}

.sidebar.collapsed .name-label,
.sidebar.collapsed .btn-profile span,
.sidebar.collapsed .btn-logout span {
  display: none !important;
}

.sidebar.collapsed .btn-profile,
.sidebar.collapsed .btn-logout {
  padding: 0.5rem 0;
  border: none;
  background: transparent;
}

.sidebar.collapsed .btn-profile:hover,
.sidebar.collapsed .btn-logout:hover {
  background: rgba(255, 255, 255, 0.1);
}

.sidebar.collapsed .btn-profile i,
.sidebar.collapsed .btn-logout i {
  font-size: 1.25rem;
}

.sidebar.collapsed .p-3 {
  padding-left: 0 !important;
  padding-right: 0 !important;
  text-align: center;
}

.btn-mobile-menu {
  display: none;
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  z-index: 1049; /* logo abaixo do .sidebar (1050) */
  opacity: 0;
  transition: opacity 0.25s ease;
}

.sidebar-backdrop.show {
  display: block;
  opacity: 1;
}

@media (max-width: 992px) {
  .sidebar {
    margin-left: calc(-1 * var(--sidebar-width));
  }

  .sidebar.active {
    margin-left: 0;
  }

  .main-content {
    margin-left: 0;
  }

  /* Botao hamburguer no header: unico jeito de abrir o menu no celular
     (o botao antigo fica DENTRO do sidebar, escondido junto com ele). */
  .btn-mobile-menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.3rem;
    margin-right: 12px;
    flex-shrink: 0;
  }
}

/* Cards */
.card {
  border-radius: 12px;
  border: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.stats-card {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stats-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
}

/* barra de pesquisa */
.search {
  background-color: #2e3092;
}

.search:focus {
  background-color: #2e3092;
}

.search::placeholder {
  color: white;
}

/* Acesso Rápido */
.card-fast-access {
  background-color: #2e3092 !important;
  border-radius: 12px !important;
}

/* CKEditor Custom Styles */
.ck-editor__editable_inline {
  min-height: 250px !important;
}

.ck.ck-editor__top .ck-toolbar {
  border-top-left-radius: 12px !important;
  border-top-right-radius: 12px !important;
}

.ck-editor__editable_inline {
  border-bottom-left-radius: 12px !important;
  border-bottom-right-radius: 12px !important;
}
/* Privacy Badge Toggle */
.badge-toggle-privacy {
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.badge-toggle-privacy:hover {
  opacity: 0.85;
  transform: scale(1.05);
}

/* CKEditor Content View Styles */
.ck-content {
  line-height: 1.6;
  word-wrap: break-word;
  overflow-wrap: break-word;
  overflow: hidden; /* Forçar contenção total */
  position: relative;
  width: 100%;
}

/* Forçar que QUALQUER elemento interno respeite a largura do box */
.ck-content > * {
  max-width: 100% !important;
  overflow-wrap: break-word;
}

.ck-content img {
  max-width: 100%;
  height: auto !important;
  border-radius: 8px;
  margin: 0.5rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: inline-block;
}

.ck-content figure {
  margin: 1rem 0;
  display: block; /* Mudar de table para block para melhor contenção */
  clear: both;
  text-align: center;
  width: auto !important; /* Deixar o max-width do container mandar */
  max-width: 100% !important;
}

/* Ajuste para imagens alinhadas lateralmente pelo CKEditor */
.ck-content .image-style-side {
  float: right;
  margin-left: 1.5rem;
  max-width: 50% !important; /* Limitar float lateral a 50% da largura */
}

.ck-content figure figcaption {
  background-color: #f8fafc;
  color: #64748b;
  font-size: 0.75rem;
  padding: 0.5rem;
  border-radius: 0 0 8px 8px;
  border-top: 1px solid #e2e8f0;
}

.ck-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.ck-content table td,
.ck-content table th {
  border: 1px solid var(--border-color);
  padding: 8px;
}

/* ── FOOTER ── */
.app-footer {
  background: #fff;
  padding: 4px 20px;
  border-top: 1px solid #e2e8f0;
  position: fixed;
  bottom: 0;
  left: var(--sidebar-width, 230px); /* Começa após o sidebar */
  width: calc(
    100% - var(--sidebar-width, 230px)
  ); /* Largura exata do conteúdo */
  z-index: 1000;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.06);
  box-sizing: border-box;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar.collapsed ~ .app-footer {
  left: var(--sidebar-collapsed-width, 75px);
  width: calc(100% - var(--sidebar-collapsed-width, 75px));
}

.footer-logo {
  width: 120px;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.footer-logo-link {
  display: inline-block;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.footer-logo-link:hover {
  opacity: 0.75;
}

.footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}

.footer-left,
.footer-center,
.footer-right {
  display: flex;
  align-items: center;
  min-width: 0;
}

.footer-left {
  flex: 1;
  justify-content: flex-start;
  gap: 10px;
}

.footer-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-center .footer-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-right {
  flex: 1;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 4px;
  text-align: right;
}

.footer-center .footer-nav a {
  font-size: 0.825rem;
  color: #64748b;
  text-decoration: none;
  font-weight: 500;
}

.footer-center .footer-nav a:hover {
  color: #3b82f6;
}

.footer-center .separator {
  color: #e2e8f0;
}

.footer-status {
  display: flex;
  align-items: center;
  font-size: 0.6875rem;
  gap: 14px;
  color: #64748b;
}

/* Versão do produto no rodapé. Fonte única: o arquivo VERSION da raiz, que
   chega pelo context processor. Em dev/homologação o ambiente aparece
   destacado, para ninguém mexer achando estar em outro lugar. */
.footer-status .version {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;
  white-space: nowrap;
}

.footer-status .version-amb {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  color: #b45309;
}

.dot-online {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #22c55e;
  border-radius: 50%;
  margin-right: 4px;
}

.copyright {
  font-size: 0.6875rem;
  color: #94a3b8;
}

.debug-info {
  font-size: 0.625rem;
  color: #94a3b8;
}

/* Responsividade */
@media (max-width: 1200px) {
  .app-footer {
    left: 0;
    width: 100%;
    padding: 6px 15px;
  }

  .footer-container {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }

  .footer-center {
    position: static;
    transform: none;
    flex: none;
    justify-content: center;
  }

  .footer-right {
    align-items: center;
    text-align: center;
    gap: 2px;
  }
}

/* Celular: footer compacto, NÃO fixo (fica no fim do conteúdo, não cobre a tela) */
@media (max-width: 768px) {
  .app-footer {
    position: static;
    box-shadow: none;
    padding: 8px 12px;
  }

  .footer-container {
    gap: 4px;
  }

  .footer-logo {
    width: 88px;
  }

  .footer-left {
    flex: none;
    justify-content: center;
  }

  .footer-center .footer-nav {
    gap: 4px 10px;
  }

  .footer-center .footer-nav a {
    font-size: 0.75rem;
  }

  .footer-status {
    gap: 10px;
    font-size: 0.6562rem;
  }

  .copyright {
    font-size: 0.625rem;
  }

  /* Info de debug (tempo de render) some no celular — não interessa ao usuário */
  .debug-info {
    display: none;
  }

  /* footer estático dispensa o espaço reservado do rodapé fixo
     (classe repetida = mais especificidade que a regra base de 64px) */
  .main-content.main-content {
    padding-bottom: 16px;
  }

  /* ── Tabela de chamados vira CARTÕES no celular ──────────────
     Cada chamado ocupa um cartão empilhado com rótulos; nada mais
     vaza pro lado (some o "arrastar o dedo"). No desktop nada muda. */
  .datatable-chamados thead {
    display: none;
  }
  .datatable-chamados,
  .datatable-chamados tbody,
  .datatable-chamados tr,
  .datatable-chamados td {
    display: block !important;
    width: 100% !important;
  }
  .datatable-chamados tr {
    margin: 0 0 12px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 4px 14px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  }
  .datatable-chamados td {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0 !important;
    border-bottom: 1px solid #f1f5f9;
    text-align: right;
    min-height: 0;
    min-width: 0;
    /* Bootstrap .text-nowrap (Solicitante/Responsável) força white-space:nowrap
       e é HERDADO pelos filhos (nome/data) — sem isso o nome empurra a linha
       inteira pra fora da tela. No cartão mobile, deixamos o texto quebrar. */
    white-space: normal !important;
  }
  .datatable-chamados td > * {
    min-width: 0;
  }
  /* nome (avatar + texto) precisa poder encolher/quebrar dentro do cartão */
  .datatable-chamados td[data-label] .text-truncate {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    text-align: right;
  }
  .datatable-chamados tr td:last-child {
    border-bottom: none;
  }
  .datatable-chamados td[data-label]::before {
    content: attr(data-label);
    font-weight: 700;
    color: #64748b;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    flex-shrink: 0;
    text-align: left;
  }
  /* "Assunto" ganha a linha inteira: rótulo em cima, texto embaixo */
  .datatable-chamados td[data-label="Assunto"] {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 3px;
  }
  /* estado vazio (td sem rótulo) volta a centralizar normalmente */
  .datatable-chamados td:not([data-label]) {
    display: block !important;
    text-align: center;
  }
  /* sem rolagem horizontal no wrapper da tabela */
  .table-responsive {
    overflow-x: visible;
  }
}

.main-content {
  padding-bottom: 64px; /* espaço extra para o footer fixo */
}

/* -- PRINT STYLES -- */
@media print {
  html,
  body {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    background: #ffffff !important;
  }

  .sidebar,
  header,
  .app-footer,
  .btn,
  .dropdown,
  .pagination,
  .nav-tabs,
  .no-print,
  .d-print-none,
  .sidebar-backdrop {
    display: none !important;
  }

  .main-content {
    margin-left: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    display: block !important;
  }

  .page-content {
    padding: 0 !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    display: block !important;
  }

  .table-responsive {
    overflow: visible !important;
  }

  .card {
    box-shadow: none !important;
    border: 1px solid #e2e8f0 !important;
  }

  table {
    width: 100% !important;
    border: 1px solid #eee !important;
  }

  th,
  td {
    padding: 8px !important;
    border-bottom: 1px solid #eee !important;
  }

  tr {
    page-break-inside: avoid;
    break-inside: avoid;
  }

  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}

/* ── DATATABLES CUSTOM STYLES ─────────────────── */
.dt-layout-cell.dt-layout-start {
  font-weight: 600;
  margin-left: 40px;
}

.dt-paging-button {
  border-radius: 10px !important;
  background-color: #fff !important;
  color: #0d6efd !important;
  border: 1px solid #dee2e6 !important;
  margin: 0 3px;
  padding: 5px 12px !important;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.dt-paging-button:hover:not(.disabled),
.dt-paging-button.current {
  background-color: #0d6efd !important;
  color: #fff !important;
  border-color: #0d6efd !important;
}

.dt-paging-button.disabled {
  background-color: #f1f3f5 !important;
  color: #adb5bd !important;
  border-color: #dee2e6 !important;
  cursor: not-allowed;
}

/* ── BOOTSTRAP PAGINATION PREMIUM ────────────── */
.pagination .page-link {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #495057;
  border: 1px solid #e9ecef;
  transition: all 0.2s ease;
}

.pagination .page-link:hover {
  background: #0d6efd;
  color: #fff !important;
  border-color: #0d6efd;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(13, 110, 253, 0.15);
}

.pagination .page-item.disabled .page-link {
  background: #f8f9fa;
  color: #dee2e6 !important;
  border-color: #e9ecef;
}

/* ── NAV TABS CUSTOM ─────────────────────────── */
.nav-tabs .nav-link {
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent !important;
  color: #6c757d;
}

.nav-tabs .nav-link.active {
  border-bottom: 3px solid #0d6efd !important;
  color: #0d6efd !important;
  opacity: 1 !important;
}

.nav-tabs .nav-link:hover:not(.active) {
  color: #0d6efd;
  opacity: 0.8;
}

/* ── SELECT2 PREMIUM CUSTOM ──────────────────── */
.select2-container--bootstrap-5 .select2-selection {
  border: none !important;
  background-color: #f8f9fa !important;
  border-radius: 12px !important;
  padding: 10px 15px !important;
  height: auto !important;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.05) !important;
  transition: all 0.2s ease;
}

.select2-container--bootstrap-5
  .select2-selection--single
  .select2-selection__rendered {
  padding-left: 0 !important;
  color: #212529 !important;
  font-size: 0.85rem;
}

.select2-container--bootstrap-5 .select2-dropdown {
  border: none !important;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
  border-radius: 12px !important;
  overflow: hidden;
  z-index: 9999;
}

.select2-container--bootstrap-5 .select2-search__field {
  border-radius: 2px !important;
  border: 2px solid #c7dffc !important; /* bordas destacadas em azul claro pastel */
  padding: 2px !important;
  background-color: #ffffff !important;
  outline: none !important;
  font-size: 0.875rem !important;
  transition:
    border-color 0.2s ease-in-out,
    box-shadow 0.2s ease-in-out !important;
  width: 100% !important;
}

.select2-container--bootstrap-5 .select2-search__field:focus {
  border-color: #0d6efd !important;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15) !important;
  width: 100% !important;
}

.select2-results__option {
  padding: 8px 15px !important;
  font-size: 0.85rem;
}

.select2-container--bootstrap-5 .select2-results__option--highlighted {
  background-color: #e7f1ff !important; /* azul claro transparente no hover */
  color: #0d6efd !important; /* nome do usuário fica azul */
}

.select2-container--bootstrap-5 .select2-results__option[aria-selected="true"] {
  background-color: #f0f7ff !important;
  color: #0d6efd !important;
}

.select2-custom-avatar {
  width: 34px;
  height: 34px;
  background-color: #0d6efd;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.select2-custom-text {
  font-size: 0.875rem;
  font-weight: 500;
}

/* ── UTILITIES ───────────────────────────────── */
.transition {
  transition: all 0.2s ease-in-out;
}

.transition:hover {
  background-color: rgba(248, 249, 250, 1);
  transform: scale(1.002);
}
.object-fit-cover {
  object-fit: cover;
}

/* ── SELECT2 USER MULTIPLE SELECTION PREMIUM (Imagem 2) ── */
.select2-container--bootstrap-5
  .select2-selection--multiple
  .select2-selection__choice {
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 50rem !important;
  padding: 3px 8px 3px 3px !important;
  margin: 3px 4px 3px 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
  font-weight: 500 !important;
  color: #334155 !important;
}

/* Esconder o botão default de remover do select2 se estiver desabilitado (Visualização) */
.select2-container--bootstrap-5.select2-container--disabled
  .select2-selection--multiple
  .select2-selection__choice__remove {
  display: none !important;
}
.select2-container--bootstrap-5.select2-container--disabled
  .select2-selection--multiple
  .select2-selection__choice {
  padding-right: 8px !important;
}

/* Estilo para o botão de remoção 'x' vermelho circular */
.select2-container--bootstrap-5
  .select2-selection--multiple
  .select2-selection__choice__remove {
  background-color: #ef4444 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 50% !important;
  width: 16px !important;
  height: 16px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.625rem !important;
  line-height: 1 !important;
  order: 2 !important;
  margin: 0 0 0 4px !important;
  padding: 0 !important;
  cursor: pointer !important;
  transition: background-color 0.2s ease !important;
}

.select2-container--bootstrap-5
  .select2-selection--multiple
  .select2-selection__choice__remove:hover {
  background-color: #dc2626 !important;
  color: #ffffff !important;
}

.select2-container--bootstrap-5
  .select2-selection--multiple
  .select2-selection__choice__display {
  order: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
}

.select2-user-avatar-pill {
  width: 22px;
  height: 22px;
  background-color: #6c757d;
  color: #ffffff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.5625rem;
  margin-right: 4px;
  flex-shrink: 0;
}

/* Responsividade do Card de Projetos (Listagem) */
@media (max-width: 1300px) {
  .project-footer-info {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 10px;
  }
  .project-stats-info {
    text-align: left !important;
    padding-left: 5px;
  }
}

/* ── REGRAS GLOBAIS DE RESPONSIVIDADE MOBILE ── */
@media (max-width: 768px) {
  header {
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 12px 16px !important;
    gap: 12px !important;
    min-height: auto !important;
  }
  .top-info {
    text-align: left !important;
  }
  .page-subtitle {
    display: none !important; /* Oculta o subtítulo enorme para poupar espaço vertical no mobile */
  }
  .search-top {
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  .top-icons {
    display: none !important; /* Oculta a data chip redundante no mobile */
  }
  .page-content {
    padding: 16px !important; /* Reduz padding lateral de 30px para 16px no mobile, liberando espaço para o container */
    padding-bottom: 80px !important;
  }
}