.afo-sheet {
    position: fixed;
    inset: 0;
    z-index: 26000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.afo-sheet[hidden] {
    display: none !important;
}

.afo-sheet__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(30, 90, 142, 0.45);
}

.afo-sheet__panel {
    position: relative;
    width: 100%;
    max-width: 480px;
    background: #fff;
    border-radius: 20px 20px 0 0;
    padding: 0 16px calc(env(safe-area-inset-bottom, 0px) + 16px);
    box-shadow: 0 -8px 32px rgba(30, 90, 142, 0.18);
    animation: afo-sheet-slide-up 0.28s ease;
}

@keyframes afo-sheet-slide-up {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.afo-sheet__handle {
    width: 42px;
    height: 4px;
    margin: 10px auto 0;
    border-radius: 4px;
    background: #E2E8F0;
}

.afo-sheet__head {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 14px 48px 8px;
}

.afo-sheet__title {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    color: #1E3A5F;
}

.afo-sheet__close {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #64748B;
    font-size: 22px;
    cursor: pointer;
}

.afo-sheet__nome {
    margin: 0 0 12px;
    padding: 0 4px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    line-height: 1.4;
}

.afo-sheet__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.afo-sheet__btn {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #D4EBFA;
    border-radius: 14px;
    background: #fff;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
}

.afo-sheet__btn:active {
    background: #F0F7FF;
}

.afo-sheet__btn-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.afo-sheet__btn-icon--view {
    background: rgba(61, 170, 235, 0.12);
    color: var(--blue-primary, #3DAAEB);
}

.afo-sheet__btn-icon--download {
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
}

.afo-sheet__btn-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.afo-sheet__btn-text strong {
    font-size: 15px;
    color: #1E3A5F;
}

.afo-sheet__btn-text small {
    font-size: 12px;
    color: #64748B;
    font-weight: 500;
}

.afo-sheet__cancel {
    width: 100%;
    margin-top: 10px;
    padding: 14px;
    border: none;
    border-radius: 14px;
    background: transparent;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    color: #64748B;
    cursor: pointer;
}
