/* Desenhos da MTC no prontuário (31/10/2026): o microssistema da língua e o mapa dos 5 elementos (mapas-mtc.js). */
.mt-caixa { position: relative; min-width: 0; max-width: 100%; box-sizing: border-box; display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap; padding: 14px; border: 1px solid #E3E8F2; border-radius: 16px;
  background: linear-gradient(180deg, #FFFCFA, #FFFFFF 60%); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.mt-figura { flex: none; display: grid; justify-items: center; gap: 6px; }
.mt-detalhe { flex: 1 1 260px; min-width: 0; display: grid; gap: 10px; align-content: start; }
.mt-dica { margin: 0; font: 600 12.5px var(--sans, sans-serif); color: #64748B; }

/* Língua */
.mt-lingua { width: 250px; height: 312px; overflow: visible; }
.mt-base { stroke: none; }
.mt-borda { fill: none; stroke: #B85C63; stroke-width: 2.2; }
.mt-sulco { fill: none; stroke: rgba(122, 40, 52, .22); stroke-width: 2; stroke-linecap: round; }
.mt-zona > g > * { fill: rgba(255, 255, 255, .16); stroke: rgba(255, 255, 255, .85); stroke-width: 2.5; transition: fill .15s ease; }
.mt-zona[role="button"] { cursor: pointer; outline: none; }
.mt-zona[role="button"]:hover > g > *, .mt-zona[role="button"]:focus-visible > g > * { fill: rgba(255, 255, 255, .38); }
.mt-zona[role="button"]:focus-visible > g > * { stroke: #14213D; }
.mt-nome { font: 700 11px var(--sans, sans-serif); fill: #7A2834; text-anchor: middle; pointer-events: none; }
.mt-lado { font: 800 11px var(--sans, sans-serif); fill: #94A3B8; }
.mt-zona.on .mt-nome { fill: #fff; }
.mt-zona.mt-c-verm > g > * { fill: rgba(214, 40, 57, .78); }
.mt-zona.mt-c-palida > g > * { fill: rgba(253, 236, 236, .92); }
.mt-zona.mt-c-palida .mt-nome { fill: #7A2834; }
.mt-zona.mt-c-roxa > g > * { fill: rgba(126, 58, 160, .78); }
.mt-zona.mt-c-amarela > g > * { fill: rgba(234, 179, 8, .82); }
.mt-zona.mt-c-saburra > g > * { fill: rgba(241, 245, 249, .93); }
.mt-zona.mt-c-saburra .mt-nome, .mt-zona.mt-c-amarela .mt-nome { fill: #5B2A0E; }
.mt-zona.mt-c-lisa > g > * { fill: rgba(196, 30, 58, .62); }
.mt-zona.mt-c-fissura > g > * { fill: rgba(146, 64, 14, .62); }
.mt-zona.mt-c-inchada > g > * { fill: rgba(244, 114, 182, .72); }
.mt-zona.mt-c-obs > g > * { fill: rgba(20, 33, 61, .38); }
.mt-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mt-lista li { display: grid; grid-template-columns: auto auto 1fr; gap: 8px; align-items: baseline; font: 500 13px/1.4 var(--sans, sans-serif); color: #14213D; padding: 7px 10px; border-radius: 10px; background: #F8FAFC; }
.mt-lista b { font-weight: 800; white-space: nowrap; }
.mt-lista span { color: #475569; }
.mt-ponto { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #CBD5E1; margin-right: 4px; flex: none; }
.mt-ponto.mt-c-verm { background: #D62839; } .mt-ponto.mt-c-palida { background: #FBD5D5; box-shadow: inset 0 0 0 1px #E8A9A9; } .mt-ponto.mt-c-roxa { background: #7E3AA0; }
.mt-ponto.mt-c-amarela { background: #EAB308; } .mt-ponto.mt-c-saburra { background: #E2E8F0; box-shadow: inset 0 0 0 1px #CBD5E1; } .mt-ponto.mt-c-lisa { background: #C41E3A; }
.mt-ponto.mt-c-fissura { background: #92400E; } .mt-ponto.mt-c-inchada { background: #F472B6; } .mt-ponto.mt-c-obs { background: #64748B; }

/* O balão da zona */
.mt-balao { position: absolute; z-index: 5; width: 290px; display: grid; gap: 10px; padding: 14px; border-radius: 14px; background: #fff; border: 1px solid #E3E8F2;
  box-shadow: 0 18px 40px -18px rgba(20, 33, 61, .45); }
.mt-balao b { font: 800 13.5px var(--sans, sans-serif); color: #14213D; }
.mt-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mt-chips button, .mt-const button { display: inline-flex; align-items: center; gap: 4px; font: 700 12px var(--sans, sans-serif); color: #334155; background: #F1F5F9; border: 1px solid #E2E8F0; border-radius: 999px; padding: 5px 10px; cursor: pointer; }
.mt-chips button[aria-pressed="true"], .mt-const button[aria-pressed="true"] { background: #14213D; border-color: #14213D; color: #fff; }
.mt-balao textarea, .mt-obs-campo textarea { font: 500 13.5px/1.4 var(--sans, sans-serif); border: 1.5px solid #E3E8F2; border-radius: 10px; padding: 8px 10px; resize: vertical; min-height: 54px; width: 100%; box-sizing: border-box; }
.mt-rodape { display: flex; justify-content: flex-end; gap: 6px; }
.mt-rodape button { font: 700 12.5px var(--sans, sans-serif); border-radius: 10px; padding: 7px 12px; border: 1px solid #E2E8F0; background: #fff; color: #334155; cursor: pointer; }
.mt-rodape .mt-salvar { background: #059669; border-color: #059669; color: #fff; }

/* Cinco elementos */
.mt-elementos { width: 320px; height: 300px; overflow: visible; }
.mt-sheng { fill: none; stroke: #94A3B8; stroke-width: 2; }
.mt-ke { stroke: #E7A0A0; stroke-width: 1.6; stroke-dasharray: 5 4; }
.mt-seta-sheng { fill: #94A3B8; } .mt-seta-ke { fill: #E7A0A0; }
.mt-no { --cor: #64748B; --claro: #F1F5F9; }
.mt-no.mt-e-madeira, .mt-e-madeira { --cor: #2F9E5B; --claro: #E3F5EA; } .mt-no.mt-e-fogo, .mt-e-fogo { --cor: #E0533D; --claro: #FDE8E4; }
.mt-no.mt-e-terra, .mt-e-terra { --cor: #C98F0F; --claro: #FBF1DA; } .mt-no.mt-e-metal, .mt-e-metal { --cor: #7D8B99; --claro: #EEF1F4; }
.mt-no.mt-e-agua, .mt-e-agua { --cor: #2C5D9A; --claro: #E3ECF8; }
.mt-ponto.mt-e-madeira, .mt-ponto.mt-e-fogo, .mt-ponto.mt-e-terra, .mt-ponto.mt-e-metal, .mt-ponto.mt-e-agua { background: var(--cor); }
.mt-circ { fill: var(--claro); stroke: var(--cor); stroke-width: 2.5; }
.mt-no.mt-s-excesso .mt-circ { fill: var(--cor); }
.mt-no.mt-s-excesso .mt-el-nome, .mt-no.mt-s-excesso .mt-el-org { fill: #fff; }
.mt-no.mt-s-deficiencia .mt-circ { fill: #fff; stroke-dasharray: 4 3; }
.mt-anel { fill: none; stroke: #D4A017; stroke-width: 2.5; stroke-dasharray: 2 3; }
.mt-el-nome { font: 800 11.5px var(--sans, sans-serif); fill: #14213D; text-anchor: middle; pointer-events: none; }
.mt-el-org { font: 600 8.5px var(--sans, sans-serif); fill: #475569; text-anchor: middle; pointer-events: none; }
.mt-selo { stroke: #fff; stroke-width: 2; }
.mt-selo.mt-s-excesso { fill: #B91C1C; } .mt-selo.mt-s-deficiencia { fill: #1D4ED8; }
.mt-selo-t { font: 800 9.5px var(--sans, sans-serif); fill: #fff; text-anchor: middle; pointer-events: none; }
.mt-no[role="button"] { cursor: pointer; outline: none; }
.mt-no[role="button"]:hover .mt-circ, .mt-no[role="button"]:focus-visible .mt-circ { stroke-width: 4; }
.mt-legenda { margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; font: 600 11.5px var(--sans, sans-serif); color: #64748B; max-width: 320px; }
.mt-legenda span { display: inline-flex; align-items: center; gap: 5px; }
.mt-l-sheng, .mt-l-ke { display: inline-block; width: 18px; height: 0; border-top: 2px solid #94A3B8; }
.mt-l-ke { border-top: 2px dashed #E7A0A0; }
.mt-mini { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; font-size: 9px; color: #fff; }
.mt-mini.mt-s-excesso { background: #B91C1C; } .mt-mini.mt-s-deficiencia { background: #1D4ED8; } .mt-mini.mt-base { background: #D4A017; }
.mt-const { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font: 800 12px var(--sans, sans-serif); color: #475569; }
/* A tabela rola dentro da caixa, sem alargar a ficha (contain: o tamanho dela não empurra a coluna) */
.mt-rolar { overflow-x: auto; contain: inline-size; }
.mt-tabela { width: 100%; border-collapse: collapse; font: 500 12px/1.35 var(--sans, sans-serif); color: #334155; }
.mt-tabela th { text-align: left; font-weight: 800; font-size: 11px; color: #64748B; padding: 6px 8px; border-bottom: 1.5px solid #E2E8F0; white-space: nowrap; }
.mt-tabela td { padding: 6px 8px; border-bottom: 1px solid #F1F5F9; white-space: nowrap; }
.mt-tabela td b { font-weight: 800; color: #14213D; }
.mt-tabela small { font-weight: 700; color: #64748B; }
.mt-tabela tr.mt-s-excesso td { background: #FEF2F2; } .mt-tabela tr.mt-s-deficiencia td { background: #EFF6FF; }
.mt-obs-campo { display: grid; gap: 6px; font: 800 12px var(--sans, sans-serif); color: #475569; }
.mt-obs { margin: 0; font: 500 13px/1.45 var(--sans, sans-serif); color: #334155; white-space: pre-wrap; }
@media (max-width: 640px) { .mt-caixa { padding: 10px; gap: 12px; } .mt-elementos { width: 100%; height: auto; } .mt-balao { left: 4px !important; right: 4px; width: auto; } }
@media print {
  .mt-caixa { border: 0; padding: 0; background: none; break-inside: avoid; }
  .mt-lingua { width: 170px; height: 212px; } .mt-elementos { width: 250px; height: 234px; }
  .mt-cinco { flex-direction: column; } .mt-cinco .mt-detalhe { flex: none; width: 100%; }
  .mt-rolar { contain: none; overflow: visible; }
  .mt-tabela { font-size: 9px; } .mt-tabela th { font-size: 8px; } .mt-tabela td, .mt-tabela th { white-space: normal; padding: 4px 5px; }
}
