/*
    component.css

    Objetivos:
    - Definir estilos para componentes reutilizáveis (botões, cards, modais, abas, etc)
*/

/* ==========================
   ALERTAS
   ========================== */

:root{
  /* você pode ajustar estes intensificadores globais se quiser */
  --alert-mix-bg: 14%;   /* quanto da cor na mistura do fundo */
  --alert-mix-tx: 40%;   /* quanto da cor na mistura do texto */
  --alert-shadow: 0 4px 10px rgba(0,0,0,.06);
}

/* base */
.alert{
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 12px 44px 12px 14px; /* espaço pro close */
  margin: 0 0 10px 0;
  border-radius: var(--radius);
  box-shadow: var(--alert-shadow);
  background: var(--white);
  color: var(--text-color);
  border-left: 4px solid transparent;
  transition: transform var(--speed), opacity var(--speed), box-shadow var(--speed);
}

.alert p{ margin: 0; }
.alert strong{ font-weight: 600; }

/* botão fechar */
.alert .alert-close{
  position: absolute;
  top: 8px;
  right: 8px;
  border: 0;
  background: transparent;
  font-size: 18px;
  line-height: 1;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  opacity: .6;
}
.alert .alert-close:hover{ opacity: 1; }

/* animação de saída */
.alert.is-hiding{
  opacity: 0;
  transform: translateY(-6px);
  box-shadow: none;
}

.alert + .alert{ margin-top: 10px; }

@media (max-width: 576px){
  .alert{
    padding-right: 40px;
    font-size: .95rem;
  }
}

/* ===== variantes (success, warning, danger) ===== */
/* color-mix para gerar fundo/texto a partir das cores base do boot.css */
/* fallback: background levemente branco + borda na cor base, se o browser não suportar color-mix */

.alert-success{
  border-left-color: var(--success);
  background: #fff;
  color: var(--text-color);
  background: color-mix(in srgb, var(--success) var(--alert-mix-bg), var(--white));
  color: color-mix(in srgb, var(--success) var(--alert-mix-tx), var(--text-color));
}

.alert-info{
  border-left-color: var(--info);
  background: #fff; /* fallback */
  color: var(--text-color);
  background: color-mix(in srgb, var(--info) var(--alert-mix-bg), var(--white));
  color: color-mix(in srgb, var(--info) var(--alert-mix-tx), var(--text-color));
}

.alert-warning{
  border-left-color: var(--warning);
  background: #fff;
  color: var(--text-color);
  background: color-mix(in srgb, var(--warning) var(--alert-mix-bg), var(--white));
  color: color-mix(in srgb, var(--warning) var(--alert-mix-tx), var(--text-color));
}

.alert-danger{
  border-left-color: var(--danger);
  background: #fff;
  color: var(--text-color);
  background: color-mix(in srgb, var(--danger) var(--alert-mix-bg), var(--white));
  color: color-mix(in srgb, var(--danger) var(--alert-mix-tx), var(--text-color));
}


/* ==========================
   BUTTONS: primary, secondary, success, info, warning, danger
   ========================== */
.btn {
    font-family: Inter, sans-serif;
    font-size: 0.9em;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    transition: background-color .3s, color .3s, border .3s;
    border-radius: var(--radius);
    padding: 4px 10px;
    line-height: 1.2;
}

/* Single buttons */
.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    border: 1px solid var(--primary);
}
.btn-secondary {
    background-color: var(--secondary);
    color: var(--white);
    border: 1px solid var(--secondary);
}
.btn-success {
    background-color: var(--success);
    color: var(--white);
    border: 1px solid var(--success);
}
.btn-info {
    background-color: var(--info);
    color: var(--white);
    border: 1px solid var(--info);
}
.btn-warning {
    background-color: var(--warning);
    color: var(--white);
    border: 1px solid var(--warning);
}
.btn-danger {
    background-color: var(--danger);
    color: var(--white);
    border: 1px solid var(--danger);
}

/* Hover effects */
.btn-primary:hover{
    background-color: var(--primary-hover);
    color: var(--white) !important;
}
.btn-secondary:hover {
    background-color: var(--secondary-hover);
    color: var(--white) !important;
}
.btn-success:hover {
    background-color: var(--success-hover);
    color: var(--white) !important;
}
.btn-info:hover {
    background-color: var(--info-hover);
    color: var(--white) !important;
}
.btn-warning:hover {
    background-color: var(--warning-hover);
    color: var(--white) !important;
}
.btn-danger:hover {
    background-color: var(--danger-hover);
    color: var(--white) !important;
}


