/*
 * CSS do V3Group sobre o tema Trezo (Tailwind).
 * `style.css` e `tz-custom.css` são cópias do saas/erp - não editar; o que é
 * nosso vem aqui. O build do Tailwind é fechado: classe que não existe no
 * style.css não gera regra. Utilitário que faltar entra na seção abaixo.
 */

/* Fonte remixicon: o style.css do tema desenha com ela as setas do menu lateral
   e o separador do breadcrumb (pseudo-elementos, glifo "\ea6e"). Só woff2/woff -
   o remixicon.css do ERP aponta também para eot/svg/ttf, e arquivo ausente
   referenciado em CSS quebra o collectstatic em produção (ManifestStorage). */
@font-face {
  font-family: "remixicon";
  src: url("../fonts/remixicon.woff2") format("woff2"),
       url("../fonts/remixicon.woff") format("woff");
  font-display: swap;
}

/* Utilitários ausentes no CSS compilado (o próprio ERP usa alguns deles) */
.inline-flex   { display: inline-flex; }
.items-start   { align-items: flex-start; }
.min-w-0       { min-width: 0; }
.select-none   { user-select: none; }
.max-w-xs      { max-width: 20rem; }
.mb-1          { margin-bottom: .25rem; }
.text-red-500  { color: #ef4444; }
.\!text-\[14px\] { font-size: 14px !important; }
.\!text-\[16px\] { font-size: 16px !important; }
.\!text-\[18px\] { font-size: 18px !important; }
.\!text-\[32px\] { font-size: 32px !important; }
.w-\[94vw\]      { width: 94vw; }
.max-w-\[500px\] { max-width: 500px; }

/* Contador dentro da aba (tz-tab-btn) */
.v3-tab-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  font-size: 11px; font-weight: 600; line-height: 1;
}

/* Texto longo em célula de tabela: quebra em vez de alargar a coluna */
.v3-cell-wrap    { max-width: 300px; white-space: normal; }
.v3-cell-wrap-sm { max-width: 200px; white-space: normal; }
.v3-pre-wrap     { white-space: pre-wrap; }

