/* ── JusHub — Custom Styles ─────────────────────────────────────────────────── */

:root {
  --sidebar-w: 260px;
  --sidebar-bg: #1e2a3a;
  --sidebar-text: #94a3b8;
  --sidebar-text-hover: #e2e8f0;
  --sidebar-active-bg: rgba(59,130,246,0.15);
  --sidebar-active-border: #3b82f6;
  --topbar-h: 56px;
  --content-bg: #f8fafc;
}

/* ── Layout ─────────────────────────────────────────────────────────────────── */

body { overflow: hidden; }

.layout-wrapper {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* ── Sidebar ────────────────────────────────────────────────────────────────── */

.sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: width 0.2s ease, transform 0.2s ease;
  overflow: hidden;
  z-index: 200;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  height: var(--topbar-h);
  padding: 0 1.25rem;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  white-space: nowrap;
}

.sidebar-brand i { color: #3b82f6; font-size: 1.3rem; }

.sidebar-nav {
  flex: 1;
  padding: 0.75rem 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1.25rem;
  color: var(--sidebar-text);
  text-decoration: none;
  font-size: 0.875rem;
  border-left: 3px solid transparent;
  transition: all 0.15s;
  white-space: nowrap;
}

.sidebar-item:hover {
  color: var(--sidebar-text-hover);
  background: rgba(255,255,255,0.04);
  text-decoration: none;
}

.sidebar-item.active {
  color: #fff;
  background: var(--sidebar-active-bg);
  border-left-color: var(--sidebar-active-border);
}

.sidebar-item i {
  width: 18px;
  text-align: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.sidebar-divider {
  height: 1px;
  background: rgba(255,255,255,0.07);
  margin: 0.6rem 1rem;
}

.sidebar-section {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #475569;
  padding: 0.4rem 1.25rem 0.2rem;
}

/* ── Sidebar version tag ────────────────────────────────────────────────────── */

.sidebar-version {
  text-align: center;
  padding: 0.3rem 0.6rem 0;
  font-size: 0.62rem;
  color: #334155;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

/* ── Sidebar Footer ─────────────────────────────────────────────────────────── */

.sidebar-footer {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 0.6rem;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  cursor: pointer;
  color: var(--sidebar-text);
  transition: background 0.15s;
}

.sidebar-user:hover { background: rgba(255,255,255,0.05); }

.sidebar-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #3b82f6;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sidebar-user-info { flex: 1; min-width: 0; }

.sidebar-user-name {
  color: #e2e8f0;
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-role { font-size: 0.68rem; color: #475569; }

.sidebar-user-menu {
  background: #273549;
  border-radius: 8px;
  margin-top: 0.4rem;
  overflow: hidden;
}

.sidebar-user-menu-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  font-size: 0.82rem;
  text-decoration: none;
  color: var(--sidebar-text);
  transition: background 0.15s;
}

.sidebar-user-menu-item:hover { background: rgba(255,255,255,0.05); text-decoration: none; }
.sidebar-user-menu-item.text-danger { color: #f87171; }

/* ── Topbar ─────────────────────────────────────────────────────────────────── */

.topbar {
  height: var(--topbar-h);
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  gap: 0.75rem;
  flex-shrink: 0;
}

.topbar-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
  flex: 1;
}

.btn-sidebar-toggle {
  background: none;
  border: none;
  color: #64748b;
  font-size: 1rem;
  cursor: pointer;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  line-height: 1;
  transition: all 0.15s;
}

.btn-sidebar-toggle:hover { background: #f1f5f9; color: #1e293b; }

/* ── Page content ───────────────────────────────────────────────────────────── */

.main-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.page-content {
  flex: 1;
  overflow-y: auto;
  background: var(--content-bg);
  padding: 1.5rem;
}

/* ── Cards ──────────────────────────────────────────────────────────────────── */

.card {
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  border-radius: 10px;
}

.card-header {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  border-radius: 10px 10px 0 0 !important;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.9rem 1.25rem;
}

/* ── Tables ─────────────────────────────────────────────────────────────────── */

.table th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  font-weight: 600;
  border-bottom-width: 1px;
  background: #f8fafc;
  white-space: nowrap;
}

.table td { vertical-align: middle; font-size: 0.875rem; }

/* ── Badges e Status ────────────────────────────────────────────────────────── */

.badge-plano {
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.status-dot.ativo  { background: #22c55e; }
.status-dot.inativo { background: #e2e8f0; }

/* ── Feature rows ───────────────────────────────────────────────────────────── */

.feature-group-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #94a3b8;
  padding: 0.75rem 0 0.25rem;
}

.feature-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.feature-row:last-child { border-bottom: none; }
.feature-label { flex: 1; font-size: 0.85rem; }
.feature-key { font-size: 0.72rem; color: #94a3b8; font-family: monospace; }

/* ── Em construção ──────────────────────────────────────────────────────────── */

.em-construcao {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  color: #94a3b8;
}

.em-construcao i { font-size: 3.5rem; color: #cbd5e1; margin-bottom: 1.25rem; }
.em-construcao h2 { font-size: 1.3rem; font-weight: 600; color: #64748b; margin-bottom: 0.5rem; }

/* ── Dashboard KPIs ─────────────────────────────────────────────────────────── */

.kpi-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.kpi-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.kpi-icon.blue   { background: #dbeafe; color: #2563eb; }
.kpi-icon.green  { background: #dcfce7; color: #16a34a; }
.kpi-icon.orange { background: #ffedd5; color: #ea580c; }
.kpi-icon.purple { background: #ede9fe; color: #7c3aed; }
.kpi-icon.red    { background: #fee2e2; color: #dc2626; }
.kpi-card.kpi-alerta { border-color: #fca5a5; }
.kpi-card.kpi-alerta .kpi-value { color: #dc2626; }

.kpi-value { font-size: 1.5rem; font-weight: 700; color: #1e293b; line-height: 1; }
.kpi-label { font-size: 0.8rem; color: #64748b; margin-top: 0.15rem; }

/* ── Forms ──────────────────────────────────────────────────────────────────── */

.form-label { font-size: 0.85rem; font-weight: 500; color: #374151; }
.form-control, .form-select { font-size: 0.875rem; }

.form-section-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #64748b;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

/* ── Login page ─────────────────────────────────────────────────────────────── */

.login-page {
  min-height: 100vh;
  background: var(--sidebar-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border-radius: 14px;
  padding: 2.5rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

.login-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 0.25rem;
}

.login-logo i { color: #3b82f6; }

.login-subtitle { font-size: 0.85rem; color: #94a3b8; text-align: center; margin-bottom: 2rem; }

/* ── Misc ───────────────────────────────────────────────────────────────────── */

[x-cloak] { display: none !important; }

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

.btn-xs {
  padding: 0.15rem 0.5rem;
  font-size: 0.75rem;
}

/* Backdrop atrás do menu no modo gaveta (mobile) */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.45);
  z-index: 150;
}

@media (max-width: 991px) {
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    transform: translateX(-100%);
  }
  .sidebar.mobile-open { transform: translateX(0); }
  .sidebar.mobile-open ~ .sidebar-backdrop { display: block; }
}

/* ── Sidebar collapse — desktop icon-only mode ──────────────────────────────── */

@media (min-width: 992px) {
  .sidebar.collapsed { width: 56px; }

  .sidebar.collapsed .sidebar-brand { justify-content: center; padding: 0; }

  .sidebar.collapsed .sidebar-brand-text,
  .sidebar.collapsed .sidebar-item > span,
  .sidebar.collapsed .sidebar-section,
  .sidebar.collapsed .sidebar-version,
  .sidebar.collapsed .sidebar-user-info,
  .sidebar.collapsed .sidebar-user > i { display: none; }

  .sidebar.collapsed .sidebar-item {
    justify-content: center;
    padding: 0.65rem 0;
    gap: 0;
  }
  .sidebar.collapsed .sidebar-item i { width: auto; }

  .sidebar.collapsed .sidebar-user { justify-content: center; padding: 0.5rem 0; }
  .sidebar.collapsed .sidebar-user-menu { display: none !important; }

  /* Rótulo flutuante ao passar o mouse quando recolhido */
  .sidebar.collapsed .sidebar-item { position: relative; }
  .sidebar.collapsed .sidebar-item::after {
    content: attr(title);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 0.5rem;
    padding: 0.35rem 0.6rem;
    background: #0f172a;
    color: #e2e8f0;
    font-size: 0.78rem;
    white-space: nowrap;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.12s;
    z-index: 300;
  }
  .sidebar.collapsed .sidebar-item:hover::after { opacity: 1; }
}

/* ── Kanban (funil de prospecção) ───────────────────────────────────────────── */

.kanban-board {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  align-items: flex-start;
}

.kanban-column {
  flex: 0 0 280px;
  max-width: 280px;
  background: #f1f5f9;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
}

.kanban-column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.75rem;
  position: sticky;
  top: 0;
}

.kanban-count {
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  background: #fff;
  border-radius: 999px;
  padding: 0.05rem 0.5rem;
}

.kanban-col {
  flex: 1;
  min-height: 120px;
  max-height: calc(100vh - 280px);
  overflow-y: auto;
  padding: 0 0.5rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.kanban-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  cursor: grab;
}
.kanban-card:active { cursor: grabbing; }

.kanban-card-num {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  font-weight: 600;
  color: #1e293b;
  text-decoration: none;
}
.kanban-card-num:hover { color: #2563eb; text-decoration: underline; }

.kanban-card-body { margin: 0.35rem 0; }

.kanban-card-parte {
  font-size: 0.74rem;
  color: #475569;
  line-height: 1.3;
  word-break: break-word;
}
.kanban-card-parte .lbl {
  font-size: 0.6rem;
  font-weight: 700;
  color: #94a3b8;
}

.kanban-card-orgao {
  font-size: 0.7rem;
  color: #94a3b8;
  margin-top: 0.15rem;
}

.kanban-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.68rem;
}

.kanban-vazio,
.kanban-truncado {
  text-align: center;
  font-size: 0.72rem;
  color: #94a3b8;
  padding: 0.75rem 0.5rem;
}

/* Estados de arraste (Sortable.js) */
.sortable-ghost { opacity: 0.4; }
.sortable-chosen { box-shadow: 0 4px 14px rgba(37,99,235,0.25); }

/* ── Loading bar ────────────────────────────────────────────────────────────── */

#loading-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: #3b82f6;
  transform: scaleX(0);
  transform-origin: left;
  z-index: 9999;
  pointer-events: none;
}

/* ── Toast ──────────────────────────────────────────────────────────────────── */

#toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 280px;
  max-width: 380px;
  pointer-events: none;
}

.toast-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: #1e293b;
  color: #e2e8f0;
  font-size: 0.85rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  border-left: 3px solid #3b82f6;
  animation: toast-in 0.2s ease;
}

.toast-item.success { border-left-color: #22c55e; }
.toast-item.success i { color: #4ade80; }
.toast-item.error   { border-left-color: #ef4444; }
.toast-item.error   i { color: #f87171; }
.toast-item.warning { border-left-color: #f59e0b; }
.toast-item.warning i { color: #fbbf24; }
.toast-item.info    { border-left-color: #3b82f6; }
.toast-item.info    i { color: #60a5fa; }

@keyframes toast-in {
  from { opacity: 0; transform: translateX(1rem); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Utility extra ──────────────────────────────────────────────────────────── */

.x-small { font-size: 0.72rem !important; }

/* ── Badges de natureza, fase e status ─────────────────────────────────────── */

.badge-nb, .badge-fb, .badge-sb {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.22rem 0.65rem;
  border-radius: 5px;
  white-space: nowrap;
  display: inline-block;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

/* Natureza */
.badge-nb.civel          { background: #dbeafe; color: #1e40af; }
.badge-nb.trabalhista    { background: #fef3c7; color: #92400e; }
.badge-nb.criminal       { background: #fee2e2; color: #991b1b; }
.badge-nb.tributario     { background: #ede9fe; color: #5b21b6; }
.badge-nb.familia        { background: #fce7f3; color: #9d174d; }
.badge-nb.previdenciario { background: #d1fae5; color: #065f46; }
.badge-nb.ambiental      { background: #dcfce7; color: #14532d; }
.badge-nb.administrativo { background: #f1f5f9; color: #334155; border: 1px solid #e2e8f0; }
.badge-nb.outro          { background: #f8fafc; color: #64748b; border: 1px solid #e2e8f0; }

/* Fase */
.badge-fb.conhecimento { background: #dbeafe; color: #1e40af; }
.badge-fb.recurso      { background: #fef3c7; color: #b45309; }
.badge-fb.execucao     { background: #fee2e2; color: #b91c1c; }
.badge-fb.arquivado    { background: #f1f5f9; color: #475569; }

/* Status */
.badge-sb.ativo     { background: #dcfce7; color: #15803d; }
.badge-sb.suspenso  { background: #fef9c3; color: #a16207; }
.badge-sb.arquivado { background: #f1f5f9; color: #64748b; }

/* ── Stepper de fases do processo ───────────────────────────────────────────── */

.fase-stepper {
  display: flex;
  align-items: flex-start;
  padding: 0.5rem 0 0.25rem;
  overflow-x: auto;
}

.fase-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 90px;
  text-align: center;
  position: relative;
  flex: 1;
}

.fase-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 13px;
  left: calc(50% + 15px);
  right: calc(-50% + 15px);
  height: 2px;
  background: #e2e8f0;
  z-index: 0;
}

.fase-step.done:not(:last-child)::after { background: #4ade80; }

.fase-step-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  z-index: 1;
  position: relative;
  border: 2px solid #e2e8f0;
  background: #fff;
  color: #cbd5e1;
}

.fase-step.done .fase-step-icon    { background: #22c55e; border-color: #22c55e; color: #fff; }
.fase-step.current .fase-step-icon { background: #3b82f6; border-color: #3b82f6; color: #fff; box-shadow: 0 0 0 4px rgba(59,130,246,0.15); }

.fase-step-label {
  font-size: 0.68rem;
  color: #94a3b8;
  margin-top: 0.4rem;
  line-height: 1.2;
  white-space: nowrap;
}

.fase-step.done .fase-step-label    { color: #16a34a; font-weight: 500; }
.fase-step.current .fase-step-label { color: #2563eb; font-weight: 700; }

/* ── Key-value do Resumo do processo ────────────────────────────────────────── */

.resumo-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.resumo-row:last-child { border-bottom: none; }

.resumo-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #94a3b8;
  min-width: 110px;
  flex-shrink: 0;
}

.resumo-value { font-size: 0.875rem; color: #1e293b; }

/* ── Botões de ação tipo ícone ───────────────────────────────────────────────── */

.btn-icon {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  border: 1px solid transparent;
  transition: all 0.15s;
  text-decoration: none !important;
  cursor: pointer;
  background: none;
  padding: 0;
  vertical-align: middle;
  flex-shrink: 0;
}

.btn-icon + .btn-icon { margin-left: 4px; }

.btn-icon.view   { color: #3b82f6; border-color: #bfdbfe; }
.btn-icon.edit   { color: #16a34a; border-color: #bbf7d0; }
.btn-icon.check  { color: #16a34a; border-color: #bbf7d0; }
.btn-icon.undo   { color: #d97706; border-color: #fde68a; }
.btn-icon.danger { color: #dc2626; border-color: #fecaca; }

.btn-icon.view:hover   { background: #dbeafe; color: #1d4ed8; border-color: #93c5fd; }
.btn-icon.edit:hover   { background: #dcfce7; color: #15803d; border-color: #86efac; }
.btn-icon.check:hover  { background: #dcfce7; color: #15803d; border-color: #86efac; }
.btn-icon.undo:hover   { background: #fef3c7; color: #b45309; border-color: #fcd34d; }
.btn-icon.danger:hover { background: #fee2e2; color: #b91c1c; border-color: #fca5a5; }

/* ── Calendário de Tarefas ──────────────────────────────────────────────────── */

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-top: 1px solid #dee2e6;
  border-left: 1px solid #dee2e6;
}

.cal-header {
  background: #f8f9fa;
  text-align: center;
  font-size: .78rem;
  font-weight: 600;
  color: #6c757d;
  padding: .5rem 0;
  border-right: 1px solid #dee2e6;
  border-bottom: 1px solid #dee2e6;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.cal-cell {
  min-height: 110px;
  border-right: 1px solid #dee2e6;
  border-bottom: 1px solid #dee2e6;
  padding: .3rem .4rem;
  vertical-align: top;
  font-size: .8rem;
  position: relative;
}

.cal-outro-mes { background: #fbfbfb; }

.cal-hoje { background: #eff6ff; }

.cal-day-num {
  font-size: .8rem;
  color: #343a40;
  margin-bottom: .2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.cal-add-btn {
  color: #adb5bd;
  text-decoration: none;
  font-size: 1rem;
  line-height: 1;
  font-weight: 700;
  visibility: hidden;
  border: none;
  background: none;
  padding: 0 2px;
  cursor: pointer;
}

.cal-cell:hover .cal-add-btn { visibility: visible; }

.cal-tasks { display: flex; flex-direction: column; gap: 2px; }

.cal-task {
  display: block;
  border-radius: 3px;
  padding: 1px 5px;
  font-size: .68rem;
  text-decoration: none;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  line-height: 1.5;
  border: none;
  text-align: left;
  width: 100%;
  cursor: pointer;
}

.cal-task-alta   { background: #fee2e2; color: #991b1b; }
.cal-task-media  { background: #fef9c3; color: #854d0e; }
.cal-task-baixa  { background: #f1f5f9; color: #475569; }
.cal-task-done   { background: #dcfce7; color: #166534; text-decoration: line-through; }
.cal-task-fatal  { background: #fce7f3; color: #9d174d; border-left: 3px solid #ec4899; }

.cal-mais {
  font-size: .65rem;
  color: #6c757d;
  padding-left: 4px;
}

.cal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

/* Banco de Teses — card de jurisprudência (estilo informativo) */
.bt-card-rotulo { background: var(--bs-tertiary-bg); color: var(--bs-secondary-color); padding: .5rem .75rem; text-align: right; font-size: 1.05rem; }
@media (max-width: 767.98px) { .bt-card-rotulo { text-align: left; padding: .35rem .5rem; font-size: .9rem; } }
.bt-card-destaque { background: var(--bs-primary-bg-subtle); border-bottom: 1px solid var(--bs-border-color); }
.bt-card details > summary { cursor: pointer; }
/* ficha da tese: precedentes e fundamentos rolam dentro da coluna */
.bt-rolagem-lista { max-height: 72vh; overflow-y: auto; padding-right: .25rem; }
