/* Ficha de Serviço Cirúrgico – usado no editor (content_css) e no site. */
.acfmt-ficha {
    width: 100%;
    border-collapse: collapse;
    border: 2px solid #000;
    font-family: "Times New Roman", Times, serif;
    font-size: 15px;
    line-height: 1.25;
    color: #000;
    table-layout: fixed;
}
.acfmt-ficha td { border: 1px solid #000; padding: 3px 5px; vertical-align: top; word-wrap: break-word; }
.acfmt-ficha { margin: 0 0 18px; }
.acfmt-ficha td.acfmt-num { text-align: center; vertical-align: middle; }
.acfmt-ficha td.acfmt-sem-borda { border: 0; text-align: center; font-weight: bold; padding: 2px; }
.acfmt-ficha .acfmt-titulo { font-size: 16px; padding-top: 10px; }
.acfmt-ficha .acfmt-sec { font-weight: bold; }
.acfmt-ficha .acfmt-linha { display: block; }
.acfmt-ficha .acfmt-bloco { margin-top: 2px; min-height: 2.5em; }
.acfmt-ficha ul.acfmt-check { list-style: none; margin: 0; padding: 0; }
.acfmt-ficha ul.acfmt-check li { margin: 0 0 3px; padding-left: 1.4em; text-indent: -1.4em; }
.acfmt-ficha ul.acfmt-check li::before { content: "\2713\00a0\00a0"; }

/* Texto dos campos sempre quebra linha dentro da célula, mesmo que o HTML colado traga white-space:nowrap/pre
   ou palavras longas (!important vence o style inline; vale também para fichas já salvas). */
.acfmt-ficha .mceEditable,
.acfmt-ficha .mceEditable * {
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
}

/* Só no editor: mostra onde o autor deve digitar. inline-block + min-width permite posicionar o cursor em campos vazios. */
.mce-content-body .acfmt-ficha span.mceEditable { display: inline-block; min-width: 4em; background: #fffbe6; border-bottom: 1px dotted #999; vertical-align: baseline; }
.mce-content-body .acfmt-ficha .acfmt-bloco { padding: 2px 6px; border: 1px dotted #999; }

@media print {
    .acfmt-ficha { font-size: 12pt; }
}