/* Effecti - prazo vencido e duplicata provável na fila de revisão */
.v3-row-overdue > td { background: #fff5f5; }
.dark .v3-row-overdue > td { background: rgba(239, 68, 68, .08); }
.v3-row-duplicate > td:first-child { box-shadow: inset 4px 0 0 #f59e0b; }
@media (width >= 80rem) {
  .xl\:grid-cols-7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }
}

/* Inbox */
.v3-capitalize { text-transform: capitalize; }
.v3-scroll-340 { max-height: 340px; overflow-y: auto; }
.v3-stat-link { transition: transform .15s, box-shadow .15s; }
.v3-stat-link:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0, 0, 0, .06); }
.v3-list-item {
  display: flex; align-items: center; gap: 12px; padding: 11px 4px;
  border-bottom: 1px solid #f3f4f6; transition: background .15s;
}
.v3-list-item:last-child { border-bottom: 0; }
.v3-list-item:hover { background: #f9fafb; }
.dark .v3-list-item { border-bottom-color: #172036; }
.dark .v3-list-item:hover { background: #15203c; }

/* ── Notificações do header (v3-notifications.js) ── */
.v3-notif-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 20px;
  border-bottom: 1px solid #f3f4f6; transition: background .15s;
}
.v3-notif-item:hover { background: #f9fafb; }
.dark .v3-notif-item { border-bottom-color: #172036; }
.dark .v3-notif-item:hover { background: #15203c; }
.v3-notif-dismiss {
  width: 26px; height: 26px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  border-radius: 6px; color: #9ca3af; transition: all .15s;
}
.v3-notif-dismiss:hover { background: #f3f4f6; color: #ef4444; }
.dark .v3-notif-dismiss:hover { background: #172036; }
@keyframes v3-bell-shake {
  0% { transform: rotate(0); } 10% { transform: rotate(14deg); } 20% { transform: rotate(-10deg); }
  30% { transform: rotate(14deg); } 40% { transform: rotate(-4deg); } 50% { transform: rotate(10deg); }
  60%, 100% { transform: rotate(0); }
}
.v3-bell-animate { display: inline-block; transform-origin: top center; animation: v3-bell-shake 1s ease infinite; }

/* ── Login (registration/login.html) - layout do sign-in.html do Trezo ── */
.v3-login { min-height: 100vh; display: flex; align-items: center; padding: 40px 0; }
.v3-full { width: 100%; max-width: 100%; }
.v3-login-aside {
  border-radius: 25px; padding: 40px 30px; min-height: 260px; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px;
  background: var(--auth-bg) center / cover no-repeat, #1e1b4b;
}
.v3-login-aside__logo { height: 60px; width: auto; }
.v3-login-aside__shot { width: 100%; max-width: 460px; height: auto; }
.v3-login-aside__text { max-width: 420px; opacity: .85; }
@media (min-width: 64rem) {
  .v3-login-aside { min-height: 620px; }
  .v3-login-form { padding-left: 60px; }
}

/* ── Dashboard de licitações (bidding/dashboard.html) ── */
.v3-dash-hero { background: linear-gradient(135deg, #605dff 0%, #3f3cbb 100%); }
.v3-dash-hero__sub { opacity: .9; font-size: 14px; }
.v3-dash-hero .v3-year-select { width: 96px; flex-shrink: 0; background-color: #fff; }
.v3-dash-mini-donut { width: 210px; height: 210px; max-width: 100%; }
.v3-dot { width: 8px; height: 8px; border-radius: 999px; flex-shrink: 0; display: inline-block; }
.v3-progress { height: 8px; border-radius: 999px; background: #f1f3f6; overflow: hidden; }
.dark .v3-progress { background: #15203c; }
.v3-progress__bar { height: 100%; border-radius: 999px; background: #605dff; }

/* Modal (v3-compat.js): markup do ERP (overlay inline); aqui só trava a rolagem da página e
   põe o dropdown do Select2 acima do overlay. */
body.v3-modal-lock { overflow: hidden; }
.select2-container--open { z-index: 10050; }

/* Summernote lite dentro do tema */
.note-editor.note-frame { border-color: #e5e7eb !important; border-radius: 6px; }
.dark .note-editor.note-frame { border-color: #172036 !important; }

/* Mais utilitários ausentes no build (usados na lista de licitações e no drawer do ERP) */
.ml-auto { margin-left: auto; }
.pt-\[5px\] { padding-top: 5px; }
.hover\:text-gray-600:hover { color: #4b5563; }
.hover\:text-danger-600:hover { color: #dc2626; }
.dark .dark\:hover\:text-gray-300:hover { color: #d1d5db; }
@media (width >= 48rem) {
  .md\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .md\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .md\:col-span-3 { grid-column: span 3 / span 3; }
  .md\:col-span-5 { grid-column: span 5 / span 5; }
}

/* Lista de licitações */
.v3-date-range { width: 210px; }
.v3-form-narrow { width: 100%; max-width: 900px; }
.v3-va-mid { vertical-align: middle; }

/* O tema abre .connected-apps-dropdown com `.connected-apps-menu:has(.active)` - qualquer
   descendente. As abas do dropdown de notificações usam .active (aba atual), então ele ficava
   sempre aberto (transparente) e roubava os cliques da página. Aqui só o botão conta. */
#v3-notif > .connected-apps-dropdown { visibility: hidden; opacity: 0; }
#v3-notif:has(> #dropdownToggleBtn.active) > .connected-apps-dropdown { visibility: visible; opacity: 1; }

/* `hidden` do Tailwind fica num @layer e perde para qualquer classe v3-* com display
   (CSS fora de layer sempre vence). Aqui ele volta a mandar nos elementos v3-*. */
[class*="v3-"].hidden { display: none; }

/* Título sobre fundo colorido: o tema força a cor de h1-h6, o text-white não basta */
.v3-on-dark, h1.v3-on-dark, h2.v3-on-dark, h3.v3-on-dark { color: #fff !important; }

/* Toast/alerta do SweetAlert acima dos modais (.v3-modal usa z-index 9990+) */
.swal2-container { z-index: 10100 !important; }

/* Utilitário do drawer de filtros do ERP que não existe no build */
.text-\[15px\] { font-size: 15px; }

/* Utilitários do markup do ERP ausentes no build (contador do botão Filtros, empty state, busca) */
.bg-white\/20 { background-color: rgba(255, 255, 255, .2); }
.h-\[18px\] { height: 18px; }
.ml-1 { margin-left: .25rem; }
.mb-8 { margin-bottom: 2rem; }
.min-w-\[280px\] { min-width: 280px; }
.dark .dark\:hover\:text-gray-200:hover { color: #e5e7eb; }
.dark .dark\:text-gray-500 { color: #6b7280; }
.w-\[56px\] { width: 56px; }
.h-\[56px\] { height: 56px; }
.v3-scroll-600 { max-height: 600px; overflow-y: auto; }
/* Tabelas dentro de cards de 1/3 da largura (visualização da licitação) */
.v3-table-compact th, .v3-table-compact td { padding-left: 10px; padding-right: 10px; }
.whitespace-pre-wrap { white-space: pre-wrap; }
.leading-relaxed { line-height: 1.625; }
.\!text-\[40px\] { font-size: 40px !important; }
@keyframes v3-spin { to { transform: rotate(360deg); } }
.animate-spin { animation: v3-spin 1s linear infinite; }
@media (width >= 48rem) {
  .md\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .md\:col-span-4 { grid-column: span 4 / span 4; }
}
@media (width >= 80rem) {
  .xl\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* ── Linha do tempo de eventos da licitação (edição e visualização) ── */
.v3-timeline { list-style: none; margin: 0; padding: 0; }
.v3-timeline__item { position: relative; display: flex; gap: 14px; }
.v3-timeline__item::before {
  content: ""; position: absolute; left: 17px; top: 38px; bottom: 0; border-left: 1px dashed #e5e7eb;
}
.v3-timeline__item:last-child::before { display: none; }
.dark .v3-timeline__item::before { border-color: #172036; }
.v3-timeline-dot { width: 36px; height: 36px; border-radius: 999px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }

/* Texto rico vindo do editor (descrições de eventos, ajuda por portal) */
.v3-rich p { margin: 0 0 6px; }
.v3-rich p:last-child { margin-bottom: 0; }
.v3-rich ul, .v3-rich ol { padding-left: 18px; margin: 0 0 6px; list-style: disc; }
.v3-rich ol { list-style: decimal; }
.v3-rich code { font-size: 12px; padding: 1px 4px; border-radius: 4px; background: rgba(96, 93, 255, .08); }

/* CRM de licitações (kanban) */
.v3-kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 1fr); gap: 20px; align-items: start; overflow-x: auto; padding-bottom: 6px; }
.v3-crm-col { min-height: 150px; max-height: calc(100vh - 330px); overflow-y: auto; }
.v3-crm-card { transition: box-shadow .15s; }
.v3-crm-card:hover { box-shadow: 0 4px 18px rgba(0, 0, 0, .07); }
.v3-clamp-2 { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.bg-danger-600 { background-color: var(--color-danger-600); }
.bg-warning-600 { background-color: var(--color-warning-600); }
.\!w-auto { width: auto !important; }
.max-w-\[420px\] { max-width: 420px; }
.min-w-\[26px\] { min-width: 26px; }
.h-\[22px\] { height: 22px; }
.px-\[6px\] { padding-left: 6px; padding-right: 6px; }
.dark .dark\:hover\:bg-\[\#172036\]:hover { background-color: #172036; }
.leading-tight { line-height: 1.25; }
.v3-scroll-400 { max-height: 400px; overflow-y: auto; }
.items-baseline { align-items: baseline; }
.min-w-\[240px\] { min-width: 240px; }
.min-w-\[200px\] { min-width: 200px; }
.v3-option-card:has(input:checked) { border-color: #605dff; background: #f0efff; }
.dark .v3-option-card:has(input:checked) { background: #15203c; }
.max-w-\[360px\] { max-width: 360px; }

/* Sidebar: subgrupos de segundo nível (Licitação > Jurídico > ...) */
.rotate-180 { rotate: 180deg; }
#sidebar-area .accordion .accordion-item .accordion-collapse .sidebar-sub-menu .sidemenu-item .tz-sidemenu-group.active { background: transparent; color: #605dff; }
#sidebar-area.tz-sidebar-dark .sidebar-sub-menu .tz-sidemenu-group.active { background: transparent !important; }
[dir="ltr"] .sidebar-area .accordion .accordion-item .accordion-collapse .sidebar-sub-menu .sidemenu-item .tz-sidemenu-leaf::after { left: 34px; width: 6px; height: 6px; }

/* Jurídico IA: detalhe da peça */
.v3-dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 15px; font-size: 14px; }
.v3-dl dt { color: #6b7280; }
.v3-dl dd { margin: 0; color: #000; word-break: break-word; }
.dark .v3-dl dd { color: #fff; }
.v3-agent-output { background: #f9fafb; border-radius: 6px; padding: 15px; font-family: 'Courier New', monospace; font-size: 13px; max-height: 400px; overflow-y: auto; white-space: pre-wrap; }
.dark .v3-agent-output { background: #15203c; color: #fff; }
.v3-markdown { line-height: 1.7; }
.v3-markdown h1, .v3-markdown h2, .v3-markdown h3 { font-weight: 600; margin: 18px 0 8px; }
.v3-markdown h1 { font-size: 18px; } .v3-markdown h2 { font-size: 16px; } .v3-markdown h3 { font-size: 15px; }
.v3-markdown p { margin: 0 0 12px; }
.v3-markdown ul, .v3-markdown ol { margin: 0 0 12px 20px; list-style: revert; }
.v3-markdown strong { font-weight: 600; }
.list-decimal { list-style-type: decimal; }
.ml-\[20px\] { margin-left: 20px; }
.min-w-\[220px\] { min-width: 220px; }

/* Calendário (FullCalendar 5 do projeto com as cores do Trezo) */
.v3-cal-session { background: #605dff; }
.v3-cal-return { background: #f59e0b; }
.v3-cal-ata { background: #ef4444; }
.opacity-50 { opacity: .5; }
#calendar.v3-calendar.fc .fc-toolbar-title { font-size: 18px; font-weight: 600; }
#calendar.v3-calendar.fc .fc-button, #calendar.v3-calendar.fc .fc-button-primary { background: #fff; border: 1px solid #e5e7eb; color: #374151; font-size: 13px; text-transform: capitalize; box-shadow: none; }
#calendar.v3-calendar.fc .fc-button:hover { background: #f0efff; color: #605dff; }
#calendar.v3-calendar.fc .fc-button-primary:not(:disabled).fc-button-active, #calendar.v3-calendar.fc .fc-button-primary:not(:disabled):active { background: #605dff; border-color: #605dff; color: #fff; }
#calendar.v3-calendar.fc .fc-daygrid-day.fc-day-today { background: #f0efff; }
#calendar.v3-calendar.fc .fc-col-header-cell-cushion, #calendar.v3-calendar.fc .fc-daygrid-day-number { color: #374151; text-decoration: none; text-transform: capitalize; }
#calendar#calendar.v3-calendar .fc-theme-standard td, #calendar#calendar.v3-calendar .fc-theme-standard th, #calendar#calendar.v3-calendar .fc-theme-standard .fc-scrollgrid { border-color: #f1f3f6; }
#calendar#calendar.v3-calendar .fc-event { cursor: pointer; font-size: 12px; border-radius: 4px; padding: 1px 3px; }
.dark #calendar.v3-calendar.fc .fc-button, .dark #calendar.v3-calendar.fc .fc-button-primary { background: #15203c; border-color: #172036; color: #fff; }
.dark #calendar.v3-calendar.fc .fc-daygrid-day.fc-day-today { background: #15203c; }
.dark #calendar.v3-calendar.fc .fc-col-header-cell-cushion, .dark #calendar.v3-calendar.fc .fc-daygrid-day-number, .dark #calendar.v3-calendar.fc .fc-toolbar-title { color: #fff; }
.dark #calendar#calendar.v3-calendar .fc-theme-standard td, .dark #calendar#calendar.v3-calendar .fc-theme-standard th, .dark #calendar#calendar.v3-calendar .fc-theme-standard .fc-scrollgrid { border-color: #172036; }
.object-cover { object-fit: cover; }
@media (width >= 48rem) { .md\:col-span-6 { grid-column: span 6 / span 6; } }

/* Tarefas: avatares empilhados no card */
.v3-avatar-stack > * + * { margin-left: -6px; }

/* Dashboards de atas/empenhos, relatório e log de scraping */
.\!w-\[80px\] { width: 80px !important; }
.w-\[260px\] { width: 260px; }
.w-\[280px\] { width: 280px; }
.max-w-full { max-width: 100%; }
.max-w-\[260px\] { max-width: 260px; }
.min-w-\[140px\] { min-width: 140px; }
.min-w-\[160px\] { min-width: 160px; }
.min-w-\[260px\] { min-width: 260px; }
.py-\[100px\] { padding-top: 100px; padding-bottom: 100px; }
.rotate-180 { transform: rotate(180deg); }

/* Dashboard: lista que rola dentro do card sem aumentar a altura da linha do grid
   (os cards da mesma linha ficam com a altura do maior gráfico) */
.v3-fill-scroll { position: relative; flex: 1 1 auto; min-height: 240px; }
.v3-fill-scroll > * { position: absolute; inset: 0; overflow-y: auto; }

/* Suporte: etapas do chamado (stepper horizontal; rola no celular) */
.v3-steps { list-style: none; margin: 0; padding: 0 0 4px; display: flex; overflow-x: auto; }
.v3-steps__item { position: relative; flex: 1 0 110px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.v3-steps__item::before { content: ''; position: absolute; top: 15px; right: 50%; width: 100%; height: 2px; background: #e5e7eb; z-index: 0; }
.v3-steps__item:first-child::before { display: none; }
.v3-steps__item.is-done::before, .v3-steps__item.is-current::before { background: #605dff; }
.v3-steps__dot { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 999px; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; background: #f1f3f6; color: #6b7280; border: 2px solid #fff; }
.v3-steps__item.is-done .v3-steps__dot { background: #605dff; color: #fff; }
.v3-steps__item.is-current .v3-steps__dot { background: #fff; color: #605dff; border-color: #605dff; box-shadow: 0 0 0 4px rgba(96, 93, 255, .15); }
.v3-steps__label { font-size: 12px; color: #6b7280; line-height: 1.3; padding: 0 4px; }
.v3-steps__item.is-current .v3-steps__label { color: #605dff; font-weight: 600; }
.v3-steps__item.is-done .v3-steps__label { color: #111827; }
.dark .v3-steps__item::before { background: #172036; }
.dark .v3-steps__dot { background: #15203c; border-color: #0c1427; }
.dark .v3-steps__item.is-current .v3-steps__dot { background: #0c1427; }
.dark .v3-steps__item.is-done .v3-steps__label { color: #fff; }

/* Suporte: comentário em balão na linha do tempo */
.v3-bubble { background: #f6f7f9; border-radius: 0 10px 10px 10px; padding: 10px 14px; }
.v3-bubble--warning { background: #fff8eb; }
.dark .v3-bubble { background: #15203c; }

/* Suporte: kanban de chamados */
.v3-kanban--compact { grid-auto-columns: minmax(250px, 1fr); }
.v3-kanban__list { display: flex; flex-direction: column; gap: 10px; padding: 12px; min-height: 160px; max-height: calc(100vh - 300px); overflow-y: auto; border-radius: 0 0 6px 6px; transition: background .15s; }
.v3-kanban__list.is-over { background: rgba(96, 93, 255, .06); }
.v3-kanban__card { display: block; padding: 12px; border-radius: 6px; border: 1px solid #eef0f3; border-left: 3px solid #25b003; background: #fff; cursor: grab; transition: box-shadow .15s; }
.v3-kanban__card:hover { box-shadow: 0 4px 18px rgba(0, 0, 0, .07); }
.v3-kanban__card.is-soon { border-left-color: #f59e0b; }
.v3-kanban__card.is-late { border-left-color: #ef4444; }
.v3-kanban__card[draggable="false"] { cursor: pointer; border-left-color: #94a3b8; }
.v3-kanban__card.is-dragging { opacity: .5; }
.dark .v3-kanban__card { background: #0c1427; border-color: #172036; }
.v3-initials { width: 24px; height: 24px; border-radius: 999px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 600; background: #605dff; color: #fff; }

/* Suporte: estrelas da avaliação (página pública e chamado) */
.v3-stars { display: inline-flex; gap: 2px; color: #d1d5db; }
.v3-stars i { font-size: 26px; }
.v3-stars--sm i { font-size: 18px; }
.v3-stars .is-on { color: #f59e0b; font-variation-settings: 'FILL' 1; }
.v3-star-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.v3-star-input input { position: absolute; opacity: 0; pointer-events: none; }
.v3-star-input label { cursor: pointer; color: #d1d5db; transition: color .1s; }
.v3-star-input label i { font-size: 34px; }
.v3-star-input label:hover, .v3-star-input label:hover ~ label,
.v3-star-input input:checked ~ label { color: #f59e0b; }
.v3-star-input label:hover i, .v3-star-input label:hover ~ label i, .v3-star-input input:checked ~ label i { font-variation-settings: 'FILL' 1; }
.v3-track-logo { max-height: 44px; max-width: 180px; object-fit: contain; }

/* Utilitários usados nas telas do suporte que não estão no build do Tailwind */
.\!text-\[28px\] { font-size: 28px !important; }
.break-all { word-break: break-all; }
.gap-x-\[8px\] { column-gap: 8px; }
.gap-y-\[2px\] { row-gap: 2px; }
.w-\[52px\] { width: 52px; }
.h-\[52px\] { height: 52px; }
.h-fit { height: fit-content; }
.max-w-\[380px\] { max-width: 380px; }
.max-w-\[760px\] { max-width: 760px; }
.mt-\[30px\] { margin-top: 30px; }
.p-\[18px\] { padding: 18px; }
.pb-\[22px\] { padding-bottom: 22px; }
@media (min-width: 1024px) {
  .lg\:flex-row { flex-direction: row; }
  .lg\:items-start { align-items: flex-start; }
}

/* Suporte: histórico do chamado acompanha a altura da coluna lateral e rola dentro do card (desktop) */
.v3-fill-scroll--tall { min-height: 360px; }
.v3-side-stack > :last-child { flex: 1 1 auto; }
@media (max-width: 1279px) {
  .v3-fill-scroll--tall { min-height: 0; }
  .v3-fill-scroll--tall > * { position: static; overflow: visible; }
}

/* Tarefas: quadro, cards, etiquetas e painel lateral */
.v3-kanban--tasks { grid-auto-columns: minmax(300px, 1fr); }
.v3-task-card { display: block; padding: 12px; border-radius: 6px; border: 1px solid #eef0f3; border-left: 3px solid transparent; background: #fff; cursor: pointer; transition: box-shadow .15s; }
.v3-task-card:hover { box-shadow: 0 4px 18px rgba(0, 0, 0, .07); }
.v3-task-card.is-overdue { border-left-color: #ef4444; }
.v3-task-card.is-today { border-left-color: #f59e0b; }
.v3-task-card.is-dragging { opacity: .5; }
.dark .v3-task-card { background: #0c1427; border-color: #172036; }
[data-task-dropzone].is-over { background: rgba(96, 93, 255, .06); }
.v3-chip { display: inline-flex; align-items: center; gap: 3px; padding: 1px 6px; border-radius: 4px; background: #f3f4f6; color: #6b7280; font-size: 11px; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.v3-chip i { font-size: 14px; }
.v3-chip--danger { background: #fdecec; color: #dc2626; }
.v3-chip--warning { background: #fff4e0; color: #d97706; }
.dark .v3-chip { background: #15203c; color: #9ca3af; }
.v3-label { display: inline-flex; align-items: center; gap: 2px; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 500; white-space: nowrap; }
.v3-label button { font-size: 14px; line-height: 1; opacity: .6; }
.v3-label button:hover { opacity: 1; }
.v3-label--primary { background: #eceafe; color: #605dff; }
.v3-label--success { background: #e6f6e3; color: #1f8a03; }
.v3-label--warning { background: #fff4e0; color: #b45309; }
.v3-label--danger { background: #fdecec; color: #dc2626; }
.v3-label--purple { background: #f3e8ff; color: #9333ea; }
.v3-label--gray { background: #f3f4f6; color: #4b5563; }
.dark .v3-label { background: #15203c; }
.v3-icon-btn { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; color: #6b7280; transition: background .15s, color .15s; }
.v3-icon-btn:hover { background: #f3f4f6; color: #605dff; }
.v3-icon-btn i { font-size: 18px; }
.dark .v3-icon-btn:hover { background: #15203c; }
.v3-segmented { display: inline-flex; padding: 3px; border-radius: 8px; background: #f3f4f6; gap: 2px; }
.v3-segmented a { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 6px; font-size: 13px; color: #6b7280; }
.v3-segmented a i { font-size: 18px; }
.v3-segmented a.is-active { background: #fff; color: #605dff; font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.dark .v3-segmented { background: #15203c; }
.dark .v3-segmented a.is-active { background: #0c1427; }
.v3-drawer-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .35); z-index: 9990; opacity: 0; pointer-events: none; transition: opacity .2s; }
.v3-drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }
.v3-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 560px; max-width: 100vw; z-index: 9991; display: flex; flex-direction: column;
  box-shadow: -10px 0 40px rgba(0, 0, 0, .12); transform: translateX(100%); transition: transform .25s ease; }
.v3-drawer.is-open { transform: translateX(0); }
.v3-drawer__body { flex: 1 1 auto; overflow-y: auto; }
.v3-person { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.v3-check-row { display: flex; align-items: flex-start; gap: 6px; padding: 5px 0; border-bottom: 1px dashed #eef0f3; }
.dark .v3-check-row { border-color: #172036; }
.v3-status-btn { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 6px; font-size: 13px; border: 1px solid #e5e7eb; color: #6b7280; }
.v3-status-btn i { font-size: 17px; }
.v3-status-btn:hover { border-color: #605dff; color: #605dff; }
.v3-status-btn.is-active { background: #605dff; border-color: #605dff; color: #fff; }
.dark .v3-status-btn { border-color: #172036; }
.v3-bubble--plain { border-radius: 8px; }
.bg-transparent { background-color: transparent; }
.\!text-sm { font-size: .875rem !important; }
.my-\[8px\] { margin-top: 8px; margin-bottom: 8px; }
.max-w-\[320px\] { max-width: 320px; }
.placeholder\:text-gray-400::placeholder { color: #9ca3af; }
@media (min-width: 640px) { .sm\:inline { display: inline; } }
.v3-table-compact .tz-th { padding: 11px 10px; }

/* Tarefas: o detalhe abre como modal centralizado (antes era painel lateral) */
.v3-drawer { top: 50%; left: 50%; right: auto; bottom: auto; width: min(960px, calc(100vw - 32px)); max-height: calc(100vh - 48px);
  border-radius: 8px; box-shadow: 0 25px 60px rgba(0, 0, 0, .2); opacity: 0; pointer-events: none;
  transform: translate(-50%, -48%) scale(.98); transition: transform .2s ease, opacity .2s ease; }
.v3-drawer.is-open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.v3-task-modal-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; }
.v3-task-modal-side { border-left: 1px solid #eef0f3; padding-left: 20px; }
.dark .v3-task-modal-side { border-color: #172036; }
.v3-dl--stack { grid-template-columns: 1fr; gap: 2px; }
.v3-dl--stack dt { font-size: 12px; margin-top: 10px; }
.v3-dl--stack dt:first-child { margin-top: 0; }
@media (max-width: 767px) {
  .v3-task-modal-grid { grid-template-columns: 1fr; }
  .v3-task-modal-side { border-left: 0; padding-left: 0; order: -1; border-bottom: 1px solid #eef0f3; padding-bottom: 12px; }
}

/* Licitação › Relatórios */
.v3-panel-card { transition: box-shadow .15s, transform .15s; }
.v3-panel-card:hover { box-shadow: 0 6px 24px rgba(0, 0, 0, .08); transform: translateY(-2px); }
.v3-filter-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 6px 3px 10px; border-radius: 999px; font-size: 12px; background: #eceafe; color: #605dff; }
.v3-filter-chip i { font-size: 14px; }
.v3-filter-chip:hover { background: #dcd9fe; }
.dark .v3-filter-chip { background: #15203c; }
.v3-funnel-bar { height: 22px; border-radius: 4px; background: #f1f3f6; overflow: hidden; }
.v3-funnel-bar > div { height: 100%; background: #605dff; border-radius: 4px; }
.dark .v3-funnel-bar { background: #15203c; }
.\!text-\[26px\] { font-size: 26px !important; }
.text-\[16px\] { font-size: 16px; }
.rounded { border-radius: .25rem; }
.max-w-\[180px\] { max-width: 180px; }
.max-w-\[240px\] { max-width: 240px; }
.max-w-\[280px\] { max-width: 280px; }
.min-w-\[110px\] { min-width: 110px; }
.min-w-\[130px\] { min-width: 130px; }
.v3-stack-bar { display: flex; height: 8px; border-radius: 999px; overflow: hidden; background: #f1f3f6; }
.v3-stack-bar > span { display: block; height: 100%; }
.dark .v3-stack-bar { background: #15203c; }
.v3-tabs-tight .tz-tab-btn { padding-left: 12px; padding-right: 12px; }

/* Alinhamento de texto: text-right/text-left não vêm no build do Tailwind do tema (só ltr:/rtl:) */
.text-right { text-align: right; }
.text-left { text-align: left; }

/* Variações da dica (i) `tz-tip` para modal com corpo rolável (overflow corta a dica que abre
   para cima ou centralizada): `--down` abre para baixo, `--start` ancora pela esquerda. */
.tz-tip--down .tz-tip__text { bottom: auto; top: calc(100% + 6px); }
.tz-tip--down .tz-tip__text::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: #1f2937; }
.tz-tip--start .tz-tip__text { left: -6px; transform: none; }
.tz-tip--start .tz-tip__text::after { left: 13px; margin-left: -5px; }
.tz-tip--wide .tz-tip__text { max-width: 340px; }