/* Visited effects */
.btn-primary:visited   { color: var(--white) !important;}
.btn-secondary:visited { color: var(--white) !important;}
.btn-success:visited   { color: var(--white) !important;}
.btn-info:visited      { color: var(--white) !important;}
.btn-warning:visited   { color: var(--white) !important;}
.btn-danger:visited    { color: var(--white) !important;}

/* Outline buttons */
.btn-primary.outline {
    background-color: var(--white);
    color: var(--primary) !important;
    border: 1px solid var(--primary);
}
.btn-secondary.outline {
    background-color: var(--white);
    color: var(--secondary) !important;
    border: 1px solid var(--secondary);
}
.btn-success.outline {
    background-color: var(--white);
    color: var(--success) !important;
    border: 1px solid var(--success);
}
.btn-info.outline {
    background-color: var(--white);
    color: var(--info) !important;
    border: 1px solid var(--info);
}
.btn-warning.outline {
    background-color: var(--white);
    color: var(--warning) !important;
    border: 1px solid var(--warning);
}
.btn-danger.outline {
    background-color: var(--white);
    color: var(--danger) !important;
    border: 1px solid var(--danger);
}

.btn-primary.outline:hover   { background-color: color-mix(in srgb, var(--primary) 50%, #fff); }
.btn-secondary.outline:hover { background-color: color-mix(in srgb, var(--secondary) 50%, #fff); }
.btn-success.outline:hover   { background-color: color-mix(in srgb, var(--success) 50%, #fff); }
.btn-info.outline:hover      { background-color: color-mix(in srgb, var(--info) 50%, #fff); }
.btn-warning.outline:hover   { background-color: color-mix(in srgb, var(--warning) 50%, #fff); }
.btn-danger.outline:hover    { background-color: color-mix(in srgb, var(--danger) 50%, #fff); }

/* Agrupamento na coluna de ações */
.actions .btn-group {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
}

/* Botões para data-table */
.btn-data-table {
  padding-inline: .5rem;
}
.btn.btn-sm.btn-data-table i {
  font-size: 18px;
  line-height: 1;
}

/* Dropdown minimalista */
.dropdown {
  position: relative;
  display: inline-block;
}
.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Menu */
.dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  min-width: 180px;
  background: #fff;
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: var(--radius);
  padding: 4px 0;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  z-index: 50;
  display: none;

  transform-origin: top right;
  transform: scale(.98);
  opacity: 0;
  pointer-events: none;
  transition: opacity .12s ease, transform .12s ease;
}

.dropdown-menu.left {
  right: auto;
  left: 0;
  transform-origin: top left;
}

/* Estado aberto */
.dropdown.open .dropdown-menu {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  display: block;
}

/* Itens */
.dropdown-item {
  display: block;
  width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: .75rem;
  line-height: 1.2;
  color: var(--text-color, #111827);
  text-align: left;
  text-decoration: none;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.dropdown-item:hover {
 background: rgba(0,0,0,.04);
}
.dropdown-sep{ height:1px; background: var(--gray); margin:6px 0; }
/* ==========================
   CARDS
   ========================== */

.card {
  width: 100%;
  margin: 0;                     /* conforme pedido */
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  box-shadow: 0 2px 6px rgba(0,0,0,.06); /* discreta */
  overflow: hidden;              /* garante raio arredondado no conteúdo interno */
}

/* Título do card (header simplificado) */
.card-title {
  padding: 10px;                 /* conforme pedido */
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color);
  border-bottom: 1px solid var(--gray-light);
  display: flex;
  align-items: center;
  gap: .5rem;                    /* espaço para ícone opcional */
}

/* Corpo do card */
.card-body {
  padding: 10px;                 /* conforme pedido */
  color: var(--text-color);
  line-height: 1.5;
}

/* --------------------------
   Variação OUTLINE (top border)
   Uso: .card.card-outline.card-outline-primary
--------------------------- */
.card-outline {
  border-top-width: 4px;
  border-top-style: solid;
}

/* Paleta (seguindo tua nomenclatura e variáveis) */
.card-outline-primary   { border-top-color: var(--primary); }
.card-outline-secondary { border-top-color: var(--secondary); }
.card-outline-success   { border-top-color: var(--success); }
.card-outline-danger    { border-top-color: var(--danger); }
.card-outline-warning   { border-top-color: var(--warning); }
.card-outline-info      { border-top-color: var(--info); }

/* Light/Dark: mapeando para tuas variáveis existentes */
.card-outline-light     { border-top-color: var(--gray-light); }
.card-outline-dark      { border-top-color: var(--text-color-dark); }

/* Hover opcional (sutil) */
.hoverable.card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
  transition: box-shadow .2s ease;
}

/* Acessórios opcionais */
.card .muted   { color: var(--text-color-light); }
.card .strong  { font-weight: 600; }

/* Ação perigosa */
.dropdown-item.danger {
  color: var(--danger, #b91c1c);
}
.dropdown-item.danger:hover {
  background: #fee2e2;
}

/* Button groups */
.btn-group {
    display: inline-flex;
    border-radius: var(--radius);
    overflow: visible;
}

.btn-group .btn-left,
.btn-group .btn-middle,
.btn-group .btn-right {
    padding: 4px 10px;
    cursor: pointer;
    user-select: none;
    border-right: 1px solid var(--white);
    color: #fff;
    font-size: 0.9em;
    line-height: 1.2;
}

.btn-group .btn-left {
    border-radius: var(--radius) 0 0 var(--radius);
}
.btn-group .btn-right {
    border-right: none;
    border-radius: 0 var(--radius) var(--radius) 0;
    position: relative;
    display:inline-flex;
    align-items:center;
}

/* ===== Dropdown ===== */
.btn-group .dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid var(--gray);
    border-radius: var(--radius) 0 var(--radius) var(--radius);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    min-width: 160px;
    z-index: 2000;
}

.btn-group .dropdown-content a {
    display: block;
    padding: 8px 12px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9em;
}

.btn-group .dropdown-content a:hover {
    background: var(--gray-light);
}

/* Classe para abrir o dropdown */
.btn-group .btn-right.open .dropdown-content {
    display: block;
}

.dropdown-item:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(56,126,71,.2) inset;
}

.form-list-filters .btn {
    margin-left: 10px !important;
}

/* ==========================
   COLUMNS
   ========================== */
.row {
    display: flex;
    width: 100%;
}

.col-1 {
    flex: 0 0 8.33%;
    max-width: 8.33%;
}
.col-2 {
    flex: 0 0 16.66%;
    max-width: 16.66%;
}
.col-3 {
    flex: 0 0 25%;
    max-width: 25%;
}
.col-4 {
    flex: 0 0 33.33%;
    max-width: 33.33%;
}
.col-5 {
    flex: 0 0 41.66%;
    max-width: 41.66%;
}
.col-6 {
    flex: 0 0 50%;
    max-width: 50%;
}
.col-7 {
    flex: 0 0 58.33%;
    max-width: 58.33%;
}
.col-8 {
    flex: 0 0 66.66%;
    max-width: 66.66%;
}
.col-9 {
    flex: 0 0 75%;
    max-width: 75%;
}
.col-10 {
    flex: 0 0 83.33%;
    max-width: 83.33%;
}
.col-11 {
    flex: 0 0 91.66%;
    max-width: 91.66%;
}
.col-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

@media (max-width: 1024px) {
    .row {
        flex-wrap: wrap;
    }
    .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ==========================
   DATA TABLE
   ========================== */
.data-table-header {
    background-color: var(--white);
    padding: 10px 10px 2px 10px;
    border-radius: var(--radius) var(--radius) 0 0;
    border: 1px solid var(--gray);
    width: calc(100% - 5px);
    color: var(--text-color-light);
    font-size: .8em;
}
.data-table-content {
    background-color: var(--white);
    padding: 10px 10px 2px 10px;
    border-left: 1px solid var(--gray);
    border-right: 1px solid var(--gray);
    border-bottom: 1px solid var(--gray-light);
    width: calc(100% - 5px);
    color: var(--text-color-dark);
}
.data-table-footer{
    background-color: var(--white);
    padding: 2px 10px;
    border-radius: 0 0 var(--radius) var(--radius);
    border: 1px solid var(--gray);
    width: calc(100% - 5px);
    font-size: 14px;
    margin-bottom: 300px;
}

/* ==========================
   DIVIDERS
   ========================== */
.divider {
    border: none;
    border-top: 1px solid var(--gray);
    margin: 4px 0;
}

/* =========================
   FAQ
   ========================== */

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.faq-item {
    border: 1px solid #e3e3e3;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.faq-toggle {
    width: 100%;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: start;
    border: none;
    background: #f7f7f7;
    cursor: pointer;
    font-size: 15px;
}

.faq-toggle i {
    margin-right: 6px;
}

.faq-toggle .icon-arrow {
    transition: transform .2s;
}

.faq-item.active .icon-arrow {
    transform: rotate(180deg);
}

.faq-content {
    display: none;
    padding: 10px 12px;
    font-size: 14px;
    color: #555;
}

.faq-item.active .faq-content {
    display: block;
}

/* ==========================
   KANBAN (layout básico)
   ========================== */
.kanban {
  width: 100%;
}

/* trilho com rolagem horizontal */
.kanban-scroller {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
  padding: 8px 2px 12px 2px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* cada coluna é um card já existente */
.kanban-column {
  flex: 0 0 250px;
  max-width: 250px;
}

/* reaproveitando .card, só ajustes finos */
.kanban-column .card-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.kanban-count {
  font-size: .8em;
  color: var(--text-color-light);
}

/* região com as tarefas/itens */
.kanban-items {
  display: flex;
  flex-direction: column;
  padding: 5px;
  gap: 8px;
  /* se quiser que a coluna role verticalmente quando ficar muito alta,
     descomente as duas linhas abaixo e ajuste a altura máxima do board */
  /* max-height: calc(100vh - 260px);
     overflow-y: auto; */
}

/* cartão do item reaproveita .card, mas compacto */
.kanban-item.card {
  border-left: 4px solid var(--gray);
}

.kanban-item .card-body {
  padding: 8px;               /* um pouco mais compacto */
}

/* cor por status/etapa (opcional, mapeando por data-attr) */
.kanban-item[data-status="novo"]       { border-left-color: var(--info); }
.kanban-item[data-status="contato"]    { border-left-color: var(--blue); }
.kanban-item[data-status="qualificado"]{ border-left-color: var(--green); }
.kanban-item[data-status="proposta"]   { border-left-color: var(--orange); }
.kanban-item[data-status="fechado"]    { border-left-color: var(--success); }
.kanban-item[data-status="perdido"]    { border-left-color: var(--danger); }

/* rodapé da coluna (ex: ações) */
.kanban-column .card-footer {
  border-top: 1px solid var(--gray-light);
  padding: 8px 10px;
}

/* acessibilidade: foco ao navegar por teclado */
.kanban-scroller:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(56,126,71,.2) inset;
  border-radius: var(--radius);
}

/* ajuda a clicar e arrastar com conforto */
.kanban-scroller.grabbing {
  cursor: grabbing;
}

/* melhora a área de click de botões no header */
.kanban-actions .btn { padding: 4px 8px; }


/* ==========================
   MODALS
   ========================== */
.container-modal {
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    background: rgba(24,117,97,0.18);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: none;
}

/* Mostra modal quando aberto */
.container-modal.open { display: flex; }

/* Bloqueia scroll do body quando modal aberto (opcional) */
body.modal-open { overflow: hidden; }

.modal-sm {
    background-color: white;
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 300px;
    max-height: 200px;
    overflow-y: auto;
}
.modal-md {
    background-color: white;
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 500px;
    max-height: 400px;
    overflow-y: auto;
}
.modal-lg {
    background-color: white;
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 800px;
    max-height: 600px;
    overflow-y: auto;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gray);
}
.modal-title {
    font-size: 1.25rem;
    font-weight: bold;
}
.modal-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
}
.modal-body {
    margin-top: 10px;
}

/* Estilos específicos para modal de ajuda */
#helpModal .modal-title {
    display: flex;
    align-items: center;
}

#helpModal .modal-close {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

#helpModal .modal-close:hover {
    opacity: 1;
}

#helpModal .badge {
    background-color: var(--secondary);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius);
    font-size: 0.75rem;
    margin-right: 0.25rem;
}

#helpModal .ri-spin {
    animation: spin 1s linear infinite;
}

/* Estilos para conteúdo Markdown na modal de ajuda */
#helpContent h1, #helpContent h2, #helpContent h3,
#helpContent h4, #helpContent h5, #helpContent h6 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
}

#helpContent h1 { font-size: 1.5rem; }
#helpContent h2 { font-size: 1.25rem; }
#helpContent h3 { font-size: 1.125rem; }
#helpContent h4 { font-size: 1rem; }

#helpContent p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

#helpContent ul, #helpContent ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

#helpContent li {
    margin-bottom: 0.25rem;
}

#helpContent code {
    background-color: var(--gray-light);
    padding: 0.125rem 0.25rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

#helpContent pre {
    background-color: var(--gray-light);
    padding: 1rem;
    border-radius: var(--radius);
    overflow-x: auto;
    margin-bottom: 1rem;
}

#helpContent pre code {
    background: none;
    padding: 0;
}

