/* ==========================
   MODULO: AGENDAMENTOS
   Escopado para não quebrar o sistema
   ========================== */

.mod-agendamento{
  --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-agendamento *{ box-sizing: border-box; }

/* ===== TOPO azul 100% da tela ===== */
.mod-agendamento .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-agendamento .doc-header-inner{
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 4vw;
}

.mod-agendamento .title{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  flex-wrap: wrap;
}

.mod-agendamento .icon{
  font-size: 2.2rem;
  line-height: 1;
}

.mod-agendamento h1{
  margin: 0;
  font-size: 2.05rem;
  font-weight: 800;
  line-height: 1.16;
  word-break: break-word;
  color: #fff;
}

.mod-agendamento .sub{
  margin: 8px auto 0 auto;
  max-width: 1000px;
  color: #BFE8FF;
  font-size: 1.05rem;
  line-height: 1.35;
  word-break: break-word;
}

.mod-agendamento .chips{ margin-top: 6px; }

.mod-agendamento .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;
}

/* ===== Conteúdo ===== */
.mod-agendamento .wrap{
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2vw;
}

.mod-agendamento .card{
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 1px 12px #0001;
  border: 1px solid #00000008;
  padding: 22px 22px;
}

.mod-agendamento .lead{
  margin: 0 0 18px 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 1.02rem;
}

/* TOC */
.mod-agendamento .toc{
  background: var(--soft2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 14px 0 22px 0;
}

.mod-agendamento .toc h2{
  margin: 0 0 10px 0;
  font-size: 1.05rem;
  color: var(--brand1);
  display:flex;
  align-items:center;
  gap: 8px;
}

.mod-agendamento .toc ul{
  margin: 0;
  padding-left: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 18px;
}

.mod-agendamento .toc a{
  color: var(--brand1);
  text-decoration: none;
  font-weight: 650;
}
.mod-agendamento .toc a:hover{ text-decoration: underline; }

/* Sections */
.mod-agendamento 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-agendamento section h2{
  margin: 0 0 10px 0;
  color: #0D47A1;
  font-size: 1.14rem;
  display:flex;
  align-items:center;
  gap: 8px;
}

.mod-agendamento section h3{
  margin: 14px 0 8px 0;
  color: #0D47A1;
  font-size: 1.03rem;
}

.mod-agendamento p,
.mod-agendamento li{ line-height: 1.55; }

/* IMPORTANTÍSSIMO: seu style.css global estiliza "code" pesado.
   Aqui a gente corrige APENAS dentro do módulo. */
.mod-agendamento 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-agendamento 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;
  margin: 10px 0 12px 0;
  white-space: pre;
}
.mod-agendamento pre code{
  background: transparent !important;
  padding: 0 !important;
}

/* Grid / Boxes */
.mod-agendamento .grid2{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
  margin-top: 10px;
}

.mod-agendamento .box{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 12px;
}

.mod-agendamento .box h4{
  margin: 0 0 8px 0;
  color: var(--brand1);
  font-size: 1rem;
  display:flex;
  align-items:center;
  gap: 8px;
}

/* Callouts */
.mod-agendamento .callout{
  background: #fff;
  border-radius: 12px;
  padding: 12px 12px;
  border: 1px solid var(--line);
  margin: 10px 0 0 0;
}

.mod-agendamento .callout.bad{
  border-color: #ffd0cc;
  background: #fff5f4;
}
.mod-agendamento .callout.bad b{ color: var(--bad); }

.mod-agendamento .callout.warn{
  border-color: #ffe7c2;
  background: #fffaf1;
}
.mod-agendamento .callout.warn b{ color: var(--warn); }

.mod-agendamento .callout.good{
  border-color: #c8f0de;
  background: #f2fffa;
}

/* Table */
.mod-agendamento table{
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  margin-top: 10px;
}

.mod-agendamento th,
.mod-agendamento td{
  padding: 10px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
  font-size: .98rem;
}

.mod-agendamento th{
  background: #F5F8FE;
  color: var(--brand1);
  font-weight: 800;
}

.mod-agendamento tr:last-child td{ border-bottom: none; }

/* voltar ao topo */
.mod-agendamento .backtop{ margin-top: 12px; }
.mod-agendamento .backtop a{
  color: var(--brand1);
  font-weight: 800;
  text-decoration: none;
}
.mod-agendamento .backtop a:hover{ text-decoration: underline; }

/* lucide */
.mod-agendamento .lucide{
  width: 18px;
  height: 18px;
  vertical-align: -3px;
}

/* Responsivo */
@media (max-width: 900px){
  .mod-agendamento .toc ul{ grid-template-columns: 1fr; }
  .mod-agendamento .grid2{ grid-template-columns: 1fr; }
  .mod-agendamento h1{ font-size: 1.25rem; }
  .mod-agendamento .icon{ font-size: 1.6rem; }
  .mod-agendamento .card{ padding: 14px 12px; }
  .mod-agendamento section{ padding: 14px 12px; }
}
