/*


 */

/* ============================
   Responsividade — Sidebar
   ============================ */
@media (max-width: 991px) {
  #topo-navbar .navbar-toggler.sidebar-mobile-main-toggle {
    margin-left: auto;
    position: relative;
    z-index: 3;
  }

  .page-content {
    display: block !important;
  }

  .page-content .sidebar-main {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    box-shadow: none;
    display: none;
    z-index: 1;
  }

  body.sidebar-mobile-main .page-content .sidebar-main,
  body.sidebar-open .page-content .sidebar-main {
    display: block;
    animation: slideDown 0.25s ease;
  }

  .page-content .content-wrapper {
    width: 100% !important;
    min-width: 0;
    margin-left: 0 !important;
  }

  .sidebar-overlay { display: none !important; }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================
   Cards KPI — Dashboard
   ============================ */
.card {
  transition: box-shadow 0.2s ease;
}
.card:hover {
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1) !important;
}

/* ============================
   Tabela de itens do cálculo
   ============================ */
#tabela-itens tbody tr:hover {
  background-color: #f8f9ff;
}

/* ============================
   Badge de tipo de tributo
   ============================ */
.badge {
  font-size: 0.75rem;
  letter-spacing: 0.03em;
}

/* ============================
   Navbar SICAM
   ============================ */
#topo-navbar {
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* ============================
   Footer
   ============================ */
#rodape {
  border-top: 1px solid #dee2e6 !important;
  background: #f8f9fa;
  padding: 0.75rem 1rem;
}

/* ============================
   Tutorial Interativo
   ============================ */

.tut-overlay {
  position: fixed;
  inset: 0;
  background: transparent;
  z-index: 99990;
  pointer-events: none;
}

.tut-destaque {
  position: fixed;
  z-index: 99991;
  border: 3px solid #f59e0b;
  border-radius: 8px;
  pointer-events: none;
  animation: tut-pulso 2s ease-in-out infinite;
  background: rgba(253, 230, 138, 0.18);
}

@keyframes tut-pulso {
  0%, 100% { border-color: #f59e0b; box-shadow: 0 0 0 4px rgba(245,158,11,0.25), 0 0 16px rgba(245,158,11,0.2); }
  50%       { border-color: #fbbf24; box-shadow: 0 0 0 6px rgba(245,158,11,0.15), 0 0 28px rgba(245,158,11,0.35); }
}

.tut-caixa {
  position: fixed;
  z-index: 99993;
  background: #fff;
  border-radius: 14px;
  padding: 1.25rem 1.25rem 1rem;
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
  pointer-events: auto;
  max-width: calc(100vw - 24px);
  transition: top 0.28s cubic-bezier(0.4,0,0.2,1), left 0.28s cubic-bezier(0.4,0,0.2,1);
}

.tut-x {
  position: absolute;
  top: 10px; right: 10px;
  background: none; border: none;
  font-size: 1.3rem; line-height: 1;
  color: #bbb; cursor: pointer;
  padding: 2px 6px; border-radius: 4px;
}
.tut-x:hover { background: #f1f3f5; color: #444; }

.tut-icone {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, #e8f0fe, #d0e4ff);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #2563eb; font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.tut-titulo { font-weight: 700; font-size: 0.95rem; color: #1e293b; margin-bottom: 0.5rem; }
.tut-texto  { font-size: 0.84rem; color: #475569; line-height: 1.55; margin-bottom: 0.9rem; }

.tut-dots { display: flex; gap: 5px; margin-bottom: 0.9rem; }
.tut-dot  { width: 7px; height: 7px; border-radius: 50%; background: #e2e8f0; display: inline-block; transition: background 0.2s, transform 0.2s; }
.tut-dot.ativa { background: #2563eb; transform: scale(1.3); }

.tut-acoes { display: flex; align-items: center; gap: 6px; }
.tut-num   { font-size: 0.72rem; color: #94a3b8; flex: 1; text-align: center; }

.tut-btn-sec, .tut-btn-pri, .tut-btn-ok {
  border: none; border-radius: 8px;
  padding: 0.4rem 0.85rem; font-size: 0.8rem;
  font-weight: 600; cursor: pointer; white-space: nowrap;
}
.tut-btn-sec { background: #f1f5f9; color: #475569; }
.tut-btn-sec:hover { background: #e2e8f0; }
.tut-btn-pri { background: #2563eb; color: #fff; }
.tut-btn-pri:hover { background: #1d4ed8; }
.tut-btn-ok  { background: #16a34a; color: #fff; }
.tut-btn-ok:hover { background: #15803d; }

/* Campo preenchido pelo tutorial */
.tut-campo-ok {
  background-color: #fffbeb !important;
  border-color: #f59e0b !important;
  animation: tut-flash 0.5s ease;
}
@keyframes tut-flash {
  0%   { box-shadow: 0 0 0 0   rgba(245,158,11,0.5); }
  50%  { box-shadow: 0 0 0 8px rgba(245,158,11,0);   }
  100% { box-shadow: none; }
}