#helpContent blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1rem;
    margin: 1rem 0;
    font-style: italic;
    color: var(--text-color-light);
}

#helpContent table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

#helpContent th, #helpContent td {
    border: 1px solid var(--border-color);
    padding: 0.5rem;
    text-align: left;
}

#helpContent th {
    background-color: var(--gray-light);
    font-weight: 600;
}

#helpContent a {
    color: var(--primary);
    text-decoration: none;
}

#helpContent a:hover {
    text-decoration: underline;
}

#helpContent hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 2rem 0;
}

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

/* ==========================
   TABS
   ========================== */
.tab{
    position: relative;
    width: calc(100% - 10px);
    border-bottom: 1px solid var(--gray);
}
.tab-header {
    display: flex;
    margin-bottom: -1px;
}
.tab-header-item {
    padding: 5px 15px;
    cursor: pointer;
    border: 1px solid var(--gray);
    border-radius: var(--radius) var(--radius) 0 0;
    background-color: var(--white);
}
.tab-header-item.active {
    font-weight: bold;
    border-top: 4px solid var(--primary);
    border-bottom: 1px solid var(--white);
}
.tab-header-item:hover {
    background-color: var(--gray-light);
}
.tab-header-item.active:hover {
    background-color: var(--white);
}
.tab-content {
    padding: 15px;
    border: 1px solid var(--gray);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
    width: calc(100% - 10px);
    background-color: var(--white);
}
.tab-content-item {
    display: none;
}
.tab-content-item.active {
    display: block;
}

