/* Visualizador: proporções das referências, sem a barra de status do telefone. */
.app { padding-top: env(safe-area-inset-top); }
.app[data-screen="documento"] > .app-header { display: none; }
.card-name { white-space: normal; overflow-wrap: anywhere; max-width: 100%; }
.greeting { position: absolute; left: 0; top: 2%; width: 57%; height: 27%; margin: 0; padding: 0 0 0 4.2cqw; display: flex; align-items: center; gap: 1.2cqw; background: url('assets/account-silver.png') 0 -25cqw / 101cqw 34.63cqw no-repeat; color: white; font-size: 5.6cqw; line-height: 1.2; font-weight: 600; white-space: nowrap; }
.greeting strong { overflow: hidden; text-overflow: ellipsis; }
#screen-documento { background: white; }
.document-header { height: 12.5cqw; flex-shrink: 0; padding: 1cqw 1.5cqw; display: flex; align-items: center; justify-content: space-between; }
.document-header .brand { width: 21cqw; height: 9cqw; }
.close-document { width: 11cqw; min-height: 44px; display: grid; place-items: center; color: #1d58a5; background: none; }
.close-document svg { width: 4.4cqw; height: 4.4cqw; }
.document-label { align-self: center; flex-shrink: 0; background: #ffcd00; color: #009b3a; font-size: max(9px, 2.05cqw); font-weight: 700; line-height: 1; padding: 1.55cqw 1cqw; margin: 1.1cqw 0 3cqw; }
.document-content { padding: 0; background: white; overflow: hidden; }
.image-stage { position: relative; width: 86cqw; flex: 1; min-height: 0; margin: 0 auto; display: block; border: 0; border-radius: 0; overflow: hidden; touch-action: pan-y; }
.document-image { width: 100%; height: 100%; object-fit: contain; object-position: center; margin: 0; transform-origin: center; user-select: none; -webkit-user-drag: none; }
.image-stage.zoomed { touch-action: none; cursor: grab; }
.image-stage.zoomed:active { cursor: grabbing; }
.image-placeholder { height: 100%; border: 1px dashed #dbe1e9; background: #fbfcfd; }
.image-placeholder h2 { font-size: max(16px, 4cqw); }
.image-placeholder p { font-size: max(12px, 3.3cqw); }
.placeholder-upload { margin-top: 4cqw; border-radius: 7cqw; background: #1953b3; color: white; padding: 3cqw 5cqw; font-size: max(13px, 3.4cqw); }
.viewer-controls { position: relative; height: 18cqw; min-height: 60px; margin: 0; padding: 1.7cqw 4cqw 2cqw; flex-shrink: 0; }
.viewer-controls .viewer-square { width: 14.4cqw; height: 14.4cqw; min-height: 44px; min-width: 44px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 4.4cqw; box-shadow: 0 1.5cqw 2cqw #0002; }
.viewer-controls .zoom-button { background: #f0f0ef; color: #747775; }
.zoom-button .icon { width: 6cqw; height: 6cqw; }
.viewer-controls .more-button { background: #009b3a; color: white; margin-left: auto; }
.more-button .icon { width: 6cqw; height: 6cqw; }
.viewer-controls .viewer-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 7cqw; height: 11cqw; min-width: 0; background: none; border: 0; padding: 0; color: #1d58a5; display: grid; place-items: center; }
#previous-image { left: 19cqw; }
#next-image { right: 19cqw; }
.viewer-arrow .icon { width: 4.6cqw; height: 4.6cqw; }
.viewer-arrow.is-hidden { visibility: hidden; }
.pagination { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 0; }
.viewer-controls .pagination-dot { display: grid; place-items: center; width: 5.35cqw; height: 10cqw; min-width: 0; border: 0; background: none; padding: 0; }
.pagination-dot::after { content: ''; width: 2.3cqw; height: 2.3cqw; border-radius: 50%; background: #9bacc5; }
.pagination-dot[aria-current="true"]::after { background: #3c5c89; }
.pagination-dot.decorative { display: grid; place-items: center; width: 5.35cqw; height: 10cqw; }
.document-menu { position: absolute; right: 4cqw; bottom: 17cqw; width: 66cqw; max-width: 310px; z-index: 6; padding: 2cqw; background: white; border: 1px solid #e1e6ed; border-radius: 3cqw; box-shadow: 0 4px 20px #0003; }
.document-menu button { display: block; width: 100%; min-height: 44px; padding: 3cqw; text-align: left; font-size: max(13px, 3.5cqw); background: white; color: #10346e; border-radius: 2cqw; }
.document-menu button:hover { background: #f0f4fa; }
.settings-content { flex: 1; min-height: 0; overflow: auto; padding: 5cqw; background: #f7f8fa; font-size: 14px; color: #34465d; }
.settings-content h2 { font-size: 18px; color: #10346e; margin: 0 0 16px; }
.settings-content p { line-height: 1.6; }
.settings-content label { display: block; font-weight: 600; margin: 16px 0 6px; }
.settings-content input:not([type="file"]) { width: 100%; min-height: 44px; background: white; color: #182b43; border: 1px solid #bfc9d6; border-radius: 8px; padding: 10px 12px; font-size: 16px; }
.settings-content .primary, .settings-content .secondary { width: 100%; min-height: 44px; padding: 11px 16px; border-radius: 24px; margin-top: 14px; font-size: 14px; }
.settings-content .primary { background: #1953b3; color: white; }
.settings-content .secondary { background: white; color: #1953b3; border: 1px solid #bfc9d6; }
.settings-content button:disabled { opacity: .55; cursor: progress; }
.settings-section { background: white; padding: 18px; margin-bottom: 18px; border-radius: 12px; }
.upload-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.upload-slot { color: #10346e; background: #f4f7fc; border: 1px dashed #c1cedf; border-radius: 8px; padding: 12px 8px; font-size: 13px; min-height: 130px; }
.upload-slot img { display: block; width: 100%; height: 100px; object-fit: contain; margin-bottom: 8px; }
.slot-status { display: block; font-size: 11px; margin-top: 4px; color: #61748d; }
.settings-note { font-size: 12px; color: #66768c; }
.customization-access { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; color: #34465d; font-size: 12px; }
.customization-access span { display: flex; align-items: center; gap: 8px; }
.customization-access .icon { width: 18px; height: 18px; }
.customization-access button { flex-shrink: 0; min-height: 44px; padding: 10px 16px; border: 1px solid #bfc9d6; border-radius: 24px; color: #1953b3; background: white; font-size: 13px; font-weight: 600; }
.pin-dialog { width: calc(100% - 32px); max-width: 380px; max-height: calc(100dvh - 32px); overflow: auto; margin: auto; padding: 28px 24px 20px; border: 0; border-radius: 20px; background: white; color: #10346e; box-shadow: 0 12px 48px #001b4340; }
.pin-dialog::backdrop { background: #081d3b99; }
.pin-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 18px; border-radius: 50%; background: #eaf1fc; color: #1953b3; }
.pin-dialog h2 { margin: 0 0 10px; font-size: 21px; line-height: 1.3; }
.pin-dialog #pin-help { margin: 0 0 22px; color: #516176; font-size: 14px; line-height: 1.6; }
.pin-dialog label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.pin-dialog input { display: block; width: 100%; min-height: 56px; padding: 10px 12px; border: 1px solid #a6b6cb; border-radius: 10px; background: white; color: #10346e; text-align: center; font-size: 28px; letter-spacing: .5em; }
.pin-dialog input[aria-invalid="true"] { border-color: #b42318; }
.pin-error { min-height: 20px; margin: 8px 0 16px; color: #b42318; font-size: 13px; line-height: 1.5; }
.pin-dialog button { display: block; width: 100%; min-height: 48px; padding: 12px 16px; border-radius: 24px; font-size: 15px; font-weight: 600; }
.pin-unlock { background: #1953b3; color: white; }
.pin-cancel { margin-top: 8px; background: white; color: #1953b3; }
@media (max-height: 450px) and (orientation: landscape) { .document-header { height: 44px; } .document-label { margin: 0 0 6px; padding: 5px; } .viewer-controls { height: 48px; min-height: 48px; padding-block: 2px; } .viewer-controls .viewer-square { width: 40px; height: 40px; min-height: 40px; min-width: 40px; border-radius: 12px; } .bottom-nav { min-height: 52px; padding: 3px 0; } .qr-circle { width: 32px; height: 32px; } .nav-item .icon, .qr-circle .icon { width: 20px; height: 20px; } }
