/* Painéis de mensagem das telas legadas (alert / pergunta / erro) no padrão visual das telas novas. */
html #message-boxes .mask { background: rgba(15, 23, 42, .45) !important; opacity: 1 !important; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
html #message-boxes .boxgen {
  box-sizing: border-box; width: min(440px, calc(100vw - 24px)) !important; height: auto !important; min-height: 0 !important;
  left: 50% !important; top: 50% !important; margin: 0 !important; transform: translate(-50%, -50%);
  background: #fff !important; border: 1px solid rgba(15, 23, 42, .06); border-radius: 18px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .28), 0 2px 8px rgba(15, 23, 42, .08); overflow: hidden; color: #1f2937;
  font: 14px/1.45 "Segoe UI", system-ui, -apple-system, sans-serif; animation: mm-pop .2s cubic-bezier(.2, .9, .3, 1.2);
}
html #message-boxes .boxgen::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, #ec7000, #f59e0b); z-index: 2; }
html #message-boxes .boxgen:has(.confirm[style*="block"])::before { background: linear-gradient(90deg, #b45309, #ec7000); }
html #message-boxes .boxgen:has(#body-error[style*="block"])::before { background: linear-gradient(90deg, #b91c1c, #ef4444); }
html #message-boxes .boxgent, html #message-boxes .boxgenb, html #message-boxes .boxgenm, html #message-boxes .boxgenl, html #message-boxes .boxgenr {
  background: none !important; border: 0 !important; height: auto !important; width: auto !important; margin: 0 !important; padding: 0 !important; float: none !important; position: static !important;
}
html #message-boxes.popupBoxes div.boxgen > .boxgent { position: static !important; display: block !important; height: 0 !important; min-height: 0 !important; overflow: visible !important; }
html #message-boxes .boxgenb .boxgenl, html #message-boxes .boxgenb .boxgenr { display: none !important; }
/* botão fechar */
html #message-boxes.popupBoxes div.boxgen > .boxgent > .boxgenr {
  position: absolute !important; top: 14px; right: 14px; z-index: 3; display: block !important; width: 34px !important; height: 34px !important;
  border-radius: 50% !important; cursor: pointer; transition: background .15s;
}
html #message-boxes.popupBoxes div.boxgen > .boxgent > .boxgenr::before, html #message-boxes.popupBoxes div.boxgen > .boxgent > .boxgenr::after { content: none !important; display: none !important; }
html #message-boxes.popupBoxes div.boxgen > .boxgent > .boxgenr {
  background: #f1f5f9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7 7 17'/%3E%3C/svg%3E") center / 16px 16px no-repeat !important;
}
html #message-boxes.popupBoxes div.boxgen > .boxgent > .boxgenr:hover { background-color: #e2e8f0 !important; }
html #message-boxes .boxgenl, html #message-boxes .boxgent .boxgenm { display: none !important; }

html #message-boxes #message-container.height100Perc { height: auto !important; width: auto !important; display: block; }
html #message-boxes .body-message { background-image: linear-gradient(180deg, #fff3e6 0, #ffffff 96px) !important; position: relative; display: none; padding: 24px 26px 22px 26px !important; height: auto !important; min-height: 0; text-align: left; }
html #message-boxes .body-message[style*="block"], html #message-boxes .body-message[style*="display: block"] { display: block; }
html #message-boxes .body-message::after { content: ""; display: block; clear: both; }
/* título + ícone */
html #message-boxes .body-message > span:first-child, html #message-boxes #info-title {
  display: block !important; min-height: 44px; padding: 8px 44px 0 58px !important; margin: 0 !important; font-size: 18px !important; font-weight: 600; letter-spacing: -.01em; color: #1f2937; background: none !important; position: relative;
}
html #message-boxes .body-message > span:first-child::before {
  content: "i"; position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 13px; display: flex; align-items: center; justify-content: center;
  font: 700 22px/1 Georgia, serif; font-style: italic; color: #fff; background: linear-gradient(135deg, #3b82f6, #2563eb); box-shadow: 0 4px 10px rgba(37, 99, 235, .32);
}
html #message-boxes .body-message.confirm > span:first-child::before { content: "?"; font: 700 22px/1 "Segoe UI", system-ui, sans-serif; background: linear-gradient(135deg, #f59e0b, #ec7000); box-shadow: 0 4px 10px rgba(236, 112, 0, .34); }
html #message-boxes #body-error > span:first-child::before { content: "!"; font: 700 22px/1 "Segoe UI", system-ui, sans-serif; background: linear-gradient(135deg, #ef4444, #b91c1c); box-shadow: 0 4px 10px rgba(185, 28, 28, .32); }
/* texto */
html #message-boxes #info-message, html #message-boxes #error-message {
  display: block !important; width: auto !important; margin: 10px 0 0 58px !important; padding: 0 !important; font-size: 14px !important; line-height: 1.5; color: #4b5563; overflow-wrap: anywhere; background: none !important;
}
html #message-boxes #error-message { height: auto !important; min-height: 0 !important; max-height: 180px; overflow-y: auto; }
html #message-boxes #error-expand, html #message-boxes #btnClipBoard { display: inline-block; margin: 10px 0 0 58px; font-size: 13px; color: #c85f00; cursor: pointer; text-decoration: underline; }
html #message-boxes #btnClipBoard[style*="none"] { display: none; }
/* botões */
html #message-boxes .body-message input[type=button] {
  float: right !important; height: 40px; min-width: 96px; margin: 22px 0 0 10px !important; padding: 0 20px !important; border-radius: 10px !important; cursor: pointer;
  font: 600 14px/1 "Segoe UI", system-ui, sans-serif !important; text-shadow: none !important; transition: background .15s, box-shadow .15s, transform .05s;
  background: #fff !important; color: #1f2937 !important; border: 1px solid #d5dbe4 !important; box-shadow: none;
}
html #message-boxes .body-message input[type=button]:hover { background: #f5f7fa !important; }
html #message-boxes .body-message input[type=button]:active { transform: translateY(1px); }
html #message-boxes #btnInfoConfirm, html #message-boxes #btnInfoYes, html #message-boxes #btnViewerErrorConfirm {
  background: #ec7000 !important; border-color: #ec7000 !important; color: #fff !important; box-shadow: 0 2px 8px rgba(236, 112, 0, .32);
}
html #message-boxes #btnInfoConfirm:hover, html #message-boxes #btnInfoYes:hover, html #message-boxes #btnViewerErrorConfirm:hover { background: #c85f00 !important; border-color: #c85f00 !important; }
html #message-boxes #btnViewerErrorConfirm { background: #b91c1c !important; border-color: #b91c1c !important; box-shadow: 0 2px 8px rgba(185, 28, 28, .3); }
html #message-boxes #btnViewerErrorConfirm:hover { background: #991b1b !important; border-color: #991b1b !important; }
html #message-boxes .body-message input[type=button]:focus-visible { outline: 2px solid #ec7000; outline-offset: 2px; }
@keyframes mm-pop { from { opacity: 0; transform: translate(-50%, -48%) scale(.96); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