/* Foco visível nos cabeçalhos */
.tab-header-item:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(56,126,71,.2) inset;
}

.tab-header {
    scrollbar-gutter: stable;
    overflow-x: auto;
    scrollbar-width: thin; /* Firefox */
    -ms-overflow-style: -ms-autohiding-scrollbar; /* IE and Edge */
    overflow-y: hidden;
}

/* =======================
    Tabela básica padrão
    ====================== */

/* Ajustes gerais */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  color: #212529;
  background-color: #fff;
}

/* Cabeçalho */
.table thead {
  background-color: #f8f9fa;
}
.table thead th {
  font-weight: 600;
  text-align: left;
  padding: 0.75rem;
  border-bottom: 2px solid #dee2e6;
  color: #495057;
}

/* Corpo */
.table td {
  padding: 0.6rem 0.75rem;
  border-top: 1px solid #dee2e6;
  vertical-align: middle;
}

/* Linhas pares com leve diferenciação */
.table tbody tr:nth-child(even) {
  background-color: #fafbfc;
}

/* Hover para linha */
.table tbody tr:hover {
  background-color: #f1f3f5;
}

/* Cabeçalho claro quando usado .table-light */
.table-light th {
  background-color: #f8f9fa;
}

/* Tamanho compacto opcional */
.table.compact th,
.table.compact td {
  padding: 0.35rem 0.5rem;
  font-size: 0.85rem;
}

