/* ==========================
   MODULO: PRÓTESE CAPILAR
   Escopado para não quebrar o sistema
   ========================== */

.mod-protese{
  --bg: #f9fbff;
  --card: #ffffff;
  --ink: #1A237E;
  --muted: #425a84;
  --line: #e1e8f4;
  --brand1: #13347B;
  --brand2: #2685BE;
  --soft: #e3f2fd;
  --soft2: #F3F9FE;
  --good: #1b8a5a;
  --warn: #b26a00;
  --bad: #b42318;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --radius: 14px;
  width: 100%;
  overflow-x: hidden;
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
}

.mod-protese *{ box-sizing: border-box; }

.mod-protese .doc-header{
  background: linear-gradient(90deg, var(--brand1) 80%, var(--brand2) 100%);
  color: #fff;
  text-align: center;
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 28px 0 18px 0;
  border-radius: 0 0 18px 18px;
  box-shadow: 0 1px 10px #0002;
  margin-bottom: 14px;
}

.mod-protese .doc-header-inner{
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 4vw;
}

.mod-protese .title{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  flex-wrap: wrap;
}

.mod-protese .icon{
  font-size: 2.2rem;
  line-height: 1;
}

.mod-protese h1{
  margin: 0;
  font-size: 2.05rem;
  font-weight: 800;
  line-height: 1.16;
  word-break: break-word;
  color: #fff;
}

.mod-protese .sub{
  margin: 8px auto 0 auto;
  max-width: 1000px;
  color: #BFE8FF;
  font-size: 1.05rem;
  line-height: 1.35;
  word-break: break-word;
}

.mod-protese .chips{ margin-top: 6px; }

.mod-protese .chip{
  display:inline-flex;
  align-items:center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #ffffff20;
  border: 1px solid #ffffff25;
  font-size: .9rem;
  margin: 6px 6px 0 0;
}

.mod-protese .wrap{
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2vw;
}

.mod-protese .card{
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 1px 12px #0001;
  border: 1px solid #00000008;
  padding: 22px 22px;
}

.mod-protese .lead{
  margin: 0 0 18px 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 1.02rem;
}

.mod-protese .toc{
  background: var(--soft2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 14px 0 22px 0;
}

.mod-protese .toc h2{
  margin: 0 0 10px 0;
  font-size: 1.05rem;
  color: var(--brand1);
  display:flex;
  align-items:center;
  gap: 8px;
}

.mod-protese .toc ul{
  margin: 0;
  padding-left: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 18px;
}

.mod-protese .toc a{
  color: var(--brand1);
  text-decoration: none;
  font-weight: 650;
}
.mod-protese .toc a:hover{ text-decoration: underline; }

.mod-protese section{
  background: var(--soft);
  border-radius: 12px;
  padding: 18px 18px 14px 18px;
  margin: 0 0 18px 0;
  box-shadow: 0 1px 3px #0001;
  border: 1px solid #00000008;
}

.mod-protese section h2{
  margin: 0 0 10px 0;
  color: #0D47A1;
  font-size: 1.14rem;
  display:flex;
  align-items:center;
  gap: 8px;
}

.mod-protese section h3{
  margin: 14px 0 8px 0;
  color: #0D47A1;
  font-size: 1.03rem;
}

.mod-protese p,
.mod-protese li{ line-height: 1.55; }

.mod-protese code{
  background: #cfd8dc !important;
  color: #0D47A1 !important;
  padding: 2px 6px !important;
  border-radius: 6px !important;
  font-family: var(--mono) !important;
  font-size: .95em !important;
}

.mod-protese pre{
  background: #ffffff;
  border: 1px solid #cfe3ff;
  padding: 12px 12px;
  border-radius: 10px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: .92rem;
  color: #0D47A1;
  line-height: 1.5;
}

.mod-protese .grid-2{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.mod-protese .mini-card{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
}

.mod-protese .mini-card h3{
  margin-top: 0;
}

.mod-protese .callout{
  border-radius: 12px;
  padding: 12px 14px;
  margin: 12px 0;
  border: 1px solid transparent;
}

.mod-protese .callout.info{
  background: #eef6ff;
  border-color: #cfe3ff;
  color: #13406f;
}

.mod-protese .callout.warn{
  background: #fff8e8;
  border-color: #ffe3a6;
  color: #7a5a16;
}

.mod-protese .callout.danger{
  background: #fff1f2;
  border-color: #fecdd3;
  color: #9f1239;
}

.mod-protese .table-wrap{
  overflow-x:auto;
  background:#fff;
  border:1px solid var(--line);
  border-radius:12px;
}

.mod-protese table{
  width:100%;
  border-collapse:collapse;
}

.mod-protese th,
.mod-protese td{
  padding: 11px 12px;
  border-bottom: 1px solid #edf2f7;
  text-align:left;
  vertical-align:top;
}

.mod-protese th{
  background:#f7fbff;
  color:#123b73;
}

.mod-protese .flow{
  display:flex;
  gap:10px;
  align-items:stretch;
  flex-wrap:wrap;
  margin: 14px 0;
}

.mod-protese .flow-step{
  flex:1 1 210px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:12px;
  padding:12px 14px;
  min-height: 110px;
}

.mod-protese .flow-step strong{
  display:block;
  margin-bottom:6px;
  color:#123b73;
}

.mod-protese .flow-arrow{
  align-self:center;
  font-weight:900;
  color:#1f4e79;
  font-size:1.2rem;
}

.mod-protese .ordered{
  padding-left: 20px;
}

.mod-protese .checklist{
  list-style: none;
  padding-left: 0;
}

.mod-protese .checklist li{
  position: relative;
  padding-left: 28px;
  margin: 8px 0;
}

.mod-protese .checklist li::before{
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--good);
  font-weight: 800;
}

.mod-protese .footer-note{
  color: var(--muted);
  margin-top: 14px;
}

@media (max-width: 900px){
  .mod-protese .toc ul,
  .mod-protese .grid-2{
    grid-template-columns: 1fr;
  }

  .mod-protese h1{
    font-size: 1.6rem;
  }

  .mod-protese .card{
    padding: 16px;
  }
}
