/*
 * Portal Imagem Contabilidade
 * Estilos — Manual do Usuário + POPs
 * Versão 1.0 — maio/2026
 */

/* ─── BOTÃO NO MENU LATERAL ─────────────────────────────────────────── */
#im-manual-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 16px;
  background: none;
  border: none;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 0;
  color: rgba(255,255,255,0.75);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, color 0.15s;
  margin-top: 4px;
}
#im-manual-btn:hover {
  background: rgba(255,255,255,0.07);
  color: #fff;
}
#im-manual-btn i {
  font-size: 16px;
  flex-shrink: 0;
}

/* ─── OVERLAY ─────────────────────────────────────────────────────────── */
#im-manual-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9999;
  align-items: flex-start;
  justify-content: center;
  padding: 32px 20px;
  overflow-y: auto;
}
#im-manual-overlay.active {
  display: flex;
}

/* ─── MODAL ─────────────────────────────────────────────────────────── */
#im-manual-modal {
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 900px;
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

/* ─── HEADER ─────────────────────────────────────────────────────────── */
.im-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #6B1D2A;
  flex-shrink: 0;
}
.im-modal-hl {
  display: flex;
  align-items: center;
  gap: 12px;
}
.im-logo-circle {
  width: 32px;
  height: 32px;
  background: #C9A84C;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: #3d0f18;
  flex-shrink: 0;
}
.im-modal-title {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
}
.im-modal-sub {
  color: rgba(255,255,255,0.6);
  font-size: 12px;
  margin-top: 2px;
}
.im-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  transition: background 0.15s, color 0.15s;
}
.im-close:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

/* ─── BODY ─────────────────────────────────────────────────────────── */
.im-modal-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* ─── SIDEBAR ─────────────────────────────────────────────────────────── */
.im-sidebar {
  width: 210px;
  min-width: 210px;
  border-right: 1px solid #ebebeb;
  overflow-y: auto;
  padding: 12px 0;
  background: #fafafa;
}
.im-sb-grupo {
  padding-bottom: 8px;
}
.im-sb-label {
  font-size: 10px;
  font-weight: 600;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 14px 3px;
}
.im-sb-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  padding: 7px 14px;
  border: none;
  background: none;
  font-size: 13px;
  color: #444;
  cursor: pointer;
  text-align: left;
  transition: background 0.1s, color 0.1s;
  font-family: inherit;
}
.im-sb-btn i {
  font-size: 15px;
  color: #999;
  flex-shrink: 0;
}
.im-sb-btn:hover {
  background: #f0f0f0;
  color: #222;
}
.im-sb-btn.active {
  background: #fdf0f2;
  color: #6B1D2A;
  font-weight: 600;
}
.im-sb-btn.active i {
  color: #6B1D2A;
}

/* ─── CONTENT ─────────────────────────────────────────────────────────── */
.im-content {
  flex: 1;
  overflow-y: auto;
  padding: 28px 32px;
  background: #fff;
}

/* ─── TIPOGRAFIA ─────────────────────────────────────────────────────── */
.im-sec-title {
  font-size: 20px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 6px;
  line-height: 1.3;
}
.im-badge {
  display: inline-block;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  background: #fdf0f2;
  color: #6B1D2A;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}
.im-desc {
  font-size: 14px;
  color: #555;
  line-height: 1.65;
  margin-bottom: 22px;
}
.im-hr {
  border: none;
  border-top: 1px solid #eee;
  margin: 20px 0;
}

/* ─── GRID DE CARDS ─────────────────────────────────────────────────── */
.im-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 22px;
}
.im-card-info {
  background: #f8f8f8;
  border-radius: 8px;
  padding: 14px 16px;
  border: 1px solid #ececec;
}
.im-card-label {
  font-size: 11px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
  font-weight: 600;
}
.im-card-val {
  font-size: 13px;
  color: #333;
  line-height: 1.55;
}
.im-card-val em {
  font-style: italic;
  color: #555;
}

/* ─── STEPS ─────────────────────────────────────────────────────────── */
.im-steps-title {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
  margin-top: 4px;
}
.im-step {
  display: flex;
  gap: 12px;
  margin-bottom: 11px;
  align-items: flex-start;
}
.im-num {
  min-width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #6B1D2A;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.im-step-text {
  font-size: 13px;
  color: #333;
  line-height: 1.6;
}
.im-step-text strong {
  font-weight: 600;
  color: #1a1a1a;
}
.im-step-text code {
  background: #f3f3f3;
  padding: 1px 5px;
  border-radius: 3px;
  font-family: monospace;
  font-size: 12px;
  color: #6B1D2A;
}
.im-step-text em {
  font-style: italic;
  color: #555;
}

/* ─── TABS ─────────────────────────────────────────────────────────── */
.im-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #e8e8e8;
  margin-bottom: 20px;
}
.im-tab {
  padding: 8px 16px;
  font-size: 13px;
  border: none;
  background: none;
  cursor: pointer;
  color: #888;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-family: inherit;
  transition: color 0.15s, border-color 0.15s;
}
.im-tab:hover:not(.active) {
  color: #444;
}
.im-tab.active {
  color: #6B1D2A;
  border-bottom-color: #6B1D2A;
  font-weight: 600;
}
.im-tab-panel {
  display: none;
}
.im-tab-panel.active {
  display: block;
}

/* ─── POP BOXES ─────────────────────────────────────────────────────── */
.im-pop-box {
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  margin-bottom: 16px;
  overflow: hidden;
}
.im-pop-head {
  background: #f8f8f8;
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ececec;
  gap: 12px;
}
.im-pop-head-left {
  font-size: 13px;
  font-weight: 600;
  color: #222;
}
.im-pop-head-right {
  font-size: 11px;
  color: #888;
  white-space: nowrap;
  flex-shrink: 0;
}
.im-pop-body {
  padding: 14px 16px;
}
.im-pop-row {
  display: flex;
  gap: 10px;
  font-size: 13px;
  margin-bottom: 9px;
  align-items: flex-start;
  color: #333;
  line-height: 1.55;
}
.im-pop-row:last-child {
  margin-bottom: 0;
}
.im-pop-row i {
  font-size: 15px;
  color: #C9A84C;
  margin-top: 1px;
  flex-shrink: 0;
}
.im-pop-row strong {
  font-weight: 600;
  color: #1a1a1a;
}
.im-pop-row code {
  background: #f3f3f3;
  padding: 1px 5px;
  border-radius: 3px;
  font-family: monospace;
  font-size: 12px;
  color: #6B1D2A;
}
.im-pop-row em {
  font-style: italic;
  color: #555;
}

/* ─── ALERT ─────────────────────────────────────────────────────────── */
.im-alert {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #fdf0f2;
  border: 1px solid #f0c0c8;
  margin-bottom: 18px;
  align-items: flex-start;
}
.im-alert i {
  color: #6B1D2A;
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}
.im-alert span {
  font-size: 13px;
  color: #6B1D2A;
  line-height: 1.5;
}
.im-alert strong {
  font-weight: 600;
}

/* ─── VERSÃO / RODAPÉ ─────────────────────────────────────────────── */
.im-ver {
  font-size: 11px;
  color: #bbb;
  display: flex;
  gap: 16px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #eee;
  flex-wrap: wrap;
}

/* ─── RESPONSIVE ─────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .im-sidebar {
    display: none;
  }
  .im-grid-2 {
    grid-template-columns: 1fr;
  }
  .im-content {
    padding: 20px 18px;
  }
  .im-pop-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}