/* Ajuste para colunas com ações alinhadas à direita */
.table td.text-end,
.table th.text-end {
  text-align: right;
}

/* Responsividade */
.table-responsive {
  overflow-x: auto;
}

/* ========================
    TABELA PADRÃO PLANILHA
    ======================== */

/* Estilo “Excel-like” */
.table-excel {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  border: 1px solid #d9d9d9;
}

.tr-excel:nth-child(even) .td-excel { background: #fbfbfb; } /* zebra leve */

.th-excel, .td-excel {
  border-right: 1px solid #e6e6e6;
  border-bottom: 1px solid #e6e6e6;
  padding: 8px 10px;
  vertical-align: middle;
  white-space: nowrap;
}

.th-excel {
  background: #f3f6fb; /* cabeçalho */
  font-weight: 600;
  text-transform: lowercase;
}

.td-excel {
  background: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.table-excel .tr-excel:first-child .th-excel { border-top: 0; }
.table-excel .tr-excel .th-excel:first-child,
.table-excel .tr-excel .td-excel:first-child { border-left: 0; }

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


/* Corrige dropdown que aparece atrás de containers */
.dropdown-menu {
  position: absolute;
  z-index: 9999;
}

.card,
.data-table-content,
.kanban {
  overflow: visible; /* permite o dropdown “sair” */
}
