153 lines
3.2 KiB
CSS
153 lines
3.2 KiB
CSS
/* src/PagesMedico/styleMedico/FormNovoRelatorio.css */
|
|
|
|
/* --- Modal centralizada e quadrada (ajustada para ser mais larga e sem quadrado branco no botão fechar) --- */
|
|
|
|
/* backdrop + center */
|
|
.modal.modal-centered {
|
|
position: fixed;
|
|
inset: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: rgba(10, 20, 30, 0.45);
|
|
z-index: 2000;
|
|
padding: 20px;
|
|
}
|
|
|
|
/* dialog box — maior horizontalmente e altura automática para scroll interno */
|
|
.modal-dialog.modal-dialog-square {
|
|
width: 880px; /* largura aumentada */
|
|
max-width: 96vw;
|
|
height: auto; /* deixa altura automática (melhor para conteúdo longo) */
|
|
max-height: 92vh;
|
|
margin: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 0;
|
|
}
|
|
|
|
/* caixa branca que contém o conteúdo - ocupa 100% da dialog */
|
|
.modal-dialog.modal-dialog-square .modal-content {
|
|
width: 100%;
|
|
height: auto;
|
|
border-radius: 12px;
|
|
box-shadow: 0 12px 30px rgba(11,22,35,0.18);
|
|
overflow: hidden;
|
|
display: flex;
|
|
flex-direction: column;
|
|
background: #fff;
|
|
}
|
|
|
|
/* header */
|
|
.custom-modal-header {
|
|
position: relative;
|
|
background: linear-gradient(90deg, #203B75 0%, #274A8A 100%);
|
|
color: #fff;
|
|
padding: 14px 18px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
}
|
|
|
|
.custom-modal-header .modal-title {
|
|
margin: 0;
|
|
font-size: 1.05rem;
|
|
font-weight: 700;
|
|
}
|
|
|
|
/* botão fechar no header — sem quadrado branco por trás */
|
|
.modal-close-btn {
|
|
background: transparent !important;
|
|
border: none;
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 4px;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
box-shadow: none;
|
|
outline: none;
|
|
position: relative;
|
|
z-index: 5;
|
|
}
|
|
|
|
.modal-close-btn::after {
|
|
content: '✕';
|
|
color: #fff;
|
|
font-weight: 700;
|
|
font-size: 16px;
|
|
}
|
|
|
|
/* body - faz scroll interno se for longo */
|
|
.modal-body {
|
|
padding: 18px;
|
|
overflow: auto;
|
|
flex: 1 1 auto;
|
|
}
|
|
|
|
/* footer */
|
|
.custom-modal-footer {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 12px;
|
|
padding: 14px 18px;
|
|
border-top: 1px solid #eee;
|
|
background: #fafafa;
|
|
}
|
|
|
|
/* folhaA4 dentro da modal — adapta para caber */
|
|
.folhaA4 {
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
background: transparent;
|
|
padding: 0;
|
|
}
|
|
|
|
/* melhor espaçamento e leitura do conteúdo */
|
|
#header-relatorio p {
|
|
color: #374151;
|
|
margin: 6px 0;
|
|
text-align: center;
|
|
}
|
|
|
|
#infoPaciente p {
|
|
margin: 10px 0;
|
|
color: #3d4650;
|
|
}
|
|
|
|
/* tornar o viewer responsivo */
|
|
.tiptap-viewer-wrapper {
|
|
border: 1px dashed #e7e7e7;
|
|
padding: 12px;
|
|
margin-top: 10px;
|
|
background: #fff;
|
|
}
|
|
|
|
/* barra de scroll customizada (opcional) */
|
|
.modal-body::-webkit-scrollbar {
|
|
width: 10px;
|
|
}
|
|
|
|
.modal-body::-webkit-scrollbar-thumb {
|
|
background: rgba(100,100,100,0.18);
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.modal-body::-webkit-scrollbar-track {
|
|
background: rgba(0,0,0,0.02);
|
|
}
|
|
|
|
/* responsividade para telas pequenas: mantém centralizado, ajusta proporção */
|
|
@media (max-width: 680px) {
|
|
.modal-dialog.modal-dialog-square {
|
|
width: 92vw;
|
|
height: 86vh;
|
|
}
|
|
.modal-close-btn { width: 36px; height: 36px; }
|
|
.custom-modal-footer { padding: 10px; }
|
|
.modal-body { padding: 12px; }
|
|
}
|