:root {
  --auth-navy: #0b1f2e;
  --auth-green: #006747;
  --auth-lime: #b7f235;
  --auth-ink: #102033;
  --auth-muted: #66768a;
  --auth-line: #dbe3e8;
  --auth-bg: #f4f7f8;
}

html.safeepi-auth-pending body { min-height: 100vh; background: var(--auth-bg); }
html.safeepi-auth-pending #root { visibility: hidden; }
html.safeepi-auth-pending body::before {
  content: "Carregando SafeEPI…";
  position: fixed;
  z-index: 9998;
  top: calc(50% + 34px);
  left: 50%;
  transform: translateX(-50%);
  color: #526477;
  font: 600 14px/1.4 Inter, "Segoe UI", Arial, sans-serif;
}
html.safeepi-auth-pending body::after {
  content: "";
  position: fixed;
  z-index: 9998;
  top: calc(50% - 20px);
  left: calc(50% - 20px);
  width: 40px;
  height: 40px;
  border: 4px solid #d9e8e3;
  border-top-color: #007a55;
  border-radius: 50%;
  animation: safeepi-spin .8s linear infinite;
}
#safeepi-auth-root { position: fixed; inset: 0; z-index: 10000; overflow: auto; color: var(--auth-ink); background: var(--auth-bg); font-family: Inter, "Segoe UI Variable", "Segoe UI", Arial, sans-serif; }
#safeepi-auth-root * { box-sizing: border-box; }
#safeepi-auth-root svg { width: 24px; height: 24px; }
.safeepi-auth-loader { width: 48px; height: 48px; margin: 0 0 22px; border: 4px solid #d9e8e3; border-top-color: #007a55; border-radius: 50%; animation: safeepi-spin .8s linear infinite; }
@keyframes safeepi-spin { to { transform: rotate(360deg); } }

.safeepi-login { display: grid; grid-template-columns: minmax(360px, .92fr) minmax(520px, 1.08fr); min-height: 100vh; }
.safeepi-login-brand { position: relative; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding: 64px clamp(42px, 6vw, 92px); color: white; background: linear-gradient(145deg, #081b29, #073d35 72%, #006747); }
.safeepi-login-brand::before { content: ""; position: absolute; width: 480px; height: 480px; right: -240px; bottom: -180px; border: 1px solid rgba(183,242,53,.18); border-radius: 50%; box-shadow: 0 0 0 80px rgba(183,242,53,.025), 0 0 0 160px rgba(183,242,53,.018); }
.safeepi-login-brand-inner { position: relative; z-index: 1; max-width: 510px; }
.safeepi-login-logo { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 34px; color: var(--auth-navy); background: #ffb000; border-radius: 13px; box-shadow: 0 12px 28px rgba(0,0,0,.22); }
.safeepi-login-logo svg { width: 31px !important; height: 31px !important; }
.safeepi-login-eyebrow, .safeepi-eyebrow { margin: 0 0 12px; color: var(--auth-green); font-size: 11px; font-weight: 850; letter-spacing: .13em; }
.safeepi-login-brand .safeepi-login-eyebrow { color: var(--auth-lime); }
.safeepi-login-brand h1 { margin: 0; font-size: clamp(46px, 5vw, 72px); line-height: 1; letter-spacing: -.055em; }
.safeepi-login-brand-inner > p:not(.safeepi-login-eyebrow) { max-width: 430px; margin: 21px 0 36px; color: rgba(255,255,255,.76); font-size: 18px; line-height: 1.55; }
.safeepi-login-benefits { display: grid; gap: 15px; color: #e8f1ee; font-size: 14px; }
.safeepi-login-benefits span { display: flex; align-items: center; gap: 11px; }
.safeepi-login-benefits svg { width: 20px !important; height: 20px !important; color: var(--auth-lime); }
.safeepi-login-brand > small { position: absolute; left: clamp(42px, 6vw, 92px); bottom: 30px; color: rgba(255,255,255,.48); font-size: 11px; }

.safeepi-login-panel { display: grid; place-items: center; padding: 42px; background: #f8fafb; }
.safeepi-login-card { width: min(100%, 430px); }
.safeepi-auth-mark { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 26px; color: var(--auth-green); background: #e8f6f0; border-radius: 12px; }
.safeepi-auth-mark--warning { color: #bd4a13; background: #fff1e8; font-size: 24px; font-weight: 900; }
.safeepi-auth-mark--token { margin-bottom: 17px; }
.safeepi-login-step { margin: 0 0 9px; color: var(--auth-green); font-size: 9px; font-weight: 850; letter-spacing: .12em; }
.safeepi-login-card h2 { margin: 0; color: var(--auth-ink); font-size: 30px; line-height: 1.15; letter-spacing: -.025em; }
.safeepi-auth-subtitle { margin: 10px 0 31px; color: var(--auth-muted); font-size: 15px; line-height: 1.55; }
.safeepi-login-card form { display: grid; gap: 19px; }
.safeepi-login-card label, .safeepi-receipt-card label, .safeepi-share-dialog label { display: grid; gap: 8px; color: #344256; font-size: 12px; font-weight: 750; }
.safeepi-login-card input, .safeepi-receipt-card input:not([type="checkbox"]), .safeepi-share-dialog input { width: 100%; height: 50px; padding: 0 14px; color: var(--auth-ink); background: #fff; border: 1px solid #cbd6dd; border-radius: 8px; outline: none; font: inherit; font-size: 14px; }
.safeepi-login-card input:focus, .safeepi-receipt-card input:focus, .safeepi-share-dialog input:focus { border-color: var(--auth-green); box-shadow: 0 0 0 3px rgba(0,103,71,.12); }
.safeepi-password { position: relative; }
.safeepi-password input { padding-right: 76px; }
.safeepi-password button { position: absolute; top: 0; right: 0; height: 50px; padding: 0 14px; color: var(--auth-green); background: transparent; border: 0; cursor: pointer; font-size: 11px; font-weight: 800; }
.safeepi-primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px; padding: 12px 18px; color: #102518; background: var(--auth-lime); border: 0; border-radius: 8px; cursor: pointer; font: inherit; font-size: 13px; font-weight: 850; letter-spacing: .02em; box-shadow: 0 10px 22px rgba(78,111,19,.14); }
.safeepi-primary-button:hover:not(:disabled) { background: #c7fa51; transform: translateY(-1px); }
.safeepi-primary-button:disabled { cursor: not-allowed; opacity: .5; }
.safeepi-primary-button svg { width: 21px !important; height: 21px !important; }
.safeepi-forgot { color: #84909e; background: none; border: 0; font-size: 11px; }
.safeepi-token-input { height: 58px !important; font-size: 25px !important; font-weight: 800 !important; letter-spacing: .42em; text-align: center; }
.safeepi-token-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.safeepi-token-actions button { padding: 5px 0; color: var(--auth-green); background: none; border: 0; cursor: pointer; font-size: 11px; font-weight: 750; }
.safeepi-token-actions button:disabled { color: #96a2ad; cursor: wait; }
.safeepi-security-note { margin: 3px 0 0; color: #7b8896; font-size: 11px; line-height: 1.5; text-align: center; }
.safeepi-form-message { min-height: 0; color: #bb2323; font-size: 12px; line-height: 1.45; }
.safeepi-form-message:empty { display: none; }
.safeepi-form-message--success { color: var(--auth-green); }

.safeepi-logout { width: 100%; margin-top: 12px; padding: 9px 10px; color: #cbd8df; background: transparent; border: 1px solid rgba(255,255,255,.16); border-radius: 6px; cursor: pointer; font-size: 11px; font-weight: 700; }
.safeepi-logout:hover { color: #fff; background: rgba(255,255,255,.06); }
.safeepi-authenticated-user { display: flex; align-items: center; gap: 10px; }
.safeepi-authenticated-user > span { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; color: #075e43; background: #d8f5e8; border-radius: 50%; font-size: 12px; font-weight: 850; }
.safeepi-authenticated-user > div { display: grid; min-width: 0; }
.safeepi-authenticated-user small { color: #7fa092; font-size: 7px; font-weight: 800; letter-spacing: .07em; }
.safeepi-authenticated-user strong { overflow: hidden; color: #fff; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.safeepi-authenticated-user em { color: #93a8b5; font-size: 8px; font-style: normal; }

.safeepi-remote-signature { margin-top: 24px; padding: 24px; background: #fff; border: 1px solid var(--auth-line); border-radius: 10px; }
.safeepi-remote-title { display: flex; align-items: flex-start; gap: 13px; padding-bottom: 17px; border-bottom: 1px solid #edf1f3; }
.safeepi-remote-title > span { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; color: var(--auth-green); background: #e8f6f0; border-radius: 9px; }
.safeepi-remote-title h2 { margin: 0; color: var(--auth-ink); font-size: 16px; font-weight: 800; }
.safeepi-remote-title p { margin: 3px 0 0; color: var(--auth-muted); font-size: 12px; }
.safeepi-delivery-mode { position: relative; display: flex; gap: 12px; margin-top: 14px; padding: 16px; background: #fff; border: 1px solid var(--auth-line); border-radius: 8px; cursor: pointer; }
.safeepi-delivery-mode:has(input:checked) { border-color: var(--auth-green); box-shadow: 0 0 0 3px rgba(0,103,71,.08); }
.safeepi-delivery-mode input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--auth-green); }
.safeepi-delivery-mode > span { display: grid; gap: 3px; padding-right: 92px; }
.safeepi-delivery-mode strong { color: var(--auth-ink); font-size: 13px; }
.safeepi-delivery-mode small { color: var(--auth-muted); font-size: 11px; }
.safeepi-delivery-mode em { position: absolute; top: 14px; right: 14px; padding: 4px 7px; color: var(--auth-green); background: #e8f6f0; border-radius: 99px; font-size: 8px; font-style: normal; font-weight: 850; text-transform: uppercase; }
.safeepi-privacy-inline { display: flex; align-items: center; gap: 8px; margin-top: 15px; color: #68788a; font-size: 10px; line-height: 1.45; }
.safeepi-privacy-inline svg { width: 17px !important; height: 17px !important; flex: 0 0 17px; color: var(--auth-green); }
.safeepi-remote-finalize { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 46px; margin-top: 17px; padding: 9px 18px; color: #102518; background: var(--auth-lime); border: 0; border-radius: 7px; cursor: pointer; font-size: 12px; font-weight: 850; box-shadow: 0 7px 18px rgba(78,111,19,.13); }
.safeepi-remote-finalize[hidden] { display: none !important; }
.safeepi-remote-finalize:disabled { cursor: wait; opacity: .65; }
.safeepi-remote-finalize svg { width: 18px !important; height: 18px !important; }
.safeepi-delete-delivery { margin-left: 8px; padding: 6px 9px; color: #bd2929; background: #fff1f1; border: 1px solid #f2caca; border-radius: 6px; cursor: pointer; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.safeepi-delete-delivery:hover { color: #fff; background: #c52b2b; border-color: #c52b2b; }
.safeepi-delete-delivery:disabled { cursor: wait; opacity: .6; }
.safeepi-account-note { margin: 6px 0 0; color: #64748b; font-size: 11px; line-height: 1.45; }
.safeepi-method-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0; }
.safeepi-method-grid > button { display: flex; align-items: center; gap: 13px; min-height: 105px; padding: 16px; text-align: left; color: var(--auth-ink); background: #fff; border: 1px solid var(--auth-line); border-radius: 11px; cursor: pointer; transition: .18s ease; }
.safeepi-method-grid > button:hover { border-color: var(--auth-green); box-shadow: 0 8px 24px rgba(4,76,58,.1); transform: translateY(-1px); }
.safeepi-method-grid b { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; color: var(--auth-green); background: #e8f7f1; border-radius: 10px; font-size: 20px; }
.safeepi-method-grid b svg { width: 23px; height: 23px; }
.safeepi-method-grid span { display: grid; gap: 5px; }
.safeepi-method-grid strong { font-size: 13px; }
.safeepi-method-grid small { color: var(--auth-muted); font-size: 10px; line-height: 1.45; }
.safeepi-method-back { display: block; margin: 14px auto 0; color: var(--auth-muted); background: transparent; border: 0; cursor: pointer; font-size: 11px; }
.safeepi-manual-pad { margin: 18px 0; padding: 13px; background: #f7faf9; border: 1px solid var(--auth-line); border-radius: 10px; }
.safeepi-manual-pad > div { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 11px; }
.safeepi-manual-pad button { color: #b42318; background: transparent; border: 0; cursor: pointer; font-size: 10px; font-weight: 700; }
.safeepi-manual-pad canvas { display: block; width: 100%; height: 150px; touch-action: none; background: #fff; border: 1px dashed #9aa9b5; border-radius: 7px; }
.safeepi-manual-pad > small { display: block; margin-top: 6px; color: var(--auth-muted); font-size: 9px; text-align: center; }
.safeepi-document-signature-note { margin: 0 0 10px; padding: 9px 11px; color: #365246; background: #edf8f4; border-left: 3px solid #087252; border-radius: 5px; font-size: 10px; line-height: 1.45; }
.safeepi-document-signature-note b { display: block; color: #075e46; }
.safeepi-signature-guidance { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0 4px; padding: 11px 13px; color: #365246; background: #edf8f4; border: 1px solid #cde9df; border-radius: 7px; font-size: 11px; line-height: 1.45; }
.safeepi-signature-guidance b { color: #075e46; white-space: nowrap; }
.safeepi-receipt-card--sign { max-width: 680px; }
.safeepi-responsibility-term { margin: 20px 0; padding: 15px; background: #fffaf0; border: 1px solid #e8cf9b; border-radius: 10px; }
.safeepi-term-heading { display: grid; gap: 3px; margin-bottom: 10px; }
.safeepi-term-heading span { color: #a05b00; font-size: 8px; font-weight: 900; letter-spacing: .12em; }
.safeepi-term-heading strong { color: #332817; font-size: 13px; }
.safeepi-term-text { max-height: 180px; overflow-y: auto; padding: 12px; color: #3f4650; background: #fff; border: 1px solid #eadfc8; border-radius: 7px; font-size: 10px; line-height: 1.55; text-align: justify; white-space: pre-line; }
.safeepi-term-accept { display: flex !important; align-items: flex-start; gap: 9px !important; margin-top: 11px; color: #513c1d; font-size: 10px !important; font-weight: 650 !important; line-height: 1.45; cursor: pointer; }
.safeepi-term-accept input { flex: 0 0 17px; width: 17px; height: 17px; margin-top: 1px; accent-color: var(--auth-green); }
.safeepi-term-proof-print { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 18px; margin-top: 18px; padding-top: 11px; border-top: 1px dashed #111; text-align: left; }
.safeepi-term-proof-print > div { display: grid; justify-items: center; color: #075e46; text-align: center; }
.safeepi-term-proof-print img { width: 135px; height: 42px; object-fit: contain; }
.safeepi-term-proof-print b { font-size: 8px; }
.safeepi-term-proof-print > div small { font-size: 7px; }
.safeepi-term-proof-print > span { display: grid; gap: 2px; }
.safeepi-term-proof-print strong { font-size: 9px; text-transform: uppercase; }
.safeepi-term-proof-print small, .safeepi-term-proof-print code { color: #333; font-size: 7px; }

.safeepi-history-wide { max-width: none !important; width: 100% !important; }
.safeepi-route-reports main .max-w-5xl, .safeepi-route-reports main .max-w-6xl, .safeepi-route-reports main .max-w-7xl { max-width: none !important; width: 100% !important; }
.safeepi-route-reports .safeepi-report-card { width: 100%; }
.safeepi-history-table-shell { max-width: 100%; overflow-x: auto !important; scrollbar-gutter: stable; }
.safeepi-history-table { width: 100% !important; min-width: 980px; table-layout: auto; }
.safeepi-history-table th:last-child, .safeepi-history-table td:last-child { position: sticky; right: 0; min-width: 150px; background: #fff; box-shadow: -8px 0 12px -12px rgba(15,23,42,.35); z-index: 2; }
.safeepi-history-table thead th:last-child { background: #f8fafc; z-index: 3; }
.safeepi-history-table td { white-space: normal; }

.safeepi-ficha-proof { display: grid; justify-items: center; gap: 2px; min-width: 115px; padding: 4px 2px; line-height: 1.15; }
.safeepi-ficha-proof b { font-size: 8px; text-transform: uppercase; }
.safeepi-ficha-proof small { font-size: 6.5px; color: #374151; }
.safeepi-ficha-proof code { font-size: 6.5px; color: #111827; word-break: break-all; }
.safeepi-ficha-proof--verified b { color: #075e46; }
.safeepi-ficha-proof--pending b { color: #92400e; }
.safeepi-dossier-button { position: fixed; z-index: 50; top: 86px; right: 24px; padding: 10px 14px; color: #fff; background: #087252; border: 0; border-radius: 8px; box-shadow: 0 8px 24px #073d3533; cursor: pointer; font-size: 12px; font-weight: 800; }
.safeepi-dossier-button:disabled { opacity: .65; cursor: wait; }
.safeepi-refusal-button { position: fixed; z-index: 50; top: 132px; right: 24px; padding: 9px 13px; color: #842727; background: #fff; border: 1px solid #e5a6a6; border-radius: 8px; box-shadow: 0 8px 24px #073d3520; cursor: pointer; font-size: 11px; font-weight: 800; }
.safeepi-refusal-button:disabled { opacity: .55; cursor: wait; }
.safeepi-valid-signature { max-width: 120px; }
.safeepi-signature-label { margin-top: 1px; color: #111827; font-size: 6.5px; text-transform: uppercase; }
.safeepi-legal-evidence-note { max-width: 680px; margin: 3px auto 0; font-size: 7px; line-height: 1.35; }
.safeepi-phone-field { align-self: end; }
.safeepi-auth-report-note { display: flex; align-items: center; gap: 10px; margin: 14px 0 10px; padding: 11px 13px; color: #075e46; background: #edf8f4; border: 1px solid #cde9df; border-radius: 9px; }
.safeepi-auth-report-note > svg { flex: 0 0 20px; width: 20px; height: 20px; }
.safeepi-auth-report-note span { display: grid; gap: 2px; }
.safeepi-auth-report-note strong { font-size: 11px; }
.safeepi-auth-report-note small { color: #526a63; font-size: 9px; line-height: 1.35; }
.safeepi-auth-report-scroll { max-width: 100%; overflow-x: auto !important; }
.safeepi-auth-report-table { width: 100% !important; min-width: 1080px; table-layout: auto; }
.safeepi-auth-report-table th { white-space: nowrap; }
.safeepi-auth-report-table td { min-width: 100px; white-space: pre-line; vertical-align: middle; }
.safeepi-auth-report-table td:nth-child(2) { min-width: 150px; }
.safeepi-auth-report-table td:nth-child(7) { min-width: 180px; }
.safeepi-auth-report-table th:nth-child(1), .safeepi-auth-report-table td:nth-child(1) { position: sticky; left: 0; min-width: 105px; background: #fff; z-index: 2; }
.safeepi-auth-report-table th:nth-child(2), .safeepi-auth-report-table td:nth-child(2) { position: sticky; left: 105px; background: #fff; box-shadow: 8px 0 12px -12px rgba(15,23,42,.4); z-index: 2; }
.safeepi-auth-report-table thead th:nth-child(1), .safeepi-auth-report-table thead th:nth-child(2) { background: #f8fafc; z-index: 3; }
.safeepi-report-status { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 999px; font-size: 9px; font-weight: 800; white-space: nowrap; }
.safeepi-report-status.is-verified { color: #06724f; background: #e6f7f0; }
.safeepi-report-status.is-pending { color: #9a6700; background: #fff5d6; }
.safeepi-evidence-code { max-width: 180px; overflow: hidden; color: #526273; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; text-overflow: ellipsis; white-space: nowrap !important; }
.safeepi-report-brand-header { display: grid; grid-template-columns: 92px 1fr 165px; align-items: center; gap: 18px; margin: -4px 0 20px; padding: 18px 20px; color: #102033; background: linear-gradient(135deg,#f4faf7,#fff); border: 1px solid #d8e8e2; border-radius: 10px; }
.safeepi-report-brand-logo { display: grid; place-items: center; width: 82px; height: 70px; padding: 7px; background: #fff; border: 1px solid #dce6e2; border-radius: 9px; }
.safeepi-report-brand-logo img { width: 100%; height: 100%; object-fit: contain; }
.safeepi-report-default-logo { display: grid; place-items: center; width: 46px; height: 46px; color: #fff; background: #087252; border-radius: 10px; }
.safeepi-report-default-logo svg { width: 25px; height: 25px; }
.safeepi-report-brand-copy { display: grid; gap: 2px; min-width: 0; }
.safeepi-report-brand-copy p { margin: 0; color: #087252; font-size: 8px; font-weight: 900; letter-spacing: .13em; }
.safeepi-report-brand-copy h1 { margin: 0; font-size: 19px; line-height: 1.2; }
.safeepi-report-brand-copy h2 { margin: 2px 0 0; font-size: 12px; font-weight: 750; }
.safeepi-report-brand-copy small, .safeepi-report-brand-copy span { color: #627267; font-size: 9px; }
.safeepi-report-brand-meta { display: grid; justify-items: end; gap: 6px; color: #627267; font-size: 9px; text-align: right; }
.safeepi-report-brand-meta b { color: #087252; font-size: 12px; }
.safeepi-report-brand-meta button { padding: 7px 10px; color: #fff; background: #087252; border: 0; border-radius: 6px; cursor: pointer; font-size: 9px; font-weight: 800; }
.safeepi-report-brand-footer { display: flex; justify-content: space-between; margin: 18px 24px 0; padding: 10px 0; color: #718078; border-top: 1px solid #dbe5e1; font-size: 8px; }

.safeepi-dialog-overlay { position: fixed; inset: 0; z-index: 12000; display: grid; place-items: center; padding: 18px; background: rgba(5,20,30,.7); backdrop-filter: blur(4px); }
.safeepi-system-dialog-overlay { overflow-y:auto; }
.safeepi-system-dialog { width:min(100%,680px); max-height:calc(100vh - 36px); overflow:auto; padding:28px; color:#10283a; background:#fff; border:1px solid #dce6e2; border-radius:18px; box-shadow:0 30px 90px #0005; }
.safeepi-system-dialog > header { display:flex; align-items:flex-start; gap:14px; margin-bottom:20px; }
.safeepi-system-dialog-icon { display:grid; flex:0 0 44px; place-items:center; width:44px; height:44px; color:#087252; background:#e8f7f1; border-radius:12px; }
.safeepi-system-dialog-icon svg { width:23px; height:23px; }
.safeepi-system-dialog header small { display:block; margin:2px 0 5px; color:#087252; font-size:9px; font-weight:900; letter-spacing:.11em; }
.safeepi-system-dialog h2 { margin:0; color:#10283a; font-size:23px; line-height:1.15; }
.safeepi-system-dialog header p { margin:7px 0 0; color:#617286; font-size:12px; line-height:1.55; }
.safeepi-system-dialog-fields { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-top:18px; }
.safeepi-system-dialog-fields label { display:grid; gap:6px; color:#263d50; font-size:11px; font-weight:800; }
.safeepi-system-dialog-fields label > small { color:#8290a0; font-size:9px; font-weight:500; }
.safeepi-system-dialog-fields input,.safeepi-system-dialog-fields textarea { width:100%; min-height:44px; padding:10px 12px; color:#10283a; background:#fff; border:1px solid #cbd8de; border-radius:8px; outline:none; font:12px inherit; }
.safeepi-system-dialog-fields textarea { min-height:96px; resize:vertical; line-height:1.5; }
.safeepi-system-dialog-fields input:focus,.safeepi-system-dialog-fields textarea:focus { border-color:#087252; box-shadow:0 0 0 3px #0872521c; }
.safeepi-field-wide { grid-column:1/-1; }
.safeepi-system-dialog-message { min-height:18px; margin-top:10px; color:#c43232; font-size:11px; font-weight:700; }
.safeepi-system-dialog > footer { display:flex; justify-content:flex-end; gap:10px; padding-top:16px; border-top:1px solid #e5ece9; }
.safeepi-system-dialog footer button { min-height:42px; padding:0 18px; border-radius:8px; cursor:pointer; font-size:11px; font-weight:850; }
.safeepi-dialog-secondary { color:#40566a; background:#fff; border:1px solid #cbd8de; }
.safeepi-dialog-primary { color:#09221b; background:#b7f52a; border:1px solid #a5df22; box-shadow:0 6px 18px #8fc71d33; }
.safeepi-dialog-primary--danger { color:#fff; background:#c93d47; border-color:#b5313b; box-shadow:none; }
.safeepi-dossier-dialog-summary { display:grid; grid-template-columns:1fr 1fr; gap:10px; padding:12px; background:#f1f7f5; border:1px solid #d8e6e1; border-radius:10px; }
.safeepi-dossier-dialog-summary > div { display:grid; gap:3px; min-width:0; padding:7px 9px; }
.safeepi-dossier-dialog-summary small { color:#718296; font-size:9px; font-weight:800; text-transform:uppercase; }
.safeepi-dossier-dialog-summary b { overflow:hidden; color:#173244; font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
.safeepi-dossier-dialog-summary span { color:#607386; font-size:10px; }
.safeepi-dossier-contents { margin-top:12px; padding:14px; border:1px solid #dfe8e4; border-radius:10px; }
.safeepi-dossier-contents > b { color:#173244; font-size:11px; }
.safeepi-dossier-contents > div { display:grid; grid-template-columns:1fr 1fr; gap:7px 14px; margin-top:10px; color:#496174; font-size:10px; }
.safeepi-dossier-contents span::first-letter { color:#087252; }
#safeepi-lgpd-overlay { position: fixed; inset: 0; z-index: 15000; display: grid; place-items: center; padding: 18px; background: rgba(5,20,30,.82); backdrop-filter: blur(6px); }
.safeepi-lgpd-dialog { width: min(100%, 720px); max-height: calc(100vh - 36px); overflow: auto; color: #102033; background: #fff; border-radius: 15px; box-shadow: 0 30px 90px #0006; }
.safeepi-lgpd-dialog > header { display: flex; gap: 15px; padding: 23px 26px; color: #fff; background: linear-gradient(135deg,#073d35,#087252); }
.safeepi-lgpd-dialog > header > span { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 auto; color: #073d35; background: #b7f52a; border-radius: 10px; }
.safeepi-lgpd-dialog > header svg { width: 24px; height: 24px; }
.safeepi-lgpd-dialog > header p { margin: 0 0 3px; color: #b7f52a; font-size: 8px; font-weight: 900; letter-spacing: .13em; }
.safeepi-lgpd-dialog > header h2 { margin: 0; font-size: 21px; }
.safeepi-lgpd-dialog > header small { display: block; margin-top: 3px; color: #cce5dc; font-size: 9px; }
.safeepi-lgpd-body { padding: 22px 26px 16px; }
.safeepi-lgpd-body > p { margin: 0 0 15px; color: #42586a; font-size: 12px; line-height: 1.55; }
.safeepi-lgpd-body h3 { margin: 0 0 8px; font-size: 13px; }
.safeepi-lgpd-body ul { margin: 0 0 15px; padding-left: 20px; color: #42586a; }
.safeepi-lgpd-body li { margin: 6px 0; font-size: 11px; line-height: 1.4; }
.safeepi-lgpd-legal { display: grid; gap: 4px; margin: 15px 0; padding: 12px 14px; color: #365f51; background: #edf8f4; border-left: 4px solid #087252; border-radius: 6px; }
.safeepi-lgpd-legal b { font-size: 11px; }
.safeepi-lgpd-legal span, .safeepi-lgpd-legal small { font-size: 9px; line-height: 1.45; }
.safeepi-lgpd-body > label { display: flex; align-items: flex-start; gap: 9px; margin-top: 9px; padding: 11px 12px; background: #f6f8fa; border: 1px solid #dce4e9; border-radius: 7px; cursor: pointer; }
.safeepi-lgpd-body > label input { width: 17px; height: 17px; flex: 0 0 auto; accent-color: #087252; }
.safeepi-lgpd-body > label span { font-size: 10.5px; line-height: 1.4; }
.safeepi-lgpd-dialog > footer { display: flex; justify-content: flex-end; gap: 10px; padding: 15px 26px; background: #f5f8f7; border-top: 1px solid #dce5e1; }
.safeepi-lgpd-dialog > footer button { padding: 10px 13px; border: 0; border-radius: 7px; cursor: pointer; font-size: 10px; font-weight: 800; }
.safeepi-lgpd-dialog > footer button:first-child { color: #075e46; background: #e5f4ee; }
.safeepi-lgpd-dialog > footer .safeepi-lgpd-accept { color: #102518; background: #b7f52a; }
.safeepi-lgpd-dialog > footer .safeepi-lgpd-accept:disabled { opacity: .48; cursor: not-allowed; }
.safeepi-lgpd-links { display: flex; justify-content: center; gap: 18px; padding: 0 20px 14px; background: #f5f8f7; }
.safeepi-lgpd-links a { color: #557083; font-size: 8.5px; }
.safeepi-lgpd-loading { padding: 38px; text-align: center; }
.safeepi-lgpd-loading .safeepi-auth-loader { margin-inline: auto; }
.safeepi-lgpd-loading h2 { margin: 16px 0 5px; font-size: 18px; }
.safeepi-lgpd-loading p { margin: 0; color: #637487; font-size: 11px; }
.safeepi-share-dialog { position: relative; width: min(100%, 470px); padding: 34px; background: #fff; border-radius: 14px; box-shadow: 0 28px 80px rgba(0,0,0,.3); }
.safeepi-dialog-close { position: absolute; top: 13px; right: 14px; width: 34px; height: 34px; color: #66768a; background: #f2f5f6; border: 0; border-radius: 50%; cursor: pointer; font-size: 22px; }
.safeepi-share-icon { display: grid; place-items: center; width: 48px; height: 48px; color: var(--auth-green); background: #e8f6f0; border-radius: 12px; }
.safeepi-share-dialog h2 { margin: 18px 0 7px; color: var(--auth-ink); font-size: 24px; }
.safeepi-share-dialog > p { margin: 0 0 22px; color: var(--auth-muted); font-size: 13px; line-height: 1.55; }
.safeepi-copy-row { display: grid; grid-template-columns: 1fr auto; }
.safeepi-copy-row input { min-width: 0; border-radius: 8px 0 0 8px; }
.safeepi-copy-row button { padding: 0 16px; color: #fff; background: var(--auth-green); border: 0; border-radius: 0 8px 8px 0; cursor: pointer; font-weight: 750; }
.safeepi-whatsapp-button { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 50px; margin-top: 16px; color: #fff; background: #168c51; border-radius: 8px; font-size: 13px; font-weight: 800; text-decoration: none; }
.safeepi-whatsapp-button svg { width: 21px !important; height: 21px !important; }
.safeepi-share-dialog > small { display: block; margin-top: 12px; color: #82909e; font-size: 10px; text-align: center; }

.safeepi-receipt-page { min-height: 100vh; background: var(--auth-bg); }
.safeepi-receipt-page > header { display: flex; align-items: center; justify-content: space-between; min-height: 74px; padding: 14px max(20px, calc((100vw - 920px)/2)); color: #fff; background: linear-gradient(105deg, var(--auth-navy), var(--auth-green)); }
.safeepi-receipt-logo { display: flex; align-items: center; gap: 11px; }
.safeepi-receipt-logo > svg { width: 32px !important; height: 32px !important; padding: 6px; color: var(--auth-navy); background: #ffb000; border-radius: 8px; }
.safeepi-receipt-logo span { display: grid; }
.safeepi-receipt-logo strong { font-size: 16px; }
.safeepi-receipt-logo small { color: rgba(255,255,255,.7); font-size: 9px; }
.safeepi-secure-badge { padding: 6px 10px; color: #ddf7ec; border: 1px solid rgba(255,255,255,.28); border-radius: 99px; font-size: 9px; font-weight: 750; text-transform: uppercase; }
.safeepi-receipt-shell { width: min(100% - 28px, 620px); margin: 34px auto; }
.safeepi-stepper { display: grid; grid-template-columns: 30px 1fr 30px 1fr 30px; align-items: center; width: min(100%, 360px); margin: 0 auto 24px; }
.safeepi-stepper span { display: grid; place-items: center; width: 30px; height: 30px; color: #80909e; background: #fff; border: 1px solid #cdd7de; border-radius: 50%; font-size: 11px; font-weight: 800; }
.safeepi-stepper span.active, .safeepi-stepper span.done { color: #fff; background: var(--auth-green); border-color: var(--auth-green); }
.safeepi-stepper i { height: 1px; background: #cad5dc; }
.safeepi-receipt-card, .safeepi-complete { padding: clamp(24px, 5vw, 42px); background: #fff; border: 1px solid var(--auth-line); border-radius: 14px; box-shadow: 0 12px 34px rgba(13,35,49,.07); }
.safeepi-receipt-face, .safeepi-receipt-success { display: grid; place-items: center; width: 62px; height: 62px; margin-bottom: 21px; color: var(--auth-green); background: #e6f6ef; border-radius: 17px; }
.safeepi-receipt-face svg, .safeepi-receipt-success svg { width: 35px !important; height: 35px !important; }
.safeepi-receipt-card h1, .safeepi-complete h1 { margin: 0; color: var(--auth-ink); font-size: 27px; line-height: 1.18; letter-spacing: -.025em; }
.safeepi-receipt-card > p:not(.safeepi-eyebrow):not(.safeepi-security-note), .safeepi-complete > p:not(.safeepi-eyebrow):not(.safeepi-security-note) { margin: 10px 0 24px; color: var(--auth-muted); font-size: 14px; line-height: 1.55; }
.safeepi-receipt-card form { display: grid; gap: 17px; }
.safeepi-unsupported { margin-bottom: 19px; padding: 12px 13px; color: #934713; background: #fff5e9; border: 1px solid #f3d1ae; border-radius: 7px; font-size: 11px; line-height: 1.5; }
.safeepi-receipt-meta { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 18px; padding: 14px 0; border-top: 1px solid #e8edef; border-bottom: 1px solid #e8edef; }
.safeepi-receipt-meta span { display: grid; gap: 3px; color: var(--auth-muted); font-size: 9px; text-transform: uppercase; }
.safeepi-receipt-meta strong { color: var(--auth-ink); font-size: 11px; text-transform: none; }
.safeepi-receipt-items { overflow: hidden; margin-bottom: 20px; border: 1px solid var(--auth-line); border-radius: 9px; }
.safeepi-receipt-items article { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 10px; min-height: 68px; padding: 11px 14px; }
.safeepi-receipt-items article + article { border-top: 1px solid #e9edef; }
.safeepi-receipt-items article > span { display: grid; place-items: center; width: 34px; height: 34px; color: var(--auth-green); background: #ecf7f2; border-radius: 8px; }
.safeepi-receipt-items article svg { width: 18px !important; height: 18px !important; }
.safeepi-receipt-items article div { display: grid; gap: 3px; }
.safeepi-receipt-items strong { color: var(--auth-ink); font-size: 12px; }
.safeepi-receipt-items small { color: var(--auth-muted); font-size: 9px; }
.safeepi-receipt-items b { color: var(--auth-green); font-size: 12px; }
.safeepi-accept { display: flex !important; align-items: flex-start; gap: 10px !important; margin-bottom: 18px; padding: 14px; background: #f7faf9; border-radius: 8px; font-weight: 500 !important; line-height: 1.5; cursor: pointer; }
.safeepi-accept input { width: 17px; height: 17px; flex: 0 0 17px; margin-top: 1px; accent-color: var(--auth-green); }
.safeepi-complete { text-align: center; }
.safeepi-complete-icon { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 20px; color: #fff; background: var(--auth-green); border-radius: 50%; font-size: 34px; }
.safeepi-confirmation-code { display: grid; gap: 5px; margin: 24px 0; padding: 16px; background: #f3f8f6; border-radius: 8px; }
.safeepi-confirmation-code small { color: var(--auth-muted); font-size: 9px; text-transform: uppercase; }
.safeepi-confirmation-code strong { font-size: 13px; }
.safeepi-receipt-page footer { padding: 20px; color: #82909e; font-size: 10px; text-align: center; }

.safeepi-documentation-nav { display: flex; align-items: center; gap: 12px; min-height: 42px; margin: 3px 10px; padding: 9px 12px; color: #d5e2e8; border: 1px solid transparent; border-radius: 7px; text-decoration: none; font-size: 12px; font-weight: 650; }
.safeepi-documentation-nav:hover, .safeepi-documentation-nav.is-active { color: #b7f52a; background: #173846; border-color: #41606c; }
.safeepi-documentation-nav svg { width: 18px; height: 18px; flex: 0 0 auto; }
#safeepi-documentation-root { position: fixed; z-index: 35; top: 102px; right: 0; bottom: 0; left: 250px; overflow: auto; background: #f3f6f8; }
.safeepi-doc-shell { width: min(1180px, calc(100% - 48px)); margin: 28px auto 60px; color: #102033; }
.safeepi-doc-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 30px; color: #fff; background: linear-gradient(135deg,#063d35,#08684d); border-radius: 14px; box-shadow: 0 14px 38px #063d3524; }
.safeepi-doc-hero p { margin: 0 0 6px; color: #b7f52a; font-size: 9px; font-weight: 900; letter-spacing: .14em; }
.safeepi-doc-hero h1 { display: flex; align-items: center; gap: 11px; margin: 0; font-size: 27px; }
.safeepi-doc-hero h1 svg { width: 29px; height: 29px; }
.safeepi-doc-hero span { display: block; margin-top: 5px; color: #d5e9e2; font-size: 12px; }
.safeepi-doc-hero button { padding: 10px 16px; color: #102033; background: #b7f52a; border: 0; border-radius: 7px; cursor: pointer; font-size: 11px; font-weight: 900; white-space: nowrap; }
.safeepi-doc-index { display: flex; gap: 6px; margin: 14px 0 0; padding: 9px; overflow-x: auto; background: #fff; border: 1px solid #dce5ea; border-radius: 10px; }
.safeepi-doc-index a { padding: 7px 11px; color: #496176; border-radius: 6px; text-decoration: none; font-size: 10px; font-weight: 750; white-space: nowrap; }
.safeepi-doc-index a:hover { color: #076647; background: #eaf6f1; }
.safeepi-doc-print-intro { display: none; }
.safeepi-doc-section { margin-top: 18px; padding: 26px 28px; scroll-margin-top: 20px; background: #fff; border: 1px solid #dce5ea; border-radius: 12px; }
.safeepi-doc-heading { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.safeepi-doc-heading > span { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; color: #076647; background: #def5ec; border-radius: 8px; font-size: 11px; font-weight: 900; }
.safeepi-doc-heading h2 { margin: 0; font-size: 19px; }
.safeepi-doc-heading p { margin: 4px 0 0; color: #617589; font-size: 11px; }
.safeepi-doc-flow { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.safeepi-doc-flow article, .safeepi-doc-grid article { padding: 16px; background: #f7faf9; border: 1px solid #dce7e2; border-radius: 9px; }
.safeepi-doc-flow article > b { display: grid; place-items: center; width: 25px; height: 25px; color: #fff; background: #087252; border-radius: 50%; font-size: 10px; }
.safeepi-doc-flow h3, .safeepi-doc-grid h3 { margin: 11px 0 4px; font-size: 12px; }
.safeepi-doc-flow p, .safeepi-doc-grid p { margin: 0; color: #5d7081; font-size: 10px; }
.safeepi-doc-table-wrap { overflow-x: auto; }
.safeepi-doc-table-wrap table { width: 100%; min-width: 760px; border-collapse: collapse; }
.safeepi-doc-table-wrap th, .safeepi-doc-table-wrap td { padding: 10px; border-bottom: 1px solid #e3e9ed; text-align: left; vertical-align: top; font-size: 10px; }
.safeepi-doc-table-wrap th { color: #5d7081; background: #f5f8fa; font-size: 8px; text-transform: uppercase; }
.safeepi-doc-table-wrap td:first-child strong, .safeepi-doc-table-wrap td:first-child small { display: block; }
.safeepi-doc-table-wrap td:first-child small { margin-top: 2px; color: #718296; }
.safeepi-doc-role { display: inline-flex; padding: 4px 7px; color: #076647; background: #def5ec; border-radius: 99px; font-size: 8px; font-weight: 850; }
.safeepi-doc-callout, .safeepi-doc-warning { margin-top: 17px; padding: 13px 15px; background: #fff9df; border: 1px solid #f0d987; border-left: 4px solid #e5b91e; border-radius: 7px; }
.safeepi-doc-callout b, .safeepi-doc-warning b { font-size: 10px; }
.safeepi-doc-callout p, .safeepi-doc-warning p { margin: 3px 0 0; color: #665b34; font-size: 10px; }
.safeepi-doc-callout--mobile { background: #edf8f4; border-color: #aedaca; border-left-color: #087252; }
.safeepi-doc-callout--mobile p { color: #365f51; }
.safeepi-doc-steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: steps; }
.safeepi-doc-steps li { padding: 15px; background: #f7fafc; border: 1px solid #dde6eb; border-radius: 8px; }
.safeepi-doc-steps li b, .safeepi-doc-steps li span { display: block; }
.safeepi-doc-steps li b { margin-bottom: 6px; font-size: 11px; }
.safeepi-doc-steps li span { color: #5d7081; font-size: 10px; }
.safeepi-doc-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.safeepi-doc-columns > article { padding: 20px; border: 1px solid #dce5ea; border-radius: 9px; }
.safeepi-doc-columns h3 { margin: 7px 0 12px; font-size: 14px; }
.safeepi-doc-columns ol { margin: 0; padding-left: 20px; }
.safeepi-doc-columns li { margin: 7px 0; padding-left: 3px; color: #4f6476; font-size: 10.5px; }
.safeepi-doc-badge { display: inline-flex; padding: 4px 7px; color: #076647; background: #def5ec; border-radius: 4px; font-size: 8px; font-weight: 900; }
.safeepi-doc-badge--link { color: #394f82; background: #e4ebff; }
.safeepi-doc-note { margin: 14px 0 0; padding: 10px; color: #395e53; background: #edf8f4; border-radius: 6px; font-size: 9px; }
.safeepi-doc-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.safeepi-doc-warning { background: #fff2f2; border-color: #efb7b7; border-left-color: #c64040; }
.safeepi-doc-warning p { color: #784848; }
.safeepi-doc-footer { display: flex; justify-content: space-between; margin-top: 18px; padding: 13px 4px; color: #718296; font-size: 9px; }

/* Importação revisável de usuários */
.safeepi-user-import { margin: 22px 0; padding: 24px; color: #102033; background: #fff; border: 1px solid #d8e2e7; border-radius: 12px; box-shadow: 0 8px 24px #1532440a; }
.safeepi-user-import > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.safeepi-user-import > header p { margin: 0 0 4px; color: #087252; font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.safeepi-user-import > header h2 { margin: 0; font-size: 19px; }
.safeepi-user-import > header span { color: #65788a; font-size: 11px; }
.safeepi-ai-badge { padding: 7px 10px; color: #5e2a88 !important; background: #f4eaff; border-radius: 99px; font-weight: 800; white-space: nowrap; }
.safeepi-import-controls { display: grid; grid-template-columns: minmax(210px,1fr) minmax(260px,1.4fr) auto; align-items: end; gap: 12px; }
.safeepi-import-controls label { display: grid; gap: 6px; color: #43586b; font-size: 10px; font-weight: 750; }
.safeepi-import-controls select,.safeepi-import-controls input { min-height: 40px; padding: 8px 10px; background: #fff; border: 1px solid #cdd8df; border-radius: 7px; font: 11px inherit; }
.safeepi-import-controls button,.safeepi-import-preview-head button { min-height: 40px; padding: 9px 14px; color: #fff; background: #087252; border: 0; border-radius: 7px; cursor: pointer; font-size: 11px; font-weight: 850; }
.safeepi-import-controls button:disabled,.safeepi-import-preview-head button:disabled { opacity: .55; }
.safeepi-import-help { display: grid; gap: 3px; margin-top: 14px; padding: 12px 14px; color: #395f52; background: #eef8f4; border-left: 3px solid #087252; border-radius: 6px; font-size: 10.5px; }
.safeepi-import-preview-head { display: flex; justify-content: space-between; gap: 14px; align-items: center; margin-top: 18px; }
.safeepi-import-preview-head div { display: grid; gap: 3px; }
.safeepi-import-preview-head span { color: #65788a; font-size: 10px; }
.safeepi-import-table { margin-top: 10px; overflow: auto; border: 1px solid #dce5ea; border-radius: 8px; }
.safeepi-import-table table { width: 100%; min-width: 1120px; border-collapse: collapse; }
.safeepi-import-table th,.safeepi-import-table td { padding: 7px; border-bottom: 1px solid #e5ebef; text-align: left; }
.safeepi-import-table th { color: #607487; background: #f5f8fa; font-size: 8px; text-transform: uppercase; }
.safeepi-import-table td > input:not([type="checkbox"]) { width: 125px; min-height: 32px; padding: 6px 7px; border: 1px solid #d2dce2; border-radius: 5px; font-size: 10px; }
.safeepi-import-table td:nth-child(2) input { width: 175px; }
.safeepi-import-table td:nth-child(4) input { width: 190px; }
.safeepi-import-login { display: inline-flex; padding: 4px 7px; color: #856420; background: #fff4d4; border-radius: 99px; font-size: 8px; font-weight: 800; white-space: nowrap; }
.safeepi-import-login.is-active { color: #076647; background: #def5ec; }
.safeepi-import-message { margin-top: 10px; color: #b42318; font-size: 11px; }

#safeepi-tenant-block { position: fixed; z-index: 900; inset: 72px 0 0 200px; display: grid; place-items: center; padding: 28px; background: #f3f6f8; }
#safeepi-tenant-block section { width: min(620px,100%); padding: 42px; text-align: center; background: #fff; border: 1px solid #d9e3e6; border-radius: 15px; box-shadow: 0 18px 50px #17324418; }
#safeepi-tenant-block svg { width: 48px; height: 48px; padding: 11px; color: #076647; background: #e2f5ed; border-radius: 13px; }
#safeepi-tenant-block p { margin: 16px 0 5px; color: #087252; font-size: 9px; font-weight: 900; letter-spacing: .14em; }
#safeepi-tenant-block h1 { margin: 0; font-size: 23px; } #safeepi-tenant-block span { display: block; margin: 12px auto 22px; color: #607487; font-size: 13px; line-height: 1.6; }
#safeepi-tenant-block button { padding: 10px 15px; color: #fff; background: #087252; border: 0; border-radius: 7px; cursor: pointer; font-weight: 800; }

/* Portal restrito do perfil Usuário */
#safeepi-user-portal { position: fixed; z-index: 1000; inset: 0; overflow: auto; background: #f2f6f5; }
.safeepi-user-portal { min-height: 100vh; color: #102033; }
.safeepi-user-portal > header { display: flex; align-items: center; justify-content: space-between; min-height: 72px; padding: 14px max(24px,calc((100vw - 1120px)/2)); color: #fff; background: linear-gradient(100deg,#0b2533,#076647); }
.safeepi-user-portal > header > div { display: flex; align-items: center; gap: 11px; }
.safeepi-user-portal > header svg { width: 34px; height: 34px; padding: 7px; color: #14202b; background: #ffb000; border-radius: 9px; }
.safeepi-user-portal > header span { display: grid; }.safeepi-user-portal > header small { color: #c5ded7; }
.safeepi-user-portal > header button { padding: 9px 12px; color: #fff; background: transparent; border: 1px solid #ffffff70; border-radius: 7px; cursor: pointer; font-weight: 750; }
.safeepi-user-welcome,.safeepi-user-history { width: min(1120px,calc(100% - 32px)); margin: 24px auto; padding: 26px; background: #fff; border: 1px solid #d9e3e3; border-radius: 13px; }
.safeepi-user-welcome { display: flex; align-items: center; justify-content: space-between; gap: 24px; color: #fff; background: linear-gradient(130deg,#063d35,#087252); }
.safeepi-user-welcome p { margin: 0 0 6px; color: #b7f52a; font-size: 9px; font-weight: 900; letter-spacing: .13em; }.safeepi-user-welcome h1 { margin: 0 0 5px; font-size: 26px; }.safeepi-user-welcome span { color: #d5ebe4; }
.safeepi-user-welcome dl { display: flex; gap: 10px; margin: 0; }.safeepi-user-welcome dl div { min-width: 110px; padding: 12px; background: #ffffff14; border: 1px solid #ffffff2b; border-radius: 8px; }.safeepi-user-welcome dt { color: #bcd9d0; font-size: 8px; text-transform: uppercase; }.safeepi-user-welcome dd { margin: 4px 0 0; font-weight: 800; }
.safeepi-user-history > div:first-child p { color: #66798a; }.safeepi-user-table { overflow: auto; }.safeepi-user-table table { width: 100%; min-width: 720px; border-collapse: collapse; }.safeepi-user-table th,.safeepi-user-table td { padding: 13px 10px; border-bottom: 1px solid #e4eaed; text-align: left; font-size: 11px; }.safeepi-user-table th { color: #627587; font-size: 8px; text-transform: uppercase; }.safeepi-user-table button,.safeepi-user-table a { display: inline-flex; padding: 7px 10px; color: #fff; background: #087252; border: 0; border-radius: 6px; cursor: pointer; font-size: 10px; font-weight: 800; text-decoration: none; }.safeepi-user-status { padding: 4px 7px; color: #8a671d; background: #fff3ce; border-radius: 99px; font-size: 9px; font-weight: 800; }.safeepi-user-status.is-signed { color: #076647; background: #def5ec; }

/* Leitura confortável do manual na tela */
.safeepi-doc-heading p { font-size: 13px; line-height: 1.55; }
.safeepi-doc-flow h3,.safeepi-doc-grid h3 { font-size: 14px; }
.safeepi-doc-flow p,.safeepi-doc-grid p,.safeepi-doc-callout p,.safeepi-doc-warning p { font-size: 12.5px; line-height: 1.55; }
.safeepi-doc-callout b,.safeepi-doc-warning b,.safeepi-doc-steps li b { font-size: 12.5px; }
.safeepi-doc-steps li span,.safeepi-doc-columns li { font-size: 12px; line-height: 1.55; }
.safeepi-doc-table-wrap th,.safeepi-doc-table-wrap td { font-size: 11.5px; }.safeepi-doc-table-wrap th { font-size: 9px; }
.safeepi-doc-note { font-size: 11.5px; line-height: 1.55; }
.safeepi-table-pagination { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:12px 16px; border-top:1px solid #e2e8f0; color:#526477; font-size:12px; background:#fff; }
.safeepi-table-pagination div { display:flex; align-items:center; gap:10px; }
.safeepi-table-pagination button { padding:7px 11px; border:1px solid #cbd5e1; border-radius:6px; background:#fff; color:#123; font-weight:700; cursor:pointer; }
.safeepi-table-pagination button:disabled { opacity:.45; cursor:not-allowed; }
.safeepi-chart-fallback-active { position:relative; min-height:230px !important; height:230px !important; }
.safeepi-chart-fallback-active > :not(.safeepi-dashboard-chart-fallback) { display:none !important; }
.safeepi-dashboard-chart-fallback { position:absolute; inset:12px 16px 14px; display:flex; min-width:0; color:#526477; }
.safeepi-chart-empty { display:grid; place-items:center; width:100%; color:#8290a2; font-size:12px; text-align:center; }
.safeepi-chart-columns { display:flex; align-items:flex-end; justify-content:space-around; gap:12px; width:100%; padding:8px 6px 0; border-bottom:1px solid #dfe7e4; }
.safeepi-chart-columns > div { display:grid; grid-template-rows:1fr auto auto; justify-items:center; align-self:stretch; min-width:34px; flex:1; }
.safeepi-chart-columns span { position:relative; align-self:stretch; width:min(38px,70%); }
.safeepi-chart-columns i { position:absolute; right:0; bottom:0; left:0; min-height:4px; border-radius:5px 5px 0 0; background:linear-gradient(180deg,#08a876,#087b60); box-shadow:0 5px 12px #087b6030; }
.safeepi-chart-columns b { margin-top:5px; color:#173244; font-size:11px; }
.safeepi-chart-columns small { margin:3px 0 -17px; color:#718296; font-size:10px; text-transform:capitalize; }
.safeepi-chart-rows,.safeepi-stock-chart { display:flex; flex-direction:column; justify-content:center; gap:12px; width:100%; min-width:0; }
.safeepi-chart-row,.safeepi-stock-row { display:grid; grid-template-columns:minmax(92px,1.15fr) minmax(100px,3fr) 40px; align-items:center; gap:10px; min-width:0; }
.safeepi-chart-row > span,.safeepi-stock-row > span { overflow:hidden; color:#40566c; font-size:10px; text-overflow:ellipsis; white-space:nowrap; }
.safeepi-chart-row > div,.safeepi-stock-row > div { height:11px; overflow:hidden; border-radius:8px; background:#edf2f4; }
.safeepi-chart-row i,.safeepi-stock-row i,.safeepi-stock-row em { display:block; height:100%; border-radius:8px; background:#1683e8; }
.safeepi-chart-row i { filter:hue-rotate(calc(var(--bar-index) * 12deg)); }
.safeepi-chart-row b,.safeepi-stock-row b { color:#173244; font-size:11px; text-align:right; }
.safeepi-stock-row > div { position:relative; height:18px; background:transparent; }
.safeepi-stock-row i,.safeepi-stock-row em { position:absolute; left:0; height:7px; }
.safeepi-stock-row i { top:0; background:#08a876; }
.safeepi-stock-row em { bottom:0; background:#b8c4ce; }
.safeepi-chart-legend { display:flex; justify-content:flex-end; gap:16px; color:#718296; font-size:9px; }
.safeepi-chart-legend span::before { display:inline-block; width:8px; height:8px; margin-right:5px; border-radius:2px; background:#08a876; content:''; }
.safeepi-chart-legend span:last-child::before { background:#b8c4ce; }

@media (max-width: 820px) {
  .safeepi-login { grid-template-columns: 1fr; }
  .safeepi-login-brand { display: none; }
  .safeepi-login-panel { min-height: 100vh; padding: 28px 20px; }
  .safeepi-doc-shell { width: calc(100% - 24px); margin-top: 14px; }
  .safeepi-doc-hero { align-items: flex-start; padding: 22px; }
  .safeepi-doc-flow, .safeepi-doc-steps, .safeepi-doc-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  #safeepi-documentation-root { top: 66px; left: 0; }
  #safeepi-tenant-block { inset: 66px 0 0; }
}

@media (max-width: 520px) {
  .safeepi-system-dialog { padding:22px 17px; border-radius:14px; }
  .safeepi-system-dialog-fields,.safeepi-dossier-dialog-summary,.safeepi-dossier-contents > div { grid-template-columns:1fr; }
  .safeepi-system-dialog > footer { flex-direction:column-reverse; }
  .safeepi-system-dialog footer button { width:100%; }
  .safeepi-receipt-page > header { min-height: 66px; padding: 12px 16px; }
  .safeepi-secure-badge { display: none; }
  .safeepi-receipt-shell { margin-block: 22px; }
  .safeepi-receipt-card, .safeepi-complete { padding: 24px 19px; border-radius: 11px; }
  .safeepi-receipt-card h1, .safeepi-complete h1 { font-size: 24px; }
  .safeepi-share-dialog { padding: 28px 20px; }
  .safeepi-delivery-mode > span { padding-right: 0; }
  .safeepi-delivery-mode em { position: static; justify-self: start; margin-top: 3px; }
  .safeepi-method-grid { grid-template-columns: 1fr; }
  .safeepi-report-brand-header { grid-template-columns: 58px 1fr; padding: 13px; }
  .safeepi-report-brand-logo { width: 54px; height: 54px; }
  .safeepi-report-brand-meta { display: none; }
  .safeepi-doc-hero { display: grid; }
  .safeepi-doc-hero h1 { font-size: 22px; }
  .safeepi-doc-section { padding: 20px 16px; }
  .safeepi-doc-flow, .safeepi-doc-steps, .safeepi-doc-grid, .safeepi-doc-columns { grid-template-columns: 1fr; }
  .safeepi-doc-footer { display: grid; gap: 4px; }
  .safeepi-lgpd-dialog > header, .safeepi-lgpd-body, .safeepi-lgpd-dialog > footer { padding-left: 18px; padding-right: 18px; }
  .safeepi-lgpd-dialog > footer { display: grid; }
}

@page { size: A4 landscape; margin: 12mm; }
@page safeepi-manual { size: A4 portrait; margin: 17mm 14mm 18mm; }

@media print {
  .safeepi-table-pagination { display:none !important; }
  #safeepi-lgpd-overlay { display: none !important; }
  .safeepi-dossier-button, .safeepi-refusal-button { display: none !important; }
  .safeepi-ficha-proof { break-inside: avoid; }
  .safeepi-history-table th:last-child, .safeepi-history-table td:last-child { position: static; box-shadow: none; }
  .safeepi-auth-report-note { border-color: #999; }
  .safeepi-auth-report-scroll { overflow: visible !important; }
  .safeepi-auth-report-table { min-width: 0; font-size: 7px; }
  .safeepi-auth-report-table th:nth-child(1), .safeepi-auth-report-table td:nth-child(1), .safeepi-auth-report-table th:nth-child(2), .safeepi-auth-report-table td:nth-child(2) { position: static; box-shadow: none; }
  html.safeepi-printing-report body * { visibility: hidden !important; }
  html.safeepi-printing-report .safeepi-report-card, html.safeepi-printing-report .safeepi-report-card * { visibility: visible !important; }
  html.safeepi-printing-report .safeepi-report-card { position: absolute; inset: 0 auto auto 0; width: 100%; min-height: 0 !important; color: #111; background: #fff; border: 0 !important; box-shadow: none !important; }
  html.safeepi-printing-report .safeepi-report-card > .p-6 { padding: 0 !important; }
  html.safeepi-printing-report .safeepi-report-brand-header { grid-template-columns: 100px 1fr 150px; margin: 0 0 8mm; padding: 5mm; background: #fff; border: 1.5px solid #153e33; border-radius: 0; break-inside: avoid; }
  html.safeepi-printing-report .safeepi-report-brand-logo { width: 85px; height: 64px; border-color: #aaa; }
  html.safeepi-printing-report .safeepi-report-brand-copy h1 { font-size: 18px; }
  html.safeepi-printing-report .safeepi-report-brand-meta button, html.safeepi-printing-report button, html.safeepi-printing-report input, html.safeepi-printing-report select { display: none !important; }
  html.safeepi-printing-report .safeepi-report-brand-footer { position: fixed; right: 0; bottom: -7mm; left: 0; margin: 0; }
  html.safeepi-printing-report .safeepi-print-page::after { content: ' ' counter(page); }
  html.safeepi-printing-report table { width: 100% !important; }
  html.safeepi-printing-report thead { display: table-header-group; }
  html.safeepi-printing-report tr { break-inside: avoid; }
  .safeepi-term-proof-print { break-inside: avoid; }
  html.safeepi-printing-documentation body { margin: 0 !important; color: #18232d; background: #fff !important; font-family: Arial, sans-serif; }
  html.safeepi-printing-documentation body > *:not(#safeepi-documentation-root) { display: none !important; }
  html.safeepi-printing-documentation #safeepi-documentation-root { position: static !important; display: block !important; width: auto !important; height: auto !important; overflow: visible !important; background: #fff !important; page: safeepi-manual; }
  html.safeepi-printing-documentation #safeepi-documentation-root, html.safeepi-printing-documentation #safeepi-documentation-root * { visibility: visible !important; }
  html.safeepi-printing-documentation .safeepi-doc-shell { position: static; width: 100%; margin: 0; color: #18232d; }
  html.safeepi-printing-documentation .safeepi-doc-hero { display: block; min-height: 74mm; padding: 16mm 12mm; color: #fff; background: #073d35 !important; border: 0; border-radius: 0; box-shadow: none; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  html.safeepi-printing-documentation .safeepi-doc-hero p { color: #b7f52a; font-size: 8pt; }
  html.safeepi-printing-documentation .safeepi-doc-hero h1 { margin-top: 12mm; font-size: 25pt; }
  html.safeepi-printing-documentation .safeepi-doc-hero h1 svg { width: 32px; height: 32px; }
  html.safeepi-printing-documentation .safeepi-doc-hero span { max-width: 125mm; margin-top: 5mm; color: #e0eee9; font-size: 11pt; line-height: 1.55; }
  html.safeepi-printing-documentation .safeepi-doc-hero button, html.safeepi-printing-documentation .safeepi-doc-index { display: none !important; }
  html.safeepi-printing-documentation .safeepi-doc-print-intro { display: block; min-height: 155mm; padding: 10mm 12mm 0; break-after: page; }
  html.safeepi-printing-documentation .safeepi-doc-print-intro > div:first-child { display: grid; gap: 2mm; padding-bottom: 6mm; border-bottom: 2px solid #073d35; }
  html.safeepi-printing-documentation .safeepi-doc-print-intro > div:first-child b { color: #073d35; font-size: 13pt; }
  html.safeepi-printing-documentation .safeepi-doc-print-intro > div:first-child span { color: #536677; font-size: 9pt; }
  html.safeepi-printing-documentation .safeepi-doc-print-intro dl { display: grid; grid-template-columns: repeat(3,1fr); gap: 4mm; margin: 7mm 0; }
  html.safeepi-printing-documentation .safeepi-doc-print-intro dl div { padding: 3mm; background: #f0f6f3; border: 1px solid #cbdcd5; }
  html.safeepi-printing-documentation .safeepi-doc-print-intro dt { color: #607269; font-size: 7pt; font-weight: 800; text-transform: uppercase; }
  html.safeepi-printing-documentation .safeepi-doc-print-intro dd { margin: 1mm 0 0; font-size: 8.5pt; font-weight: 700; }
  html.safeepi-printing-documentation .safeepi-doc-print-intro h2 { margin: 8mm 0 3mm; color: #073d35; font-size: 15pt; }
  html.safeepi-printing-documentation .safeepi-doc-print-intro ol { columns: 2; column-gap: 12mm; margin: 0; padding-left: 6mm; }
  html.safeepi-printing-documentation .safeepi-doc-print-intro li { margin: 0 0 3mm; break-inside: avoid; color: #354b5b; font-size: 8.5pt; line-height: 1.4; }
  html.safeepi-printing-documentation .safeepi-doc-section { margin: 0; padding: 3mm 0 0; border: 0; border-radius: 0; box-shadow: none; break-before: page; break-inside: auto; }
  html.safeepi-printing-documentation .safeepi-doc-heading { display: grid; grid-template-columns: 10mm minmax(0,1fr); align-items: start; gap: 4mm; margin: 0 0 7mm; padding: 0 0 5mm; border-bottom: 2px solid #073d35; }
  html.safeepi-printing-documentation .safeepi-doc-heading > span { width: 10mm; height: 10mm; color: #fff; background: #087252 !important; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  html.safeepi-printing-documentation .safeepi-doc-heading h2 { margin: 0; color: #102033; font-size: 16pt; line-height: 1.25; }
  html.safeepi-printing-documentation .safeepi-doc-heading p { margin: 2mm 0 0; font-size: 8.5pt; line-height: 1.45; }
  html.safeepi-printing-documentation .safeepi-doc-flow, html.safeepi-printing-documentation .safeepi-doc-grid, html.safeepi-printing-documentation .safeepi-doc-steps { grid-template-columns: 1fr 1fr; gap: 4mm; }
  html.safeepi-printing-documentation .safeepi-doc-columns { grid-template-columns: 1fr 1fr; gap: 5mm; }
  html.safeepi-printing-documentation .safeepi-doc-flow article, html.safeepi-printing-documentation .safeepi-doc-grid article, html.safeepi-printing-documentation .safeepi-doc-columns > article, html.safeepi-printing-documentation .safeepi-doc-steps li { padding: 4mm; border: 1px solid #cfdcd7; border-radius: 0; break-inside: avoid; }
  html.safeepi-printing-documentation .safeepi-doc-flow p, html.safeepi-printing-documentation .safeepi-doc-grid p, html.safeepi-printing-documentation .safeepi-doc-columns li, html.safeepi-printing-documentation .safeepi-doc-steps li span { font-size: 8pt; line-height: 1.45; }
  html.safeepi-printing-documentation .safeepi-doc-table-wrap { overflow: visible; }
  html.safeepi-printing-documentation .safeepi-doc-table-wrap table { min-width: 0; font-size: 7.5pt; }
  html.safeepi-printing-documentation .safeepi-doc-table-wrap thead { display: table-header-group; }
  html.safeepi-printing-documentation .safeepi-doc-table-wrap tr { break-inside: avoid; }
  html.safeepi-printing-documentation .safeepi-doc-table-wrap th, html.safeepi-printing-documentation .safeepi-doc-table-wrap td { padding: 2.3mm; font-size: 7.5pt; }
  html.safeepi-printing-documentation .safeepi-doc-callout, html.safeepi-printing-documentation .safeepi-doc-warning { margin-top: 5mm; padding: 4mm; border-radius: 0; break-inside: avoid; }
  html.safeepi-printing-documentation .safeepi-doc-callout p, html.safeepi-printing-documentation .safeepi-doc-warning p, html.safeepi-printing-documentation .safeepi-doc-note { font-size: 8pt; line-height: 1.45; }
  html.safeepi-printing-documentation .safeepi-doc-footer { display: none !important; }
}
