/* Seletor e pré-visualização do PDF — compartilhando o módulo usado no mapa. */
.car-pdf-fab {
    position: fixed;
    right: 32px;
    bottom: 32px;
    z-index: 1040;
    height: 44px;
    padding: 0 24px;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    border: 0;
    border-radius: 22px;
    background: #356854;
    box-shadow: 0 1px 3px rgba(0,0,0,.25), inset 0 1px 0 1px rgba(255,255,255,.16);
    color: #fff;
    font: 500 13.6px/16.32px Inter, sans-serif;
    cursor: pointer;
}
.car-pdf-fab:hover { background: #1f4035; }
.car-pdf-fab svg { width: 17px; height: 17px; }

.rr-pn-mapa-detail__pdf-picker,
.rr-pn-mapa-detail__pdf-preview {
    position: fixed;
    inset: 0;
    z-index: 12050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    font-family: Inter, sans-serif;
}
.rr-pn-mapa-detail__pdf-picker-backdrop,
.rr-pn-mapa-detail__pdf-preview-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.35);
}
.rr-pn-mapa-detail__pdf-picker-card {
    position: relative;
    z-index: 1;
    width: min(100%, 520px);
    max-height: min(100%, 660px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.rr-pn-mapa-detail__pdf-picker-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 26px 28px 18px;
}
.rr-pn-mapa-detail__pdf-picker-head h3 {
    margin: 0 0 6px;
    color: #424242;
    font-size: 20px;
    font-weight: 700;
    line-height: 26px;
    letter-spacing: -.264px;
}
.rr-pn-mapa-detail__pdf-picker-head p {
    margin: 0;
    color: #6b7280;
    font-size: 13.1px;
    line-height: 18.37px;
}
.rr-pn-mapa-detail__pdf-picker-close {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
}
.rr-pn-mapa-detail__pdf-picker-close:hover { background: #f3f4f6; }
.rr-pn-mapa-detail__pdf-picker-actions-top {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 28px 14px;
    color: #d2d2d2;
    font-size: 13.1px;
}
.rr-pn-mapa-detail__pdf-picker-link {
    padding: 0;
    border: 0;
    background: none;
    color: #356854;
    font-size: 13.1px;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}
.rr-pn-mapa-detail__pdf-picker-count {
    margin-left: auto;
    color: #6b7280;
    font-size: 10.9px;
    font-weight: 500;
    letter-spacing: .435px;
    text-transform: uppercase;
}
.rr-pn-mapa-detail__pdf-picker-list {
    max-height: 340px;
    padding: 14px 28px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    border-top: 1px solid #e7e5e4;
    border-bottom: 1px solid #e7e5e4;
}
.rr-pn-mapa-detail__pdf-picker-opt {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #e7e5e4;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}
.rr-pn-mapa-detail__pdf-picker-opt:hover { background: #f7f8fa; }
.rr-pn-mapa-detail__pdf-picker-opt input {
    width: 16px;
    height: 16px;
    margin: 2px 0 0;
    flex-shrink: 0;
    accent-color: #356854;
    cursor: pointer;
}
.rr-pn-mapa-detail__pdf-picker-opt-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.rr-pn-mapa-detail__pdf-picker-opt-label {
    color: #424242;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
}
.rr-pn-mapa-detail__pdf-picker-opt-hint {
    color: #6b7280;
    font-size: 12.5px;
    line-height: 18px;
}
.rr-pn-mapa-detail__pdf-picker-foot {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 18px 28px;
}
.rr-pn-mapa-detail__pdf-picker-btn {
    height: 35px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border: 1px solid #e7e5e4;
    border-radius: 8px;
    background: #fff;
    color: #4a4a4a;
    font-size: 13.6px;
    font-weight: 500;
    cursor: pointer;
}
.rr-pn-mapa-detail__pdf-picker-btn:hover { background: #f7f8fa; }
.rr-pn-mapa-detail__pdf-picker-btn--primary {
    border-color: #356854;
    background: #356854;
    color: #fff;
}
.rr-pn-mapa-detail__pdf-picker-btn--primary:hover { background: #1f4035; }

.rr-pn-mapa-detail__pdf-picker-progress {
    padding: 8px 28px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
.rr-pn-mapa-detail__pdf-picker-stage {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.rr-pn-mapa-detail__pdf-picker-stage-visual {
    position: relative;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f3f8f5;
    color: #356854;
}
.rr-pn-mapa-detail__pdf-picker-stage-visual i { position: relative; z-index: 1; font-size: 24px; }
.rr-pn-mapa-detail__pdf-picker-stage-ring {
    position: absolute;
    inset: -4px;
    border: 2px solid transparent;
    border-top-color: #356854;
    border-right-color: rgba(53,104,84,.35);
    border-radius: 50%;
    animation: car-pdf-spin 1.1s linear infinite;
}
.rr-pn-mapa-detail__pdf-picker-stage-ring--delayed {
    inset: -10px;
    animation-duration: 1.7s;
    animation-direction: reverse;
}
@keyframes car-pdf-spin { to { transform: rotate(360deg); } }
.rr-pn-mapa-detail__pdf-picker-progress-track {
    width: 100%;
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: #e8efeb;
}
.rr-pn-mapa-detail__pdf-picker-progress-fill {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #356854;
    transition: width .25s ease;
}
.rr-pn-mapa-detail__pdf-picker-progress-label {
    margin: 0;
    color: #475569;
    font-size: 11.5px;
}

.rr-pn-mapa-detail__pdf-preview {
    z-index: 12100;
    align-items: stretch;
    padding: 12px;
}
.rr-pn-mapa-detail__pdf-preview-panel {
    position: relative;
    z-index: 1;
    width: min(100%, 920px);
    max-height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(0,0,0,.28);
}
.rr-pn-mapa-detail__pdf-preview-head {
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-shrink: 0;
    background: #1f4035;
    color: #fff;
}
.rr-pn-mapa-detail__pdf-preview-title {
    margin: 0;
    overflow: hidden;
    color: inherit;
    font-size: 14px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.rr-pn-mapa-detail__pdf-preview-actions { display: flex; align-items: center; gap: 8px; }
.rr-pn-mapa-detail__pdf-preview-print {
    padding: 7px 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    border-radius: 7px;
    background: #fff;
    color: #1f4035;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}
.rr-pn-mapa-detail__pdf-preview-close {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 7px;
    background: rgba(255,255,255,.12);
    color: #fff;
    cursor: pointer;
}
.rr-pn-mapa-detail__pdf-preview-frame-wrap {
    min-height: 0;
    flex: 1;
    overflow: auto;
    background: #f4f3ef;
}
.rr-pn-mapa-detail__pdf-preview-frame {
    display: block;
    width: 100%;
    min-height: 100%;
    border: 0;
    background: #f4f3ef;
}
@media (max-width: 700px) {
    .car-pdf-fab { right: 16px; bottom: 16px; }
    .rr-pn-mapa-detail__pdf-picker { padding: 12px; }
    .rr-pn-mapa-detail__pdf-picker-head { padding: 20px 20px 14px; }
    .rr-pn-mapa-detail__pdf-picker-actions-top { padding: 0 20px 12px; }
    .rr-pn-mapa-detail__pdf-picker-list { padding: 12px 20px 16px; }
    .rr-pn-mapa-detail__pdf-picker-foot { padding: 14px 20px; }
}
