/* ==================================================
   INLINE TABLE / CARD LIST (DESKTOP + MOBILE)
   Reutilizável em qualquer página
================================================== */

/* ====== DESKTOP (TABELA) ====== */
.inline-table td.clickable {
  cursor: pointer;
}

.inline-table td.clickable:hover {
  background: #f8f9fb;
}

/* ====== BADGES ====== */
.inline-pos {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 26px;
  border-radius: 999px;
  padding: 0 10px;
  background: #f1f5ff;
  color: #0d6efd;
  font-weight: 800;
  font-size: 0.85rem;
  border: 1px solid rgba(13, 110, 253, 0.15);
}

.inline-status {
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
}

/* ====== MOBILE CARD LIST ====== */
@media (max-width: 576px) {
  .inline-table thead {
    display: none;
  }

  .inline-table tbody tr {
    display: block;
    border: 1px solid #eef2f7;
    border-radius: 16px;
    margin-bottom: 12px;
    background: #fff;
    overflow: hidden;
  }

  .inline-table tbody td {
    display: block;
    width: 100%;
    border: 0 !important;
  }

  .inline-main {
    padding: 14px !important;
  }

  .inline-secondary {
    padding: 0 14px 14px 14px !important;
    text-align: left !important;
  }

  .inline-hide-mobile {
    display: none !important;
  }
}

/* ====== TITULOS / DESCRIÇÕES ====== */
.inline-title {
  font-weight: 800;
  font-size: 1.3rem;
  line-height: 1.2;
  margin: 0;
}

.inline-desc {
  margin-top: 4px;
  color: #6c757d;
  font-size: 0.9rem;
  line-height: 1.2;
}

/* ====== AJUSTE MODAL / EDITOR NO DESKTOP (CENTRALIZADO E SEGURO) ====== */
@media (min-width: 992px) {
  .page-categorias .editor-panel {
    position: relative; /* 🔑 */
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;

    width: 100%;
    max-width: 760px;
    max-height: 85vh;

    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);

    /* estado fechado */
    transform: scale(0.96);
    opacity: 0;
  }

  .page-categorias .editor-panel.show {
    transform: scale(1);
    opacity: 1;
  }
}

.img-placeholder {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: #f5f7fa;
  border: 1px solid #d9dee5;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  transition: all 0.2s ease;
  color: #6c757d;
  font-size: 0.7rem;
  font-weight: 600;
}

.img-placeholder i.bi-camera-fill {
  font-size: 1rem;
  margin-bottom: 4px;
}

.foto-text {
  display: flex;
  align-items: center;
  gap: 3px;
  line-height: 1;
}

.foto-plus {
  font-size: 0.65rem;
}

.img-placeholder:hover {
  background: #eef4ff;
  border-color: rgb(25, 150, 241);
  color: rgb(25, 150, 241);
}

.img-wrapper {
  position: relative;
  width: 60px;
  margin: 0 auto;
}

.img-overlay {
  position: absolute;
  bottom: -6px;
  right: -6px;
  background: #fff;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: 0.2s ease;
}

.img-overlay:hover {
  background: #eef4ff;
  color: #0d6efd;
}

.img-size {
  font-size: 0.65rem;
  margin-top: 4px;
  color: #6c757d;
}
.lm-tooltip .tooltip-inner {
  background-color: #111827;
  font-weight: 600;
  border-radius: 8px;
}
